Skip to content

Commit d45c9dc

Browse files
keiichiwmchehab
authored andcommitted
media: mtk-vcodec: Support VP9 profile in decoder
Add V4L2_CID_MPEG_VIDEO_VP9_PROFILE control in MediaTek decoder's driver. MediaTek decoder only supports profile 0 for now. Signed-off-by: Keiichi Watanabe <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 2a75364 commit d45c9dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,11 @@ int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_ctx *ctx)
14001400
V4L2_CID_MIN_BUFFERS_FOR_CAPTURE,
14011401
0, 32, 1, 1);
14021402
ctrl->flags |= V4L2_CTRL_FLAG_VOLATILE;
1403+
v4l2_ctrl_new_std_menu(&ctx->ctrl_hdl,
1404+
&mtk_vcodec_dec_ctrl_ops,
1405+
V4L2_CID_MPEG_VIDEO_VP9_PROFILE,
1406+
V4L2_MPEG_VIDEO_VP9_PROFILE_0,
1407+
0, V4L2_MPEG_VIDEO_VP9_PROFILE_0);
14031408

14041409
if (ctx->ctrl_hdl.error) {
14051410
mtk_v4l2_err("Adding control failed %d",

0 commit comments

Comments
 (0)