aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c
diff options
context:
space:
mode:
authorIrui Wang <irui.wang@mediatek.com>2021-06-05 10:29:18 +0800
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-06-14 12:22:46 +0200
commit9834ccfe04154e9920ecb6dce74d8da8b478a871 (patch)
tree998211f079a81a2c1e262d294f585baab26349d0 /drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c
parentd9f744b4a836aa0db6241eac488875ff945e82bd (diff)
media: mtk-vcodec: Support MT8192 H264 4K encodingbr-v5.14mfor-v5.14m
MT8192 H264 support 4k(3840x2176) and Level 5.1 encoding, add related path according to enc_capability. Signed-off-by: Irui Wang <irui.wang@mediatek.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c')
-rw-r--r--drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c b/drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c
index d0123dfc5f93..b6a4f2074fa5 100644
--- a/drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c
+++ b/drivers/media/platform/mtk-vcodec/venc/venc_h264_if.c
@@ -215,6 +215,10 @@ static unsigned int h264_get_level(struct venc_h264_inst *inst,
return 41;
case V4L2_MPEG_VIDEO_H264_LEVEL_4_2:
return 42;
+ case V4L2_MPEG_VIDEO_H264_LEVEL_5_0:
+ return 50;
+ case V4L2_MPEG_VIDEO_H264_LEVEL_5_1:
+ return 51;
default:
mtk_vcodec_debug(inst, "unsupported level %d", level);
return 31;

Privacy Policy