Skip to content
Snippets Groups Projects
Commit e13de9e7 authored by Hirokazu Honda's avatar Hirokazu Honda Committed by Enric Balletbo i Serra
Browse files

FROMLIST: media: mtk-vcodec: vdec: Support H264 profile control


Add H264 profiles supported by the MediaTek 8173 decoder.

Signed-off-by: default avatarHirokazu Honda <hiroh@chromium.org>
[acourbot: fix commit log a bit]
Signed-off-by: default avatarAlexandre Courbot <acourbot@chromium.org>
parent fb604596
No related branches found
No related tags found
No related merge requests found
......@@ -591,7 +591,16 @@ static int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_ctx *ctx)
V4L2_CID_MPEG_VIDEO_VP9_PROFILE,
V4L2_MPEG_VIDEO_VP9_PROFILE_0,
0, V4L2_MPEG_VIDEO_VP9_PROFILE_0);
/*
* H264. Baseline / Extended decoding is not supported.
*/
v4l2_ctrl_new_std_menu(&ctx->ctrl_hdl,
&mtk_vcodec_dec_ctrl_ops,
V4L2_CID_MPEG_VIDEO_H264_PROFILE,
V4L2_MPEG_VIDEO_H264_PROFILE_HIGH,
BIT(V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE) |
BIT(V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED),
V4L2_MPEG_VIDEO_H264_PROFILE_MAIN);
if (ctx->ctrl_hdl.error) {
mtk_v4l2_err("Adding control failed %d",
ctx->ctrl_hdl.error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment