FROMGIT: media: v4l2-ctrls: Add control for AUD generation

Add a control to enable inserting of AUD NALU into encoded
bitstream.

Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
(cherry picked from commit f2bf1bcb191b15c0ac135af2651ebed6c017bcb0
 git://linuxtv.org/media_tree.git master)
Bug: 175378288
Link: https://lkml.org/lkml/2021/1/19/456

Change-Id: I3d4a8a6801b3a3eb56d8a1ba79203bda7176cbff
Signed-off-by: Dikshita Agarwal <dikshita@codeaurora.org>
This commit is contained in:
Stanimir Varbanov
2021-01-19 14:16:24 +02:00
committed by Todd Kjos
parent 9c6ccd3184
commit e628415846
3 changed files with 8 additions and 0 deletions

View File

@@ -694,6 +694,11 @@ enum v4l2_mpeg_video_frame_skip_mode -
of display order, in addition the hardware may still be using the
returned buffer as a reference picture for subsequent frames.
``V4L2_CID_MPEG_VIDEO_AU_DELIMITER (boolean)``
If enabled then, AUD (Access Unit Delimiter) NALUs will be generated.
That could be useful to find the start of a frame without having to
fully parse each NALU. Applicable to the H264 and HEVC encoders.
``V4L2_CID_MPEG_VIDEO_H264_VUI_SAR_ENABLE (boolean)``
Enable writing sample aspect ratio in the Video Usability
Information. Applicable to the H264 encoder.