mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-04 22:54:43 -04:00
media: mtk-vcodec: vdec: Support H264 profile control
Add H264 profiles supported by the MediaTek 8173 decoder. [acourbot: fix commit log a bit, move to mtk_vcodec_dec.c] Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Signed-off-by: Alexandre Courbot <acourbot@chromium.org> Signed-off-by: Tzung-Bi Shih <tzungbi@google.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
2eecd3596e
commit
a5694cb73a
@@ -1421,6 +1421,16 @@ 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",
|
||||
|
||||
Reference in New Issue
Block a user