media: mediatek: vcodec: Skip unsupported h264 encoder profile
authorIrui Wang <irui.wang@mediatek.com>
Mon, 26 Sep 2022 09:35:01 +0000 (17:35 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 24 Oct 2022 17:03:53 +0000 (19:03 +0200)
commit9047d90e9130e1544e0ef130aeda2913767c7d7c
tree8d35258b22541846931f6075aa26dfa5f92b1610
parent062fa935e44872e2ba8374fcee3aca616a30d0e0
media: mediatek: vcodec: Skip unsupported h264 encoder profile

The encoder driver supports h264 baseline, main, high encoder
profile. Set mask for V4L2_CID_MPEG_VIDEO_H264_PROFILE to skip
the unsupported profile.

get supported h264_profile by command: v4l2-ctl -d /dev/videoX -L
h264_profile 0x00990a6b (menu) : min=0 max=4 default=4 value=4
        0: Baseline
        2: Main
        4: High

Signed-off-by: Irui Wang <irui.wang@mediatek.com>
Tested-by: Allen-KH Cheng <allen-kh.cheng@mediatek.com>
Reviewed-by: Yunfei Dong <yunfei.dong@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc.c