media: uapi: h264: Clean slice invariants syntax elements
The H.264 specification requires in its "Slice header semantics" section that the following values shall be the same in all slice headers: pic_parameter_set_id frame_num field_pic_flag bottom_field_flag idr_pic_id pic_order_cnt_lsb delta_pic_order_cnt_bottom delta_pic_order_cnt[ 0 ] delta_pic_order_cnt[ 1 ] sp_for_switch_flag slice_group_change_cycle and can therefore be moved to the per-frame decode parameters control. Field 'pic_parameter_set_id' is simply removed in this case, because the PPS control must currently contain the active PPS. Syntax elements dec_ref_pic_marking() and those related to pic order count, remain invariant as well, and therefore, the fields dec_ref_pic_marking_bit_size and pic_order_cnt_bit_size are also common to all slices. Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Showing
- Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst 40 additions, 43 deletionsDocumentation/userspace-api/media/v4l/ext-ctrls-codec.rst
- drivers/media/v4l2-core/v4l2-ctrls.c 6 additions, 0 deletionsdrivers/media/v4l2-core/v4l2-ctrls.c
- drivers/media/v4l2-core/v4l2-h264.c 3 additions, 5 deletionsdrivers/media/v4l2-core/v4l2-h264.c
- drivers/staging/media/hantro/hantro_g1_h264_dec.c 10 additions, 11 deletionsdrivers/staging/media/hantro/hantro_g1_h264_dec.c
- drivers/staging/media/hantro/hantro_h264.c 1 addition, 2 deletionsdrivers/staging/media/hantro/hantro_h264.c
- drivers/staging/media/rkvdec/rkvdec-h264.c 2 additions, 4 deletionsdrivers/staging/media/rkvdec/rkvdec-h264.c
- drivers/staging/media/sunxi/cedrus/cedrus_h264.c 4 additions, 5 deletionsdrivers/staging/media/sunxi/cedrus/cedrus_h264.c
- include/media/h264-ctrls.h 22 additions, 19 deletionsinclude/media/h264-ctrls.h
- include/media/v4l2-h264.h 0 additions, 1 deletioninclude/media/v4l2-h264.h
Loading
Please register or sign in to comment