FFmpeg
cbs_h264.h
Go to the documentation of this file.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef AVCODEC_CBS_H264_H
20 #define AVCODEC_CBS_H264_H
21 
22 #include <stddef.h>
23 #include <stdint.h>
24 
25 #include "cbs.h"
26 #include "cbs_h2645.h"
27 #include "cbs_sei.h"
28 #include "h264.h"
29 
30 
31 typedef struct H264RawNALUnitHeader {
32  uint8_t nal_ref_idc;
33  uint8_t nal_unit_type;
34 
38 
39 typedef struct H264RawScalingList {
40  int8_t delta_scale[64];
42 
43 typedef struct H264RawHRD {
44  uint8_t cpb_cnt_minus1;
45  uint8_t bit_rate_scale;
46  uint8_t cpb_size_scale;
47 
51 
56 } H264RawHRD;
57 
58 typedef struct H264RawVUI {
61  uint16_t sar_width;
62  uint16_t sar_height;
63 
66 
68  uint8_t video_format;
74 
78 
81  uint32_t time_scale;
83 
89 
91 
100 } H264RawVUI;
101 
102 typedef struct H264RawSPS {
104 
105  uint8_t profile_idc;
113  uint8_t level_idc;
114 
116 
122 
127 
136 
139 
142 
146 
152 
155 } H264RawSPS;
156 
157 typedef struct H264RawSPSExtension {
159 
161 
162  uint8_t aux_format_idc;
167 
170 
171 typedef struct H264RawPPS {
173 
176 
179 
188 
189  uint8_t *slice_group_id;
191 
194 
197 
201 
204 
205  uint8_t more_rbsp_data;
206 
209 
214 
216 } H264RawPPS;
217 
218 typedef struct H264RawAUD {
220 
222 } H264RawAUD;
223 
226  struct {
229  } nal, vcl;
231 
232 typedef struct H264RawSEIPicTimestamp {
233  uint8_t ct_type;
235  uint8_t counting_type;
239  uint8_t n_frames;
240  uint8_t seconds_flag;
241  uint8_t seconds_value;
242  uint8_t minutes_flag;
243  uint8_t minutes_value;
244  uint8_t hours_flag;
245  uint8_t hours_value;
248 
249 typedef struct H264RawSEIPicTiming {
252  uint8_t pic_struct;
256 
257 typedef struct H264RawSEIPanScanRect {
267 
268 typedef struct H264RawSEIRecoveryPoint {
274 
292  int16_t comp_model_value[3][256][6];
295 
298  uint8_t hor_flip;
299  uint8_t ver_flip;
304 
305 typedef struct H264RawSEI {
308 } H264RawSEI;
309 
310 typedef struct H264RawSliceHeader {
312 
314  uint8_t slice_type;
315 
317 
319 
320  uint16_t frame_num;
321  uint8_t field_pic_flag;
323 
324  uint16_t idr_pic_id;
325 
329 
332 
336 
339  struct {
344 
347 
354 
361 
364 
366  struct {
369  uint8_t long_term_pic_num;
373 
374  uint8_t cabac_init_idc;
375 
377 
380 
384 
387 
388 typedef struct H264RawSlice {
390 
391  uint8_t *data;
393  size_t data_size;
395 } H264RawSlice;
396 
397 typedef struct H264RawFiller {
399 
400  uint32_t filler_size;
401 } H264RawFiller;
402 
403 
405  // Reader/writer context in common with the H.265 implementation.
407 
408  // All currently available parameter sets. These are updated when
409  // any parameter set NAL unit is read/written with this context.
414 
415  // The currently active parameter sets. These are updated when any
416  // NAL unit refers to the relevant parameter set. These pointers
417  // must also be present in the arrays above.
420 
421  // The NAL unit type of the most recent normal slice. This is required
422  // to be able to read/write auxiliary slices, because IdrPicFlag is
423  // otherwise unknown.
426 
427 #endif /* AVCODEC_CBS_H264_H */
H264RawSliceHeader::chroma_weight_l0_flag
uint8_t chroma_weight_l0_flag[H264_MAX_REFS]
Definition: cbs_h264.h:351
H264_MAX_MMCO_COUNT
@ H264_MAX_MMCO_COUNT
Definition: h264.h:92
H264RawSPS::vui
H264RawVUI vui
Definition: cbs_h264.h:154
H264RawSliceHeader::colour_plane_id
uint8_t colour_plane_id
Definition: cbs_h264.h:318
H264RawSPSExtension::aux_format_idc
uint8_t aux_format_idc
Definition: cbs_h264.h:162
H264RawVUI::log2_max_mv_length_vertical
uint8_t log2_max_mv_length_vertical
Definition: cbs_h264.h:97
H264RawSPS::offset_for_top_to_bottom_field
int32_t offset_for_top_to_bottom_field
Definition: cbs_h264.h:133
H264RawSliceHeader::bottom_field_flag
uint8_t bottom_field_flag
Definition: cbs_h264.h:322
H264RawPPS::slice_group_change_rate_minus1
uint16_t slice_group_change_rate_minus1
Definition: cbs_h264.h:186
H264RawSPS::log2_max_pic_order_cnt_lsb_minus4
uint8_t log2_max_pic_order_cnt_lsb_minus4
Definition: cbs_h264.h:130
H264RawSliceHeader::chroma_offset_l1
int8_t chroma_offset_l1[H264_MAX_REFS][2]
Definition: cbs_h264.h:360
H264RawSliceHeader::no_output_of_prior_pics_flag
uint8_t no_output_of_prior_pics_flag
Definition: cbs_h264.h:362
H264RawPPS::bottom_right
uint16_t bottom_right[H264_MAX_SLICE_GROUPS]
Definition: cbs_h264.h:184
H264RawPPS::weighted_pred_flag
uint8_t weighted_pred_flag
Definition: cbs_h264.h:195
H264RawVUI::vcl_hrd_parameters
H264RawHRD vcl_hrd_parameters
Definition: cbs_h264.h:87
H264RawSEIPicTiming::pic_struct
uint8_t pic_struct
Definition: cbs_h264.h:252
H264RawSliceHeader::slice_alpha_c0_offset_div2
int8_t slice_alpha_c0_offset_div2
Definition: cbs_h264.h:382
H264RawSliceHeader::long_term_pic_num
uint8_t long_term_pic_num
Definition: cbs_h264.h:342
H264RawSPS::bit_depth_chroma_minus8
uint8_t bit_depth_chroma_minus8
Definition: cbs_h264.h:120
H264RawSEI::nal_unit_header
H264RawNALUnitHeader nal_unit_header
Definition: cbs_h264.h:306
H264RawSEIPanScanRect::pan_scan_rect_left_offset
int32_t pan_scan_rect_left_offset[3]
Definition: cbs_h264.h:261
CodedBitstreamH264Context::common
CodedBitstreamH2645Context common
Definition: cbs_h264.h:406
H264RawSliceHeader::disable_deblocking_filter_idc
uint8_t disable_deblocking_filter_idc
Definition: cbs_h264.h:381
H264RawSPS::constraint_set4_flag
uint8_t constraint_set4_flag
Definition: cbs_h264.h:110
H264RawVUI::nal_hrd_parameters
H264RawHRD nal_hrd_parameters
Definition: cbs_h264.h:85
H264RawVUI::video_format
uint8_t video_format
Definition: cbs_h264.h:68
H264RawSPSExtension::additional_extension_flag
uint8_t additional_extension_flag
Definition: cbs_h264.h:168
H264RawSliceHeader::chroma_weight_l0
int8_t chroma_weight_l0[H264_MAX_REFS][2]
Definition: cbs_h264.h:352
H264_MAX_SLICE_GROUPS
@ H264_MAX_SLICE_GROUPS
Definition: h264.h:96
H264RawVUI::num_units_in_tick
uint32_t num_units_in_tick
Definition: cbs_h264.h:80
H264RawSliceHeader::num_ref_idx_active_override_flag
uint8_t num_ref_idx_active_override_flag
Definition: cbs_h264.h:333
CodedBitstreamH264Context::pps
H264RawPPS * pps[H264_MAX_PPS_COUNT]
Definition: cbs_h264.h:413
H264RawSliceHeader::luma_weight_l1
int8_t luma_weight_l1[H264_MAX_REFS]
Definition: cbs_h264.h:356
H264RawHRD::dpb_output_delay_length_minus1
uint8_t dpb_output_delay_length_minus1
Definition: cbs_h264.h:54
H264RawVUI::max_dec_frame_buffering
uint8_t max_dec_frame_buffering
Definition: cbs_h264.h:99
H264RawSliceHeader::chroma_offset_l0
int8_t chroma_offset_l0[H264_MAX_REFS][2]
Definition: cbs_h264.h:353
H264RawHRD
Definition: cbs_h264.h:43
H264RawSliceHeader::redundant_pic_cnt
uint8_t redundant_pic_cnt
Definition: cbs_h264.h:330
cbs.h
H264RawVUI::max_bytes_per_pic_denom
uint8_t max_bytes_per_pic_denom
Definition: cbs_h264.h:94
H264RawPPS::nal_unit_header
H264RawNALUnitHeader nal_unit_header
Definition: cbs_h264.h:172
H264RawSEIPicTimestamp::n_frames
uint8_t n_frames
Definition: cbs_h264.h:239
H264RawFilmGrainCharacteristics::film_grain_matrix_coefficients
uint8_t film_grain_matrix_coefficients
Definition: cbs_h264.h:284
H264RawSliceHeader::num_ref_idx_l1_active_minus1
uint8_t num_ref_idx_l1_active_minus1
Definition: cbs_h264.h:335
CodedBitstreamH264Context::sps_ref
AVBufferRef * sps_ref[H264_MAX_SPS_COUNT]
Definition: cbs_h264.h:410
H264RawFilmGrainCharacteristics::num_model_values_minus1
uint8_t num_model_values_minus1[3]
Definition: cbs_h264.h:289
H264RawSPS::frame_cropping_flag
uint8_t frame_cropping_flag
Definition: cbs_h264.h:147
H264RawSliceHeader::cabac_init_idc
uint8_t cabac_init_idc
Definition: cbs_h264.h:374
H264RawSPSExtension::alpha_transparent_value
uint16_t alpha_transparent_value
Definition: cbs_h264.h:166
H264RawHRD::cpb_size_scale
uint8_t cpb_size_scale
Definition: cbs_h264.h:46
H264RawSliceHeader::delta_pic_order_cnt_bottom
int32_t delta_pic_order_cnt_bottom
Definition: cbs_h264.h:327
H264RawSliceHeader::nal_unit_header
H264RawNALUnitHeader nal_unit_header
Definition: cbs_h264.h:311
H264RawSPS::bit_depth_luma_minus8
uint8_t bit_depth_luma_minus8
Definition: cbs_h264.h:119
H264RawVUI::low_delay_hrd_flag
uint8_t low_delay_hrd_flag
Definition: cbs_h264.h:88
H264RawVUI::aspect_ratio_idc
uint8_t aspect_ratio_idc
Definition: cbs_h264.h:60
H264RawSliceHeader::direct_spatial_mv_pred_flag
uint8_t direct_spatial_mv_pred_flag
Definition: cbs_h264.h:331
H264RawSPS::pic_width_in_mbs_minus1
uint16_t pic_width_in_mbs_minus1
Definition: cbs_h264.h:140
H264RawPPS::constrained_intra_pred_flag
uint8_t constrained_intra_pred_flag
Definition: cbs_h264.h:203
H264RawSliceHeader::mmco
struct H264RawSliceHeader::@29 mmco[H264_MAX_MMCO_COUNT]
H264RawSEIRecoveryPoint::recovery_frame_cnt
uint16_t recovery_frame_cnt
Definition: cbs_h264.h:269
H264_MAX_REFS
@ H264_MAX_REFS
Definition: h264.h:79
H264RawSliceHeader::rplm_l0
struct H264RawSliceHeader::@28 rplm_l0[H264_MAX_RPLM_COUNT]
H264RawHRD::bit_rate_scale
uint8_t bit_rate_scale
Definition: cbs_h264.h:45
H264RawSEIPicTiming
Definition: cbs_h264.h:249
H264RawVUI::chroma_sample_loc_type_bottom_field
uint8_t chroma_sample_loc_type_bottom_field
Definition: cbs_h264.h:77
H264RawSEIDisplayOrientation::display_orientation_extension_flag
uint8_t display_orientation_extension_flag
Definition: cbs_h264.h:302
H264RawSPSExtension::alpha_opaque_value
uint16_t alpha_opaque_value
Definition: cbs_h264.h:165
H264RawPPS::transform_8x8_mode_flag
uint8_t transform_8x8_mode_flag
Definition: cbs_h264.h:208
H264RawHRD::cpb_size_value_minus1
uint32_t cpb_size_value_minus1[H264_MAX_CPB_CNT]
Definition: cbs_h264.h:49
CodedBitstreamH264Context::active_sps
const H264RawSPS * active_sps
Definition: cbs_h264.h:418
H264RawNALUnitHeader::avc_3d_extension_flag
uint8_t avc_3d_extension_flag
Definition: cbs_h264.h:36
H264RawFilmGrainCharacteristics::comp_model_present_flag
uint8_t comp_model_present_flag[3]
Definition: cbs_h264.h:287
H264RawFilmGrainCharacteristics::separate_colour_description_present_flag
uint8_t separate_colour_description_present_flag
Definition: cbs_h264.h:278
H264RawSEIPicTimestamp::hours_value
uint8_t hours_value
Definition: cbs_h264.h:245
H264RawSliceHeader::luma_log2_weight_denom
uint8_t luma_log2_weight_denom
Definition: cbs_h264.h:345
H264RawFiller::filler_size
uint32_t filler_size
Definition: cbs_h264.h:400
H264RawSEIRecoveryPoint::broken_link_flag
uint8_t broken_link_flag
Definition: cbs_h264.h:271
H264RawSliceHeader::pic_order_cnt_lsb
uint16_t pic_order_cnt_lsb
Definition: cbs_h264.h:326
H264RawSPS::log2_max_frame_num_minus4
uint8_t log2_max_frame_num_minus4
Definition: cbs_h264.h:128
H264RawSPS::frame_mbs_only_flag
uint8_t frame_mbs_only_flag
Definition: cbs_h264.h:143
H264RawVUI::timing_info_present_flag
uint8_t timing_info_present_flag
Definition: cbs_h264.h:79
H264_MAX_RPLM_COUNT
@ H264_MAX_RPLM_COUNT
Definition: h264.h:84
H264RawSPSExtension::bit_depth_aux_minus8
uint8_t bit_depth_aux_minus8
Definition: cbs_h264.h:163
H264RawPPS::pic_scaling_matrix_present_flag
uint8_t pic_scaling_matrix_present_flag
Definition: cbs_h264.h:210
H264RawSPS::num_ref_frames_in_pic_order_cnt_cycle
uint8_t num_ref_frames_in_pic_order_cnt_cycle
Definition: cbs_h264.h:134
H264RawPPS::num_ref_idx_l1_default_active_minus1
uint8_t num_ref_idx_l1_default_active_minus1
Definition: cbs_h264.h:193
H264RawSEIPicTimestamp
Definition: cbs_h264.h:232
H264RawSPS::offset_for_non_ref_pic
int32_t offset_for_non_ref_pic
Definition: cbs_h264.h:132
H264RawFilmGrainCharacteristics::film_grain_full_range_flag
uint8_t film_grain_full_range_flag
Definition: cbs_h264.h:281
H264RawVUI::nal_hrd_parameters_present_flag
uint8_t nal_hrd_parameters_present_flag
Definition: cbs_h264.h:84
H264RawSEIPanScanRect::pan_scan_rect_id
uint32_t pan_scan_rect_id
Definition: cbs_h264.h:258
H264RawSliceHeader::first_mb_in_slice
uint32_t first_mb_in_slice
Definition: cbs_h264.h:313
H264RawSEIPanScanRect::pan_scan_rect_right_offset
int32_t pan_scan_rect_right_offset[3]
Definition: cbs_h264.h:262
H264RawVUI::video_full_range_flag
uint8_t video_full_range_flag
Definition: cbs_h264.h:69
CodedBitstreamH2645Context
Definition: cbs_h2645.h:25
H264RawSPS::frame_crop_left_offset
uint16_t frame_crop_left_offset
Definition: cbs_h264.h:148
H264RawVUI::aspect_ratio_info_present_flag
uint8_t aspect_ratio_info_present_flag
Definition: cbs_h264.h:59
H264RawSEIBufferingPeriod::initial_cpb_removal_delay
uint32_t initial_cpb_removal_delay[H264_MAX_CPB_CNT]
Definition: cbs_h264.h:227
H264RawSliceHeader::slice_qp_delta
int8_t slice_qp_delta
Definition: cbs_h264.h:376
H264RawSliceHeader::chroma_log2_weight_denom
uint8_t chroma_log2_weight_denom
Definition: cbs_h264.h:346
H264RawSPS::frame_crop_bottom_offset
uint16_t frame_crop_bottom_offset
Definition: cbs_h264.h:151
H264RawSEIPicTiming::clock_timestamp_flag
uint8_t clock_timestamp_flag[3]
Definition: cbs_h264.h:253
H264RawSEIPanScanRect::pan_scan_rect_top_offset
int32_t pan_scan_rect_top_offset[3]
Definition: cbs_h264.h:263
H264RawSPS::reserved_zero_2bits
uint8_t reserved_zero_2bits
Definition: cbs_h264.h:112
H264RawVUI::sar_height
uint16_t sar_height
Definition: cbs_h264.h:62
H264RawNALUnitHeader::nal_unit_type
uint8_t nal_unit_type
Definition: cbs_h264.h:33
SEIRawMessageList
Definition: cbs_sei.h:78
H264RawSliceHeader::frame_num
uint16_t frame_num
Definition: cbs_h264.h:320
H264RawSPS::seq_parameter_set_id
uint8_t seq_parameter_set_id
Definition: cbs_h264.h:115
H264RawAUD::nal_unit_header
H264RawNALUnitHeader nal_unit_header
Definition: cbs_h264.h:219
H264RawNALUnitHeader::svc_extension_flag
uint8_t svc_extension_flag
Definition: cbs_h264.h:35
H264RawSEIPicTiming::dpb_output_delay
uint32_t dpb_output_delay
Definition: cbs_h264.h:251
H264RawVUI::video_signal_type_present_flag
uint8_t video_signal_type_present_flag
Definition: cbs_h264.h:67
H264RawSEIPicTimestamp::hours_flag
uint8_t hours_flag
Definition: cbs_h264.h:244
H264RawSPSExtension::seq_parameter_set_id
uint8_t seq_parameter_set_id
Definition: cbs_h264.h:160
H264RawSPS::seq_scaling_matrix_present_flag
uint8_t seq_scaling_matrix_present_flag
Definition: cbs_h264.h:123
H264RawSEIDisplayOrientation::display_orientation_repetition_period
uint16_t display_orientation_repetition_period
Definition: cbs_h264.h:301
H264RawVUI::overscan_info_present_flag
uint8_t overscan_info_present_flag
Definition: cbs_h264.h:64
H264RawSlice::data_ref
AVBufferRef * data_ref
Definition: cbs_h264.h:392
H264RawSEIPicTimestamp::full_timestamp_flag
uint8_t full_timestamp_flag
Definition: cbs_h264.h:236
H264RawSPS::frame_crop_top_offset
uint16_t frame_crop_top_offset
Definition: cbs_h264.h:150
H264RawSPS::qpprime_y_zero_transform_bypass_flag
uint8_t qpprime_y_zero_transform_bypass_flag
Definition: cbs_h264.h:121
H264RawFilmGrainCharacteristics::intensity_interval_upper_bound
uint8_t intensity_interval_upper_bound[3][256]
Definition: cbs_h264.h:291
H264RawSliceHeader::adaptive_ref_pic_marking_mode_flag
uint8_t adaptive_ref_pic_marking_mode_flag
Definition: cbs_h264.h:365
H264RawVUI::chroma_sample_loc_type_top_field
uint8_t chroma_sample_loc_type_top_field
Definition: cbs_h264.h:76
H264RawSliceHeader::slice_group_change_cycle
uint16_t slice_group_change_cycle
Definition: cbs_h264.h:385
H264RawSPS::seq_scaling_list_present_flag
uint8_t seq_scaling_list_present_flag[12]
Definition: cbs_h264.h:124
H264RawSEIPanScanRect::pan_scan_rect_bottom_offset
int32_t pan_scan_rect_bottom_offset[3]
Definition: cbs_h264.h:264
H264RawSPS::chroma_format_idc
uint8_t chroma_format_idc
Definition: cbs_h264.h:117
H264RawSPS::mb_adaptive_frame_field_flag
uint8_t mb_adaptive_frame_field_flag
Definition: cbs_h264.h:144
H264RawPPS::chroma_qp_index_offset
int8_t chroma_qp_index_offset
Definition: cbs_h264.h:200
H264RawFilmGrainCharacteristics::intensity_interval_lower_bound
uint8_t intensity_interval_lower_bound[3][256]
Definition: cbs_h264.h:290
H264RawVUI::max_bits_per_mb_denom
uint8_t max_bits_per_mb_denom
Definition: cbs_h264.h:95
H264RawPPS::run_length_minus1
uint16_t run_length_minus1[H264_MAX_SLICE_GROUPS]
Definition: cbs_h264.h:182
cbs_sei.h
H264RawPPS::weighted_bipred_idc
uint8_t weighted_bipred_idc
Definition: cbs_h264.h:196
H264RawFilmGrainCharacteristics::comp_model_value
int16_t comp_model_value[3][256][6]
Definition: cbs_h264.h:292
H264RawSEIDisplayOrientation::anticlockwise_rotation
uint16_t anticlockwise_rotation
Definition: cbs_h264.h:300
H264RawFilmGrainCharacteristics::film_grain_bit_depth_chroma_minus8
uint8_t film_grain_bit_depth_chroma_minus8
Definition: cbs_h264.h:280
H264RawSEIPicTimestamp::time_offset
int32_t time_offset
Definition: cbs_h264.h:246
H264RawSliceHeader::chroma_weight_l1
int8_t chroma_weight_l1[H264_MAX_REFS][2]
Definition: cbs_h264.h:359
H264RawNALUnitHeader
Definition: cbs_h264.h:31
H264_MAX_SPS_COUNT
@ H264_MAX_SPS_COUNT
Definition: h264.h:71
H264RawSliceHeader::chroma_weight_l1_flag
uint8_t chroma_weight_l1_flag[H264_MAX_REFS]
Definition: cbs_h264.h:358
H264RawPPS::second_chroma_qp_index_offset
int8_t second_chroma_qp_index_offset
Definition: cbs_h264.h:215
H264RawAUD::primary_pic_type
uint8_t primary_pic_type
Definition: cbs_h264.h:221
H264RawPPS::more_rbsp_data
uint8_t more_rbsp_data
Definition: cbs_h264.h:205
H264RawVUI::sar_width
uint16_t sar_width
Definition: cbs_h264.h:61
H264RawSEIPanScanRect
Definition: cbs_h264.h:257
H264RawSliceHeader::luma_offset_l1
int8_t luma_offset_l1[H264_MAX_REFS]
Definition: cbs_h264.h:357
H264RawSPSExtension::nal_unit_header
H264RawNALUnitHeader nal_unit_header
Definition: cbs_h264.h:158
H264RawSliceHeader::luma_weight_l0
int8_t luma_weight_l0[H264_MAX_REFS]
Definition: cbs_h264.h:349
H264RawScalingList::delta_scale
int8_t delta_scale[64]
Definition: cbs_h264.h:40
H264RawPPS::bottom_field_pic_order_in_frame_present_flag
uint8_t bottom_field_pic_order_in_frame_present_flag
Definition: cbs_h264.h:178
H264RawSPSExtension::alpha_incr_flag
uint8_t alpha_incr_flag
Definition: cbs_h264.h:164
H264RawPPS::slice_group_map_type
uint8_t slice_group_map_type
Definition: cbs_h264.h:181
H264RawSPS::constraint_set5_flag
uint8_t constraint_set5_flag
Definition: cbs_h264.h:111
H264RawSliceHeader::slice_beta_offset_div2
int8_t slice_beta_offset_div2
Definition: cbs_h264.h:383
H264RawFilmGrainCharacteristics::film_grain_colour_primaries
uint8_t film_grain_colour_primaries
Definition: cbs_h264.h:282
H264RawVUI::overscan_appropriate_flag
uint8_t overscan_appropriate_flag
Definition: cbs_h264.h:65
H264RawPPS::slice_group_id_ref
AVBufferRef * slice_group_id_ref
Definition: cbs_h264.h:190
CodedBitstreamH264Context
Definition: cbs_h264.h:404
H264RawSliceHeader::sp_for_switch_flag
uint8_t sp_for_switch_flag
Definition: cbs_h264.h:378
H264RawSEI::message_list
SEIRawMessageList message_list
Definition: cbs_h264.h:307
H264RawSPS::max_num_ref_frames
uint8_t max_num_ref_frames
Definition: cbs_h264.h:137
H264RawSEIDisplayOrientation::hor_flip
uint8_t hor_flip
Definition: cbs_h264.h:298
H264RawFilmGrainCharacteristics::film_grain_bit_depth_luma_minus8
uint8_t film_grain_bit_depth_luma_minus8
Definition: cbs_h264.h:279
H264RawSPS::vui_parameters_present_flag
uint8_t vui_parameters_present_flag
Definition: cbs_h264.h:153
H264RawSliceHeader::difference_of_pic_nums_minus1
int32_t difference_of_pic_nums_minus1
Definition: cbs_h264.h:368
H264RawSEIPicTimestamp::ct_type
uint8_t ct_type
Definition: cbs_h264.h:233
H264RawFilmGrainCharacteristics
Definition: cbs_h264.h:275
H264RawNALUnitHeader::nal_ref_idc
uint8_t nal_ref_idc
Definition: cbs_h264.h:32
H264RawSliceHeader::slice_type
uint8_t slice_type
Definition: cbs_h264.h:314
H264RawVUI::transfer_characteristics
uint8_t transfer_characteristics
Definition: cbs_h264.h:72
H264RawSPS::gaps_in_frame_num_allowed_flag
uint8_t gaps_in_frame_num_allowed_flag
Definition: cbs_h264.h:138
CodedBitstreamH264Context::pps_ref
AVBufferRef * pps_ref[H264_MAX_PPS_COUNT]
Definition: cbs_h264.h:411
H264RawPPS::top_left
uint16_t top_left[H264_MAX_SLICE_GROUPS]
Definition: cbs_h264.h:183
H264RawVUI::log2_max_mv_length_horizontal
uint8_t log2_max_mv_length_horizontal
Definition: cbs_h264.h:96
H264RawSEIPicTimestamp::minutes_flag
uint8_t minutes_flag
Definition: cbs_h264.h:242
H264RawSPS::constraint_set2_flag
uint8_t constraint_set2_flag
Definition: cbs_h264.h:108
H264RawVUI::colour_description_present_flag
uint8_t colour_description_present_flag
Definition: cbs_h264.h:70
H264RawSEIPanScanRect::pan_scan_rect_cancel_flag
uint8_t pan_scan_rect_cancel_flag
Definition: cbs_h264.h:259
H264RawFilmGrainCharacteristics::film_grain_characteristics_cancel_flag
uint8_t film_grain_characteristics_cancel_flag
Definition: cbs_h264.h:276
H264RawSEIDisplayOrientation
Definition: cbs_h264.h:296
H264RawPPS::seq_parameter_set_id
uint8_t seq_parameter_set_id
Definition: cbs_h264.h:175
H264RawPPS::pic_size_in_map_units_minus1
uint16_t pic_size_in_map_units_minus1
Definition: cbs_h264.h:187
H264_MAX_PPS_COUNT
@ H264_MAX_PPS_COUNT
Definition: h264.h:73
H264RawSPS::profile_idc
uint8_t profile_idc
Definition: cbs_h264.h:105
H264RawVUI::colour_primaries
uint8_t colour_primaries
Definition: cbs_h264.h:71
H264RawSEIPanScanRect::pan_scan_cnt_minus1
uint8_t pan_scan_cnt_minus1
Definition: cbs_h264.h:260
H264RawSPS::direct_8x8_inference_flag
uint8_t direct_8x8_inference_flag
Definition: cbs_h264.h:145
H264RawFilmGrainCharacteristics::num_intensity_intervals_minus1
uint8_t num_intensity_intervals_minus1[3]
Definition: cbs_h264.h:288
H264RawSliceHeader::max_long_term_frame_idx_plus1
uint8_t max_long_term_frame_idx_plus1
Definition: cbs_h264.h:371
CodedBitstreamH264Context::active_pps
const H264RawPPS * active_pps
Definition: cbs_h264.h:419
H264RawSlice::data_bit_start
int data_bit_start
Definition: cbs_h264.h:394
H264RawSPS::separate_colour_plane_flag
uint8_t separate_colour_plane_flag
Definition: cbs_h264.h:118
H264RawSliceHeader
Definition: cbs_h264.h:310
H264RawSEIBufferingPeriod::initial_cpb_removal_delay_offset
uint32_t initial_cpb_removal_delay_offset[H264_MAX_CPB_CNT]
Definition: cbs_h264.h:228
H264RawSlice::header
H264RawSliceHeader header
Definition: cbs_h264.h:389
H264RawSliceHeader::idr_pic_id
uint16_t idr_pic_id
Definition: cbs_h264.h:324
H264RawVUI::bitstream_restriction_flag
uint8_t bitstream_restriction_flag
Definition: cbs_h264.h:92
H264RawSliceHeader::long_term_frame_idx
uint8_t long_term_frame_idx
Definition: cbs_h264.h:370
H264RawVUI::motion_vectors_over_pic_boundaries_flag
uint8_t motion_vectors_over_pic_boundaries_flag
Definition: cbs_h264.h:93
H264RawSPS::nal_unit_header
H264RawNALUnitHeader nal_unit_header
Definition: cbs_h264.h:103
CodedBitstreamH264Context::last_slice_nal_unit_type
uint8_t last_slice_nal_unit_type
Definition: cbs_h264.h:424
H264RawPPS::redundant_pic_cnt_present_flag
uint8_t redundant_pic_cnt_present_flag
Definition: cbs_h264.h:207
H264RawHRD::cpb_cnt_minus1
uint8_t cpb_cnt_minus1
Definition: cbs_h264.h:44
H264RawPPS::entropy_coding_mode_flag
uint8_t entropy_coding_mode_flag
Definition: cbs_h264.h:177
H264RawVUI::pic_struct_present_flag
uint8_t pic_struct_present_flag
Definition: cbs_h264.h:90
H264RawSliceHeader::rplm_l1
struct H264RawSliceHeader::@28 rplm_l1[H264_MAX_RPLM_COUNT]
H264RawSEIBufferingPeriod::vcl
struct H264RawSEIBufferingPeriod::@27 vcl
H264RawSEIRecoveryPoint::exact_match_flag
uint8_t exact_match_flag
Definition: cbs_h264.h:270
H264RawHRD::cbr_flag
uint8_t cbr_flag[H264_MAX_CPB_CNT]
Definition: cbs_h264.h:50
cbs_h2645.h
H264RawVUI::chroma_loc_info_present_flag
uint8_t chroma_loc_info_present_flag
Definition: cbs_h264.h:75
H264RawSliceHeader::luma_offset_l0
int8_t luma_offset_l0[H264_MAX_REFS]
Definition: cbs_h264.h:350
H264RawSPS::pic_order_cnt_type
uint8_t pic_order_cnt_type
Definition: cbs_h264.h:129
H264RawSlice::data
uint8_t * data
Definition: cbs_h264.h:391
H264RawSEIPicTimestamp::seconds_flag
uint8_t seconds_flag
Definition: cbs_h264.h:240
H264RawFilmGrainCharacteristics::film_grain_model_id
uint8_t film_grain_model_id
Definition: cbs_h264.h:277
H264RawSliceHeader::ref_pic_list_modification_flag_l0
uint8_t ref_pic_list_modification_flag_l0
Definition: cbs_h264.h:337
H264RawScalingList
Definition: cbs_h264.h:39
H264RawSPS::delta_pic_order_always_zero_flag
uint8_t delta_pic_order_always_zero_flag
Definition: cbs_h264.h:131
H264RawSliceHeader::memory_management_control_operation
uint8_t memory_management_control_operation
Definition: cbs_h264.h:367
H264RawPPS::num_ref_idx_l0_default_active_minus1
uint8_t num_ref_idx_l0_default_active_minus1
Definition: cbs_h264.h:192
H264RawVUI
Definition: cbs_h264.h:58
H264RawSliceHeader::slice_qs_delta
int8_t slice_qs_delta
Definition: cbs_h264.h:379
H264RawSEIPicTimestamp::nuit_field_based_flag
uint8_t nuit_field_based_flag
Definition: cbs_h264.h:234
H264RawSliceHeader::luma_weight_l0_flag
uint8_t luma_weight_l0_flag[H264_MAX_REFS]
Definition: cbs_h264.h:348
H264RawSEI
Definition: cbs_h264.h:305
H264RawSEIDisplayOrientation::ver_flip
uint8_t ver_flip
Definition: cbs_h264.h:299
H264RawSliceHeader::delta_pic_order_cnt
int32_t delta_pic_order_cnt[2]
Definition: cbs_h264.h:328
H264RawPPS::num_slice_groups_minus1
uint8_t num_slice_groups_minus1
Definition: cbs_h264.h:180
H264RawSPS::pic_height_in_map_units_minus1
uint16_t pic_height_in_map_units_minus1
Definition: cbs_h264.h:141
H264RawSEIBufferingPeriod::seq_parameter_set_id
uint8_t seq_parameter_set_id
Definition: cbs_h264.h:225
H264RawHRD::bit_rate_value_minus1
uint32_t bit_rate_value_minus1[H264_MAX_CPB_CNT]
Definition: cbs_h264.h:48
H264RawSEIPicTimestamp::minutes_value
uint8_t minutes_value
Definition: cbs_h264.h:243
H264RawPPS::scaling_list_8x8
H264RawScalingList scaling_list_8x8[6]
Definition: cbs_h264.h:213
H264RawHRD::cpb_removal_delay_length_minus1
uint8_t cpb_removal_delay_length_minus1
Definition: cbs_h264.h:53
H264RawFilmGrainCharacteristics::film_grain_transfer_characteristics
uint8_t film_grain_transfer_characteristics
Definition: cbs_h264.h:283
H264RawSliceHeader::field_pic_flag
uint8_t field_pic_flag
Definition: cbs_h264.h:321
H264RawVUI::time_scale
uint32_t time_scale
Definition: cbs_h264.h:81
H264RawAUD
Definition: cbs_h264.h:218
H264_MAX_CPB_CNT
@ H264_MAX_CPB_CNT
Definition: h264.h:99
H264RawSEIPicTimestamp::seconds_value
uint8_t seconds_value
Definition: cbs_h264.h:241
H264RawPPS::pic_scaling_list_present_flag
uint8_t pic_scaling_list_present_flag[12]
Definition: cbs_h264.h:211
H264RawSEIRecoveryPoint::changing_slice_group_idc
uint8_t changing_slice_group_idc
Definition: cbs_h264.h:272
H264RawSPS::level_idc
uint8_t level_idc
Definition: cbs_h264.h:113
H264RawFilmGrainCharacteristics::blending_mode_id
uint8_t blending_mode_id
Definition: cbs_h264.h:285
H264RawSPS::scaling_list_8x8
H264RawScalingList scaling_list_8x8[6]
Definition: cbs_h264.h:126
H264RawSPS::constraint_set3_flag
uint8_t constraint_set3_flag
Definition: cbs_h264.h:109
H264RawVUI::matrix_coefficients
uint8_t matrix_coefficients
Definition: cbs_h264.h:73
H264RawSEIBufferingPeriod::nal
struct H264RawSEIBufferingPeriod::@27 nal
H264RawSliceHeader::ref_pic_list_modification_flag_l1
uint8_t ref_pic_list_modification_flag_l1
Definition: cbs_h264.h:338
H264RawVUI::vcl_hrd_parameters_present_flag
uint8_t vcl_hrd_parameters_present_flag
Definition: cbs_h264.h:86
H264RawSPS::offset_for_ref_frame
int32_t offset_for_ref_frame[256]
Definition: cbs_h264.h:135
H264RawSEIPicTiming::timestamp
H264RawSEIPicTimestamp timestamp[3]
Definition: cbs_h264.h:254
H264RawPPS::deblocking_filter_control_present_flag
uint8_t deblocking_filter_control_present_flag
Definition: cbs_h264.h:202
H264RawSEIRecoveryPoint
Definition: cbs_h264.h:268
H264RawSEIPicTiming::cpb_removal_delay
uint32_t cpb_removal_delay
Definition: cbs_h264.h:250
AVBufferRef
A reference to a data buffer.
Definition: buffer.h:82
H264RawPPS::slice_group_change_direction_flag
uint8_t slice_group_change_direction_flag
Definition: cbs_h264.h:185
H264RawSPS::constraint_set0_flag
uint8_t constraint_set0_flag
Definition: cbs_h264.h:106
H264RawSliceHeader::modification_of_pic_nums_idc
uint8_t modification_of_pic_nums_idc
Definition: cbs_h264.h:340
H264RawSPS::constraint_set1_flag
uint8_t constraint_set1_flag
Definition: cbs_h264.h:107
H264RawPPS::pic_parameter_set_id
uint8_t pic_parameter_set_id
Definition: cbs_h264.h:174
H264RawVUI::max_num_reorder_frames
uint8_t max_num_reorder_frames
Definition: cbs_h264.h:98
H264RawSEIDisplayOrientation::display_orientation_cancel_flag
uint8_t display_orientation_cancel_flag
Definition: cbs_h264.h:297
H264RawSEIPanScanRect::pan_scan_rect_repetition_period
uint16_t pan_scan_rect_repetition_period
Definition: cbs_h264.h:265
H264RawSPS::frame_crop_right_offset
uint16_t frame_crop_right_offset
Definition: cbs_h264.h:149
int32_t
int32_t
Definition: audioconvert.c:56
h264.h
H264RawPPS::slice_group_id
uint8_t * slice_group_id
Definition: cbs_h264.h:189
H264RawSliceHeader::luma_weight_l1_flag
uint8_t luma_weight_l1_flag[H264_MAX_REFS]
Definition: cbs_h264.h:355
H264RawSEIPicTimestamp::discontinuity_flag
uint8_t discontinuity_flag
Definition: cbs_h264.h:237
H264RawFiller
Definition: cbs_h264.h:397
H264RawPPS::scaling_list_4x4
H264RawScalingList scaling_list_4x4[6]
Definition: cbs_h264.h:212
H264RawSliceHeader::long_term_reference_flag
uint8_t long_term_reference_flag
Definition: cbs_h264.h:363
H264RawFiller::nal_unit_header
H264RawNALUnitHeader nal_unit_header
Definition: cbs_h264.h:398
H264RawHRD::initial_cpb_removal_delay_length_minus1
uint8_t initial_cpb_removal_delay_length_minus1
Definition: cbs_h264.h:52
H264RawSPSExtension
Definition: cbs_h264.h:157
H264RawSEIBufferingPeriod
Definition: cbs_h264.h:224
H264RawPPS::pic_init_qp_minus26
int8_t pic_init_qp_minus26
Definition: cbs_h264.h:198
H264RawSEIPicTimestamp::cnt_dropped_flag
uint8_t cnt_dropped_flag
Definition: cbs_h264.h:238
H264RawSEIPicTimestamp::counting_type
uint8_t counting_type
Definition: cbs_h264.h:235
CodedBitstreamH264Context::sps
H264RawSPS * sps[H264_MAX_SPS_COUNT]
Definition: cbs_h264.h:412
H264RawPPS::pic_init_qs_minus26
int8_t pic_init_qs_minus26
Definition: cbs_h264.h:199
H264RawSliceHeader::num_ref_idx_l0_active_minus1
uint8_t num_ref_idx_l0_active_minus1
Definition: cbs_h264.h:334
H264RawSlice::data_size
size_t data_size
Definition: cbs_h264.h:393
H264RawSliceHeader::pic_parameter_set_id
uint8_t pic_parameter_set_id
Definition: cbs_h264.h:316
H264RawSPS::scaling_list_4x4
H264RawScalingList scaling_list_4x4[6]
Definition: cbs_h264.h:125
H264RawFilmGrainCharacteristics::log2_scale_factor
uint8_t log2_scale_factor
Definition: cbs_h264.h:286
H264RawSliceHeader::abs_diff_pic_num_minus1
int32_t abs_diff_pic_num_minus1
Definition: cbs_h264.h:341
H264RawFilmGrainCharacteristics::film_grain_characteristics_repetition_period
uint8_t film_grain_characteristics_repetition_period
Definition: cbs_h264.h:293
H264RawSlice
Definition: cbs_h264.h:388
H264RawHRD::time_offset_length
uint8_t time_offset_length
Definition: cbs_h264.h:55
H264RawVUI::fixed_frame_rate_flag
uint8_t fixed_frame_rate_flag
Definition: cbs_h264.h:82
H264RawSPS
Definition: cbs_h264.h:102
H264RawPPS
Definition: cbs_h264.h:171