media: mtk-vcodec: MT8173 h264/vp8 encoder min/max bitrate settings
authorIrui Wang <irui.wang@mediatek.com>
Sun, 26 Sep 2021 03:39:35 +0000 (05:39 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 5 Oct 2021 07:40:35 +0000 (09:40 +0200)
Set recommend min/max bitrate range for MT8173 h264/vp8 encoder.

Signed-off-by: Irui Wang <irui.wang@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c

index 8bbcb53..eed6739 100644 (file)
@@ -392,8 +392,8 @@ static const struct mtk_vcodec_enc_pdata mt8173_avc_pdata = {
        .num_capture_formats = ARRAY_SIZE(mtk_video_formats_capture_h264),
        .output_formats = mtk_video_formats_output,
        .num_output_formats = ARRAY_SIZE(mtk_video_formats_output),
-       .min_bitrate = 1,
-       .max_bitrate = 4000000,
+       .min_bitrate = 64,
+       .max_bitrate = 60000000,
        .core_id = VENC_SYS,
 };
 
@@ -404,7 +404,7 @@ static const struct mtk_vcodec_enc_pdata mt8173_vp8_pdata = {
        .output_formats = mtk_video_formats_output,
        .num_output_formats = ARRAY_SIZE(mtk_video_formats_output),
        .min_bitrate = 64,
-       .max_bitrate = 4000000,
+       .max_bitrate = 9000000,
        .core_id = VENC_LT_SYS,
 };