forked from Minki/linux
media: hantro: Support H264 profile control
The Hantro G1 decoder supports H.264 profiles from Baseline to High, with the exception of the Extended profile. Expose the V4L2_CID_MPEG_VIDEO_H264_PROFILE control, so that the applications can query the driver for the list of supported profiles. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
05e2ebfa2b
commit
858eff0357
@ -361,6 +361,16 @@ static const struct hantro_ctrl controls[] = {
|
||||
.def = V4L2_MPEG_VIDEO_H264_START_CODE_ANNEX_B,
|
||||
.max = V4L2_MPEG_VIDEO_H264_START_CODE_ANNEX_B,
|
||||
},
|
||||
}, {
|
||||
.codec = HANTRO_H264_DECODER,
|
||||
.cfg = {
|
||||
.id = V4L2_CID_MPEG_VIDEO_H264_PROFILE,
|
||||
.min = V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE,
|
||||
.max = V4L2_MPEG_VIDEO_H264_PROFILE_HIGH,
|
||||
.menu_skip_mask =
|
||||
BIT(V4L2_MPEG_VIDEO_H264_PROFILE_EXTENDED),
|
||||
.def = V4L2_MPEG_VIDEO_H264_PROFILE_MAIN,
|
||||
}
|
||||
}, {
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user