linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] media: mediatek: venc: Add h264 extended profile support
@ 2022-09-15 11:51 Allen-KH Cheng
  2022-09-26  7:23 ` Allen-KH Cheng
  0 siblings, 1 reply; 2+ messages in thread
From: Allen-KH Cheng @ 2022-09-15 11:51 UTC (permalink / raw)
  To: Matthias Brugger, Mauro Carvalho Chehab, Hans Verkuil
  Cc: Project_Global_Chrome_Upstream_Group, devicetree,
	linux-arm-kernel, linux-media, linux-kernel, linux-mediatek,
	hsinyi, Allen-KH Cheng, kyrie wu

Add h264 extended profile support

Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Co-developed-by: kyrie wu <kyrie.wu@mediatek.com>
Signed-off-by: kyrie wu <kyrie.wu@mediatek.com>
---
 drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c b/drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c
index 13c4f860fa69..ac2ef6275d78 100644
--- a/drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c
+++ b/drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c
@@ -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;
-- 
2.18.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] media: mediatek: venc: Add h264 extended profile support
  2022-09-15 11:51 [PATCH] media: mediatek: venc: Add h264 extended profile support Allen-KH Cheng
@ 2022-09-26  7:23 ` Allen-KH Cheng
  0 siblings, 0 replies; 2+ messages in thread
From: Allen-KH Cheng @ 2022-09-26  7:23 UTC (permalink / raw)
  To: Matthias Brugger, Mauro Carvalho Chehab, Hans Verkuil
  Cc: Project_Global_Chrome_Upstream_Group, devicetree,
	linux-arm-kernel, linux-media, linux-kernel, linux-mediatek,
	hsinyi, kyrie wu

hello, maintainers

kindly disregard this patch.

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

Thanks,
Allen

On 9/15/22 19:51, Allen-KH Cheng wrote:
> Add h264 extended profile support
> 
> Signed-off-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
> Co-developed-by: kyrie wu <kyrie.wu@mediatek.com>
> Signed-off-by: kyrie wu <kyrie.wu@mediatek.com>
> ---
>  drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c b/drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c
> index 13c4f860fa69..ac2ef6275d78 100644
> --- a/drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c
> +++ b/drivers/media/platform/mediatek/vcodec/venc/venc_h264_if.c
> @@ -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;

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-26  7:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-15 11:51 [PATCH] media: mediatek: venc: Add h264 extended profile support Allen-KH Cheng
2022-09-26  7:23 ` Allen-KH Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).