Skip to contentSkip to conversation

media: mtk-vcodec: MT8173 h264/vp8 encoder min/max bitrate settings

PATCH In review Irui Wang 2 participants 2 messages Sep 26, 2021 – Oct 6, 2021

Subsystems (2)
lore
Share & tools
lore

Irui Wang

author
#0 lore raw

PATCH 1/1 media: mtk-vcodec: MT8173 h264/vp8 encoder min/max bitrate settings

Set recommend min/max bitrate range for MT8173 h264/vp8 encoder.

---
This patch dependents on "Clean redundant encoder format definition", which already accepted into linux-next.git:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/patch/?id=4093eb21538ae4f2861b26f4615939e1fa50dc67

---
 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c +3 -3
index 4489a9744cd7..5dce3681ce94 100644
@@ -388,8 +388,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,
 };
 
@@ -400,7 +400,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,
 };
 
Signature · 1 line
2.25.1
Tested-by on v1 1/1
#1 lore raw

Hi Irui, thank you for the patch.

Quoted 4 lines · Irui Wang

Set recommend min/max bitrate range for MT8173 h264/vp8 encoder.

I confirmed the patch worked with my own test.

-Hiro

Quoted 36 lines

---
This patch dependents on "Clean redundant encoder format definition", which already accepted into linux-next.git:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/patch/?id=4093eb21538ae4f2861b26f4615939e1fa50dc67

---
 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c +3 -4
index 4489a9744cd7..5dce3681ce94 100644
@@ -388,8 +388,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,
 };
 
@@ -400,7 +400,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,
 };
 
--

2.25.1