diff options
author | Nicolas Dufresne | 2022-05-13 22:29:05 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2022-05-17 09:59:40 +0200 |
commit | adc8a8d6c98a5c996aad41bf1625d87829bd76ba (patch) | |
tree | e61257f8af6a1373feca21d952a4a7a263e1efe2 /include/media/v4l2-h264.h | |
parent | 26e4520509ffa4bec3d679f7cb3de9adfabef4b3 (diff) |
media: h264: Store current picture fields
This information, also called picture structure, is required in field
decoding mode to construct reference lists.
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Reviewed-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'include/media/v4l2-h264.h')
-rw-r--r-- | include/media/v4l2-h264.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/v4l2-h264.h b/include/media/v4l2-h264.h index e282fb16ac58..e165a54c68fa 100644 --- a/include/media/v4l2-h264.h +++ b/include/media/v4l2-h264.h @@ -21,6 +21,7 @@ * @refs.longterm: set to true for a long term reference * @refs: array of references * @cur_pic_order_count: picture order count of the frame being decoded + * @cur_pic_fields: fields present in the frame being decoded * @unordered_reflist: unordered list of references. Will be used to generate * ordered P/B0/B1 lists * @num_valid: number of valid references in the refs array @@ -36,7 +37,10 @@ struct v4l2_h264_reflist_builder { u32 pic_num; u16 longterm : 1; } refs[V4L2_H264_NUM_DPB_ENTRIES]; + s32 cur_pic_order_count; + u8 cur_pic_fields; + struct v4l2_h264_reference unordered_reflist[V4L2_H264_REF_LIST_LEN]; u8 num_valid; }; |