Skip to contentSkip to conversation

media: mediatek: venc: Add h264 extended profile support

PATCH In review Allen-KH Cheng 1 participant 2 messages Sep 15, 2022 – Sep 26, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: mediatek: venc: Add h264 extended profile support

Add h264 extended profile support

---
 drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c +1 -2
index 13c4f860fa69..ac2ef6275d78 100644
@@ -243,8 +243,7 @@ static unsigned int h264_get_profile(struct venc_h264_inst *inst,
 		mtk_vcodec_err(inst, "unsupported CONSTRAINED_BASELINE");
 		return 0;
 	case V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED:
-		mtk_vcodec_err(inst, "unsupported EXTENDED");
-		return 0;
+		return 88;
 	default:
 		mtk_vcodec_debug(inst, "unsupported profile %d", profile);
 		return 100;
Signature · 1 line
2.18.0
#1 lore raw

hello, maintainers

kindly disregard this patch.

The MTK HW encoder does not yet support this. (only sw)

Thanks,
Allen

Quoted 23 lines · Allen-KH Cheng

Add h264 extended profile support

---
 drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c +1 -2
index 13c4f860fa69..ac2ef6275d78 100644
@@ -243,8 +243,7 @@ static unsigned int h264_get_profile(struct venc_h264_inst *inst,
 		mtk_vcodec_err(inst, "unsupported CONSTRAINED_BASELINE");
 		return 0;
 	case V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED:
-		mtk_vcodec_err(inst, "unsupported EXTENDED");
-		return 0;
+		return 88;
 	default:
 		mtk_vcodec_debug(inst, "unsupported profile %d", profile);
 		return 100;