FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cbs_h265.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_H265_H
20 #define AVCODEC_CBS_H265_H
21 
22 #include <stddef.h>
23 #include <stdint.h>
24 
25 #include "cbs_h2645.h"
26 #include "hevc.h"
27 
28 enum {
29  // This limit is arbitrary - it is sufficient for one message of each
30  // type plus some repeats, and will therefore easily cover all sane
31  // streams. However, it is possible to make technically-valid streams
32  // for which it will fail (for example, by including a large number of
33  // user-data-unregistered messages).
35 };
36 
37 typedef struct H265RawNALUnitHeader {
43 
44 typedef struct H265RawProfileTierLevel {
48 
50 
55 
66 
68 
70 
73 
77 
79 
84 
95 
97 
100 
108 
109 typedef struct H265RawHRDParameters {
112 
118 
122 
126 
135 
136 typedef struct H265RawVUI {
139  uint16_t sar_width;
140  uint16_t sar_height;
141 
144 
152 
156 
160 
166 
169  uint32_t vui_time_scale;
174 
184 } H265RawVUI;
185 
186 typedef struct H265RawPSExtensionData {
188  size_t bit_length;
191 
192 typedef struct H265RawVPS {
194 
196 
202 
204 
209 
213 
216  uint32_t vps_time_scale;
223 
226 } H265RawVPS;
227 
228 typedef struct H265RawSTRefPicSet {
230 
234 
237 
245 
246 typedef struct H265RawScalingList {
250  int8_t scaling_list_delta_coeff[4][6][64];
252 
253 typedef struct H265RawSPS {
255 
257 
260 
262 
264 
267 
270 
276 
279 
281 
286 
293 
297 
300 
307 
310 
315 
318 
321 
328 
330 
331  // Range extension.
341 
342  // Screen content coding extension.
350 
353 } H265RawSPS;
354 
355 typedef struct H265RawPPS {
357 
360 
366 
369 
371 
376 
380 
383 
387 
394 
401 
404 
407 
409 
416 
418 
419  // Range extension.
425  int8_t cb_qp_offset_list[6];
426  int8_t cr_qp_offset_list[6];
429 
430  // Screen content coding extension.
437 
444 } H265RawPPS;
445 
446 typedef struct H265RawAUD {
448 
450 } H265RawAUD;
451 
452 typedef struct H265RawSliceHeader {
454 
458 
461 
464 
467 
469 
473 
481 
483 
486 
490 
495 
500 
515 
518 
526 
532 
536 
540 
541 
542 typedef struct H265RawSlice {
544 
546  size_t data_size;
549 } H265RawSlice;
550 
551 
559 
564 
569 
572 
573 typedef struct H265RawSEIPicTiming {
577 
581 
588 
589 typedef struct H265RawSEIPanScanRect {
599 
604  size_t data_length;
607 
611  size_t data_length;
614 
615 typedef struct H265RawSEIRecoveryPoint {
620 
629 
638 
642  uint16_t picture_crc[3];
643  uint32_t picture_checksum[3];
645 
646 typedef struct H265RawSEITimeCode {
654  uint16_t n_frames[3];
662  uint32_t time_offset_value[3];
664 
666  uint16_t display_primaries_x[3];
667  uint16_t display_primaries_y[3];
668  uint16_t white_point_x;
669  uint16_t white_point_y;
673 
678 
682 
683 typedef struct H265RawSEIPayload {
684  uint32_t payload_type;
685  uint32_t payload_size;
686  union {
701  struct {
703  size_t data_length;
705  } other;
706  } payload;
708 
709 typedef struct H265RawSEI {
711 
714 } H265RawSEI;
715 
717  // Reader/writer context in common with the H.264 implementation.
719 
720  // All currently available parameter sets. These are updated when
721  // any parameter set NAL unit is read/written with this context.
728 
729  // The currently active parameter sets. These are updated when any
730  // NAL unit refers to the relevant parameter set. These pointers
731  // must also be present in the arrays above.
736 
737 
738 #endif /* AVCODEC_CBS_H265_H */
uint8_t pps_num_palette_predictor_initializer
Definition: cbs_h265.h:439
uint16_t n_frames[3]
Definition: cbs_h265.h:654
uint8_t active_seq_parameter_set_id[HEVC_MAX_SPS_COUNT]
Definition: cbs_h265.h:635
uint32_t bit_rate_value_minus1[HEVC_MAX_CPB_CNT]
Definition: cbs_h265.h:102
uint16_t num_nalus_in_du_minus1[HEVC_MAX_SLICE_SEGMENTS]
Definition: cbs_h265.h:585
uint16_t num_decoding_units_minus1
Definition: cbs_h265.h:582
uint8_t sps_video_parameter_set_id
Definition: cbs_h265.h:256
uint8_t loop_filter_across_tiles_enabled_flag
Definition: cbs_h265.h:393
uint8_t use_integer_mv_flag
Definition: cbs_h265.h:517
uint8_t sps_curr_pic_ref_enabled_flag
Definition: cbs_h265.h:343
uint16_t def_disp_win_top_offset
Definition: cbs_h265.h:164
H265RawPPS * pps[HEVC_MAX_PPS_COUNT]
Definition: cbs_h265.h:727
uint8_t transfer_characteristics
Definition: cbs_h265.h:150
H265RawSEITimeCode time_code
Definition: cbs_h265.h:696
uint8_t pps_pic_parameter_set_id
Definition: cbs_h265.h:358
H265RawSEIUserDataUnregistered user_data_unregistered
Definition: cbs_h265.h:691
uint8_t picture_md5[3][16]
Definition: cbs_h265.h:641
uint8_t vps_poc_proportional_to_timing_flag
Definition: cbs_h265.h:217
uint8_t num_long_term_pics
Definition: cbs_h265.h:475
uint8_t deblocking_filter_override_enabled_flag
Definition: cbs_h265.h:397
uint8_t num_ref_idx_l0_default_active_minus1
Definition: cbs_h265.h:367
uint8_t log2_max_mv_length_horizontal
Definition: cbs_h265.h:182
uint8_t motion_vectors_over_pic_boundaries_flag
Definition: cbs_h265.h:177
uint8_t fixed_pic_rate_within_cvs_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:128
uint8_t sps_sub_layer_ordering_info_present_flag
Definition: cbs_h265.h:282
uint8_t luma_weight_l1_flag[HEVC_MAX_REFS]
Definition: cbs_h265.h:509
uint8_t slice_temporal_mvp_enabled_flag
Definition: cbs_h265.h:482
H265RawHRDParameters hrd_parameters
Definition: cbs_h265.h:173
uint8_t nal_hrd_parameters_present_flag
Definition: cbs_h265.h:110
uint8_t general_max_8bit_constraint_flag
Definition: cbs_h265.h:58
uint8_t chroma_qp_offset_list_enabled_flag
Definition: cbs_h265.h:422
uint8_t bitstream_restriction_flag
Definition: cbs_h265.h:175
uint8_t general_max_14bit_constraint_flag
Definition: cbs_h265.h:65
uint8_t bit_depth_luma_minus8
Definition: cbs_h265.h:277
uint8_t full_timestamp_flag[3]
Definition: cbs_h265.h:651
AVBufferRef * data_ref
Definition: cbs_h265.h:189
uint8_t frame_field_info_present_flag
Definition: cbs_h265.h:159
uint8_t sps_range_extension_flag
Definition: cbs_h265.h:323
int8_t pps_act_y_qp_offset_plus5
Definition: cbs_h265.h:434
H265RawSEIContentLightLevelInfo content_light_level
Definition: cbs_h265.h:698
AVBufferRef * sps_ref[HEVC_MAX_SPS_COUNT]
Definition: cbs_h265.h:723
uint8_t ref_pic_list_modification_flag_l0
Definition: cbs_h265.h:491
uint8_t vui_timing_info_present_flag
Definition: cbs_h265.h:167
uint8_t tick_divisor_minus2
Definition: cbs_h265.h:114
uint8_t sub_layer_level_present_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:72
uint8_t * data
Definition: cbs_h265.h:545
uint8_t log2_max_transform_skip_block_size_minus2
Definition: cbs_h265.h:420
uint8_t pps_extension_present_flag
Definition: cbs_h265.h:410
uint8_t sps_max_sub_layers_minus1
Definition: cbs_h265.h:258
uint16_t slice_pic_order_cnt_lsb
Definition: cbs_h265.h:468
uint8_t sps_max_num_reorder_pics[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:284
uint32_t du_cpb_removal_delay_increment_minus1[HEVC_MAX_SLICE_SEGMENTS]
Definition: cbs_h265.h:586
uint8_t tiles_enabled_flag
Definition: cbs_h265.h:385
uint8_t display_orientation_persistence_flag
Definition: cbs_h265.h:627
uint8_t du_common_cpb_removal_delay_flag
Definition: cbs_h265.h:583
H265RawSTRefPicSet st_ref_pic_set[HEVC_MAX_SHORT_TERM_REF_PIC_SETS]
Definition: cbs_h265.h:309
int8_t slice_qp_delta
Definition: cbs_h265.h:519
uint8_t use_delta_flag[HEVC_MAX_REFS]
Definition: cbs_h265.h:236
uint8_t restricted_ref_pic_lists_flag
Definition: cbs_h265.h:178
uint8_t bit_rate_scale
Definition: cbs_h265.h:119
uint16_t abs_delta_rps_minus1
Definition: cbs_h265.h:233
H265RawProfileTierLevel profile_tier_level
Definition: cbs_h265.h:261
uint8_t pps_slice_chroma_qp_offsets_present_flag
Definition: cbs_h265.h:379
uint32_t vcl_initial_cpb_removal_delay[HEVC_MAX_CPB_CNT]
Definition: cbs_h265.h:565
int8_t slice_beta_offset_div2
Definition: cbs_h265.h:529
uint8_t general_inbld_flag
Definition: cbs_h265.h:67
uint8_t sub_layer_level_idc[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:98
uint8_t collocated_from_l0_flag
Definition: cbs_h265.h:498
uint8_t cpb_size_scale
Definition: cbs_h265.h:120
uint16_t def_disp_win_bottom_offset
Definition: cbs_h265.h:165
uint8_t sub_layer_max_8bit_constraint_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:87
uint8_t default_display_window_flag
Definition: cbs_h265.h:161
H265RawSEIDisplayOrientation display_orientation
Definition: cbs_h265.h:693
uint8_t sample_adaptive_offset_enabled_flag
Definition: cbs_h265.h:299
uint8_t vui_parameters_present_flag
Definition: cbs_h265.h:319
CodedBitstreamH2645Context common
Definition: cbs_h265.h:718
uint8_t pcm_sample_bit_depth_luma_minus1
Definition: cbs_h265.h:302
uint8_t sub_layer_frame_only_constraint_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:83
uint8_t list_entry_l1[HEVC_MAX_REFS]
Definition: cbs_h265.h:494
uint8_t bit_depth_chroma_minus8
Definition: cbs_h265.h:278
uint8_t tiles_fixed_structure_flag
Definition: cbs_h265.h:176
int16_t chroma_offset_l0[HEVC_MAX_REFS][2]
Definition: cbs_h265.h:508
int8_t delta_chroma_log2_weight_denom
Definition: cbs_h265.h:502
uint8_t * data
Definition: cbs_h265.h:702
uint8_t general_profile_idc
Definition: cbs_h265.h:47
uint8_t used_by_curr_pic_s0_flag[HEVC_MAX_REFS]
Definition: cbs_h265.h:241
uint32_t nal_initial_alt_cpb_removal_delay[HEVC_MAX_CPB_CNT]
Definition: cbs_h265.h:562
H265RawSEIBufferingPeriod buffering_period
Definition: cbs_h265.h:687
uint16_t slice_segment_address
Definition: cbs_h265.h:460
uint32_t vps_num_units_in_tick
Definition: cbs_h265.h:215
uint8_t sign_data_hiding_enabled_flag
Definition: cbs_h265.h:364
uint16_t conf_win_right_offset
Definition: cbs_h265.h:273
uint8_t itu_t_t35_country_code_extension_byte
Definition: cbs_h265.h:602
AVBufferRef * data_ref
Definition: cbs_h265.h:704
uint8_t explicit_rdpcm_enabled_flag
Definition: cbs_h265.h:335
uint8_t slice_deblocking_filter_disabled_flag
Definition: cbs_h265.h:528
uint16_t pic_height_in_luma_samples
Definition: cbs_h265.h:269
uint32_t pic_dpb_output_du_delay
Definition: cbs_h265.h:580
uint8_t
H265RawSubLayerHRDParameters nal_sub_layer_hrd_parameters[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:132
uint8_t hours_flag[3]
Definition: cbs_h265.h:660
uint8_t monochrome_palette_flag
Definition: cbs_h265.h:440
int8_t slice_tc_offset_div2
Definition: cbs_h265.h:530
uint8_t au_cpb_removal_delay_length_minus1
Definition: cbs_h265.h:124
int8_t slice_cb_qp_offset
Definition: cbs_h265.h:520
H265RawScalingList scaling_list
Definition: cbs_h265.h:403
uint8_t sub_layer_profile_idc[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:76
AVBufferRef * pps_ref[HEVC_MAX_PPS_COUNT]
Definition: cbs_h265.h:724
uint8_t minutes_value[3]
Definition: cbs_h265.h:656
uint8_t colour_primaries
Definition: cbs_h265.h:149
uint8_t vps_sub_layer_ordering_info_present_flag
Definition: cbs_h265.h:205
uint16_t slice_segment_header_extension_length
Definition: cbs_h265.h:537
uint8_t general_max_12bit_constraint_flag
Definition: cbs_h265.h:56
uint32_t picture_checksum[3]
Definition: cbs_h265.h:643
uint8_t five_minus_max_num_merge_cand
Definition: cbs_h265.h:516
uint8_t counting_type[3]
Definition: cbs_h265.h:650
uint8_t diff_cu_chroma_qp_offset_depth
Definition: cbs_h265.h:423
int data_bit_start
Definition: cbs_h265.h:547
uint8_t video_format
Definition: cbs_h265.h:146
uint8_t list_entry_l0[HEVC_MAX_REFS]
Definition: cbs_h265.h:492
H265RawSTRefPicSet short_term_ref_pic_set
Definition: cbs_h265.h:471
uint8_t vps_timing_info_present_flag
Definition: cbs_h265.h:214
uint8_t log2_max_pic_order_cnt_lsb_minus4
Definition: cbs_h265.h:280
uint8_t seconds_flag[3]
Definition: cbs_h265.h:658
uint8_t sps_extension_4bits
Definition: cbs_h265.h:327
H265RawSPS * sps[HEVC_MAX_SPS_COUNT]
Definition: cbs_h265.h:726
uint8_t constrained_intra_pred_flag
Definition: cbs_h265.h:372
uint32_t sps_max_latency_increase_plus1[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:285
uint8_t dpb_output_delay_length_minus1
Definition: cbs_h265.h:125
uint8_t cross_component_prediction_enabled_flag
Definition: cbs_h265.h:421
uint8_t matrix_coefficients
Definition: cbs_h265.h:151
uint8_t aspect_ratio_info_present_flag
Definition: cbs_h265.h:137
uint8_t sub_layer_one_picture_only_constraint_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:92
uint8_t vps_max_sub_layers_minus1
Definition: cbs_h265.h:200
uint16_t sps_palette_predictor_initializers[3][128]
Definition: cbs_h265.h:349
uint16_t def_disp_win_right_offset
Definition: cbs_h265.h:163
uint8_t units_field_based_flag[3]
Definition: cbs_h265.h:649
H265RawSEIPayload payload[H265_MAX_SEI_PAYLOADS]
Definition: cbs_h265.h:712
uint8_t nuh_temporal_id_plus1
Definition: cbs_h265.h:41
uint8_t general_max_monochrome_constraint_flag
Definition: cbs_h265.h:61
uint8_t sub_layer_interlaced_source_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:81
uint8_t log2_min_luma_transform_block_size_minus2
Definition: cbs_h265.h:289
uint8_t chroma_weight_l0_flag[HEVC_MAX_REFS]
Definition: cbs_h265.h:504
uint8_t sps_scaling_list_data_present_flag
Definition: cbs_h265.h:295
uint8_t sub_layer_max_monochrome_constraint_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:90
H265RawPSExtensionData extension_data
Definition: cbs_h265.h:417
uint8_t log2_min_pcm_luma_coding_block_size_minus3
Definition: cbs_h265.h:304
uint8_t sub_layer_non_packed_constraint_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:82
uint8_t video_full_range_flag
Definition: cbs_h265.h:147
H265RawSEIAlternativeTransferCharacteristics alternative_transfer_characteristics
Definition: cbs_h265.h:700
int32_t pan_scan_rect_left_offset[3]
Definition: cbs_h265.h:593
uint8_t chroma_sample_loc_type_bottom_field
Definition: cbs_h265.h:155
uint8_t irap_cpb_params_present_flag
Definition: cbs_h265.h:554
uint16_t vps_num_layer_sets_minus1
Definition: cbs_h265.h:211
uint8_t video_signal_type_present_flag
Definition: cbs_h265.h:145
uint8_t source_scan_type
Definition: cbs_h265.h:575
uint8_t inter_ref_pic_set_prediction_flag
Definition: cbs_h265.h:229
H265RawVUI vui
Definition: cbs_h265.h:320
uint8_t poc_lsb_lt[HEVC_MAX_REFS]
Definition: cbs_h265.h:477
uint8_t cabac_bypass_alignment_enabled_flag
Definition: cbs_h265.h:340
uint8_t uniform_spacing_flag
Definition: cbs_h265.h:390
uint8_t palette_max_size
Definition: cbs_h265.h:345
uint8_t delta_palette_max_predictor_size
Definition: cbs_h265.h:346
uint8_t display_orientation_cancel_flag
Definition: cbs_h265.h:622
uint8_t residual_adaptive_colour_transform_enabled_flag
Definition: cbs_h265.h:432
uint32_t vui_num_ticks_poc_diff_one_minus1
Definition: cbs_h265.h:171
uint8_t neutral_chroma_indication_flag
Definition: cbs_h265.h:157
uint8_t vps_max_dec_pic_buffering_minus1[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:206
uint8_t log2_max_mv_length_vertical
Definition: cbs_h265.h:183
uint8_t luma_weight_l0_flag[HEVC_MAX_REFS]
Definition: cbs_h265.h:503
uint8_t pps_multilayer_extension_flag
Definition: cbs_h265.h:412
uint8_t cbr_flag[HEVC_MAX_CPB_CNT]
Definition: cbs_h265.h:106
uint8_t sps_scc_extension_flag
Definition: cbs_h265.h:326
uint8_t vps_video_parameter_set_id
Definition: cbs_h265.h:195
uint8_t sub_layer_max_420chroma_constraint_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:89
uint8_t forbidden_zero_bit
Definition: cbs_h265.h:38
uint8_t cu_chroma_qp_offset_enabled_flag
Definition: cbs_h265.h:525
uint8_t pps_slice_act_qp_offsets_present_flag
Definition: cbs_h265.h:433
uint8_t nuh_layer_id
Definition: cbs_h265.h:40
uint8_t pps_scc_extension_flag
Definition: cbs_h265.h:414
uint8_t conformance_window_flag
Definition: cbs_h265.h:271
uint8_t pan_scan_cnt_minus1
Definition: cbs_h265.h:592
int8_t scaling_list_delta_coeff[4][6][64]
Definition: cbs_h265.h:250
uint8_t low_delay_hrd_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:130
uint8_t max_bits_per_min_cu_denom
Definition: cbs_h265.h:181
uint8_t delta_poc_msb_present_flag[HEVC_MAX_REFS]
Definition: cbs_h265.h:479
uint8_t dependent_slice_segment_flag
Definition: cbs_h265.h:459
union H265RawSEIPayload::@55 payload
uint8_t intra_smoothing_disabled_flag
Definition: cbs_h265.h:337
uint8_t chroma_loc_info_present_flag
Definition: cbs_h265.h:153
uint8_t num_negative_pics
Definition: cbs_h265.h:238
AVBufferRef * data_ref
Definition: cbs_h265.h:548
int8_t cb_qp_offset_list[6]
Definition: cbs_h265.h:425
int16_t scaling_list_dc_coef_minus8[4][6]
Definition: cbs_h265.h:249
uint8_t du_cpb_removal_delay_increment_length_minus1
Definition: cbs_h265.h:115
uint8_t duplicate_flag
Definition: cbs_h265.h:576
uint8_t general_interlaced_source_flag
Definition: cbs_h265.h:52
uint16_t hrd_layer_set_idx[HEVC_MAX_LAYER_SETS]
Definition: cbs_h265.h:220
uint8_t general_tier_flag
Definition: cbs_h265.h:46
uint8_t transform_skip_enabled_flag
Definition: cbs_h265.h:373
H265RawNALUnitHeader nal_unit_header
Definition: cbs_h265.h:193
uint8_t pcm_sample_bit_depth_chroma_minus1
Definition: cbs_h265.h:303
H265RawSEIActiveParameterSets active_parameter_sets
Definition: cbs_h265.h:694
uint16_t sar_height
Definition: cbs_h265.h:140
uint8_t lt_idx_sps[HEVC_MAX_REFS]
Definition: cbs_h265.h:476
uint32_t bit_rate_du_value_minus1[HEVC_MAX_CPB_CNT]
Definition: cbs_h265.h:105
uint32_t cpb_size_value_minus1[HEVC_MAX_CPB_CNT]
Definition: cbs_h265.h:103
uint8_t chroma_weight_l1_flag[HEVC_MAX_REFS]
Definition: cbs_h265.h:510
uint8_t hours_value[3]
Definition: cbs_h265.h:657
uint8_t chroma_sample_loc_type_top_field
Definition: cbs_h265.h:154
uint8_t vps_max_layers_minus1
Definition: cbs_h265.h:199
uint8_t pps_range_extension_flag
Definition: cbs_h265.h:411
uint32_t entry_point_offset_minus1[HEVC_MAX_ENTRY_POINT_OFFSETS]
Definition: cbs_h265.h:535
uint32_t vui_time_scale
Definition: cbs_h265.h:169
uint16_t conf_win_bottom_offset
Definition: cbs_h265.h:275
H265RawHRDParameters hrd_parameters[HEVC_MAX_LAYER_SETS]
Definition: cbs_h265.h:222
H265RawNALUnitHeader nal_unit_header
Definition: cbs_h265.h:447
uint8_t motion_vector_resolution_control_idc
Definition: cbs_h265.h:351
uint8_t pan_scan_rect_cancel_flag
Definition: cbs_h265.h:591
uint8_t used_by_curr_pic_flag[HEVC_MAX_REFS]
Definition: cbs_h265.h:235
uint8_t slice_type
Definition: cbs_h265.h:463
uint8_t extended_precision_processing_flag
Definition: cbs_h265.h:336
int32_t pan_scan_rect_right_offset[3]
Definition: cbs_h265.h:594
uint8_t ref_pic_list_modification_flag_l1
Definition: cbs_h265.h:493
uint8_t bp_seq_parameter_set_id
Definition: cbs_h265.h:553
uint16_t min_spatial_segmentation_idc
Definition: cbs_h265.h:179
uint8_t scaling_list_enabled_flag
Definition: cbs_h265.h:294
uint8_t general_one_picture_only_constraint_flag
Definition: cbs_h265.h:63
uint32_t payload_type
Definition: cbs_h265.h:684
H265RawProfileTierLevel profile_tier_level
Definition: cbs_h265.h:203
H265RawSEIPicTiming pic_timing
Definition: cbs_h265.h:688
uint16_t pan_scan_rect_persistence_flag
Definition: cbs_h265.h:597
uint8_t general_max_422chroma_constraint_flag
Definition: cbs_h265.h:59
uint8_t pic_type
Definition: cbs_h265.h:449
uint32_t nal_initial_cpb_removal_offset[HEVC_MAX_CPB_CNT]
Definition: cbs_h265.h:561
uint16_t sar_width
Definition: cbs_h265.h:139
H265RawPSExtensionData extension_data
Definition: cbs_h265.h:225
uint8_t cpb_size_du_scale
Definition: cbs_h265.h:121
uint8_t transquant_bypass_enabled_flag
Definition: cbs_h265.h:384
uint8_t general_intra_constraint_flag
Definition: cbs_h265.h:62
uint32_t vps_max_latency_increase_plus1[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:208
uint8_t vui_hrd_parameters_present_flag
Definition: cbs_h265.h:172
uint16_t delta_poc_s1_minus1[HEVC_MAX_REFS]
Definition: cbs_h265.h:242
uint8_t diff_cu_qp_delta_depth
Definition: cbs_h265.h:375
uint8_t num_long_term_ref_pics_sps
Definition: cbs_h265.h:312
int8_t pps_beta_offset_div2
Definition: cbs_h265.h:399
uint8_t general_non_packed_constraint_flag
Definition: cbs_h265.h:53
uint8_t short_term_ref_pic_set_idx
Definition: cbs_h265.h:472
uint8_t sub_layer_profile_compatibility_flag[HEVC_MAX_SUB_LAYERS][32]
Definition: cbs_h265.h:78
uint8_t pps_deblocking_filter_disabled_flag
Definition: cbs_h265.h:398
int32_t
uint8_t colour_plane_id
Definition: cbs_h265.h:466
uint8_t sps_seq_parameter_set_id
Definition: cbs_h265.h:263
uint8_t scaling_list_pred_matrix_id_delta[4][6]
Definition: cbs_h265.h:248
uint8_t used_by_curr_pic_lt_flag[HEVC_MAX_REFS]
Definition: cbs_h265.h:478
uint32_t nal_initial_alt_cpb_removal_offset[HEVC_MAX_CPB_CNT]
Definition: cbs_h265.h:563
uint8_t log2_sao_offset_scale_chroma
Definition: cbs_h265.h:428
uint16_t pic_width_in_luma_samples
Definition: cbs_h265.h:268
uint8_t seconds_value[3]
Definition: cbs_h265.h:655
uint8_t palette_mode_enabled_flag
Definition: cbs_h265.h:344
uint8_t high_precision_offsets_enabled_flag
Definition: cbs_h265.h:338
int8_t delta_chroma_weight_l0[HEVC_MAX_REFS][2]
Definition: cbs_h265.h:507
uint8_t vps_base_layer_available_flag
Definition: cbs_h265.h:198
uint8_t num_clock_ts
Definition: cbs_h265.h:647
int16_t luma_offset_l1[HEVC_MAX_REFS]
Definition: cbs_h265.h:512
uint8_t discontinuity_flag[3]
Definition: cbs_h265.h:652
uint8_t lists_modification_present_flag
Definition: cbs_h265.h:405
uint8_t log2_min_luma_coding_block_size_minus3
Definition: cbs_h265.h:287
uint32_t delta_poc_msb_cycle_lt[HEVC_MAX_REFS]
Definition: cbs_h265.h:480
int16_t luma_offset_l0[HEVC_MAX_REFS]
Definition: cbs_h265.h:506
uint8_t vcl_hrd_parameters_present_flag
Definition: cbs_h265.h:111
H265RawSubLayerHRDParameters vcl_sub_layer_hrd_parameters[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:133
uint8_t implicit_rdpcm_enabled_flag
Definition: cbs_h265.h:334
int8_t cr_qp_offset_list[6]
Definition: cbs_h265.h:426
uint8_t pps_seq_parameter_set_id
Definition: cbs_h265.h:359
uint8_t cabac_init_present_flag
Definition: cbs_h265.h:365
uint16_t vps_num_hrd_parameters
Definition: cbs_h265.h:219
uint8_t layer_sps_idx[HEVC_MAX_LAYERS]
Definition: cbs_h265.h:636
uint8_t minutes_flag[3]
Definition: cbs_h265.h:659
uint8_t num_ref_idx_l1_active_minus1
Definition: cbs_h265.h:489
uint8_t general_max_420chroma_constraint_flag
Definition: cbs_h265.h:60
uint8_t num_extra_slice_header_bits
Definition: cbs_h265.h:363
uint8_t used_by_curr_pic_s1_flag[HEVC_MAX_REFS]
Definition: cbs_h265.h:243
uint16_t lt_ref_pic_poc_lsb_sps[HEVC_MAX_LONG_TERM_REF_PICS]
Definition: cbs_h265.h:313
uint8_t transform_skip_context_enabled_flag
Definition: cbs_h265.h:333
uint8_t delta_rps_sign
Definition: cbs_h265.h:232
H265RawScalingList scaling_list
Definition: cbs_h265.h:296
uint8_t slice_segment_header_extension_data_byte[256]
Definition: cbs_h265.h:538
uint8_t chroma_qp_offset_list_len_minus1
Definition: cbs_h265.h:424
uint8_t max_bytes_per_pic_denom
Definition: cbs_h265.h:180
uint16_t elemental_duration_in_tc_minus1[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:129
int8_t slice_act_y_qp_offset
Definition: cbs_h265.h:522
const H265RawSPS * active_sps
Definition: cbs_h265.h:733
int8_t delta_luma_weight_l0[HEVC_MAX_REFS]
Definition: cbs_h265.h:505
uint8_t num_ref_idx_l0_active_minus1
Definition: cbs_h265.h:488
uint8_t payload_count
Definition: cbs_h265.h:713
H265RawNALUnitHeader nal_unit_header
Definition: cbs_h265.h:254
uint8_t sub_layer_progressive_source_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:80
uint32_t du_common_cpb_removal_delay_increment_minus1
Definition: cbs_h265.h:584
uint8_t log2_diff_max_min_pcm_luma_coding_block_size
Definition: cbs_h265.h:305
uint8_t entropy_coding_sync_enabled_flag
Definition: cbs_h265.h:386
uint8_t sub_layer_inbld_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:96
uint16_t row_height_minus1[HEVC_MAX_TILE_ROWS]
Definition: cbs_h265.h:392
uint8_t output_flag_present_flag
Definition: cbs_h265.h:362
uint8_t weighted_bipred_flag
Definition: cbs_h265.h:382
uint16_t conf_win_top_offset
Definition: cbs_h265.h:274
uint8_t dependent_slice_segments_enabled_flag
Definition: cbs_h265.h:361
uint8_t sps_temporal_mvp_enabled_flag
Definition: cbs_h265.h:316
uint32_t payload_size
Definition: cbs_h265.h:685
H265RawSEIUserDataRegistered user_data_registered
Definition: cbs_h265.h:690
uint8_t sub_layer_max_12bit_constraint_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:85
uint8_t general_level_idc
Definition: cbs_h265.h:69
uint32_t pic_dpb_output_delay
Definition: cbs_h265.h:579
uint8_t luma_bit_depth_entry_minus8
Definition: cbs_h265.h:441
int8_t slice_cr_qp_offset
Definition: cbs_h265.h:521
uint32_t vui_num_units_in_tick
Definition: cbs_h265.h:168
uint8_t short_term_ref_pic_set_sps_flag
Definition: cbs_h265.h:470
uint8_t slice_loop_filter_across_slices_enabled_flag
Definition: cbs_h265.h:531
uint8_t luma_log2_weight_denom
Definition: cbs_h265.h:501
uint8_t max_transform_hierarchy_depth_intra
Definition: cbs_h265.h:292
uint8_t no_output_of_prior_pics_flag
Definition: cbs_h265.h:456
uint8_t mvd_l1_zero_flag
Definition: cbs_h265.h:496
uint8_t pps_loop_filter_across_slices_enabled_flag
Definition: cbs_h265.h:395
uint8_t weighted_pred_flag
Definition: cbs_h265.h:381
uint8_t use_alt_cpb_params_flag
Definition: cbs_h265.h:570
uint8_t sps_temporal_id_nesting_flag
Definition: cbs_h265.h:259
int8_t pps_cb_qp_offset
Definition: cbs_h265.h:377
H265RawSEIMasteringDisplayColourVolume mastering_display
Definition: cbs_h265.h:697
uint8_t deblocking_filter_control_present_flag
Definition: cbs_h265.h:396
uint8_t vps_max_layer_id
Definition: cbs_h265.h:210
uint8_t slice_reserved_flag[8]
Definition: cbs_h265.h:462
uint16_t conf_win_left_offset
Definition: cbs_h265.h:272
uint8_t collocated_ref_idx
Definition: cbs_h265.h:499
uint8_t amp_enabled_flag
Definition: cbs_h265.h:298
uint32_t time_offset_value[3]
Definition: cbs_h265.h:662
uint8_t cprms_present_flag[HEVC_MAX_LAYER_SETS]
Definition: cbs_h265.h:221
uint8_t general_max_10bit_constraint_flag
Definition: cbs_h265.h:57
uint8_t sps_extension_present_flag
Definition: cbs_h265.h:322
uint8_t fixed_pic_rate_general_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:127
uint8_t log2_sao_offset_scale_luma
Definition: cbs_h265.h:427
uint8_t pps_palette_predictor_initializer_present_flag
Definition: cbs_h265.h:438
uint16_t num_entry_point_offsets
Definition: cbs_h265.h:533
const H265RawVPS * active_vps
Definition: cbs_h265.h:732
uint32_t au_cpb_removal_delay_minus1
Definition: cbs_h265.h:578
uint8_t delta_idx_minus1
Definition: cbs_h265.h:231
uint8_t chroma_bit_depth_entry_minus8
Definition: cbs_h265.h:442
uint8_t pic_struct
Definition: cbs_h265.h:574
uint8_t chroma_format_idc
Definition: cbs_h265.h:265
uint8_t general_lower_bit_rate_constraint_flag
Definition: cbs_h265.h:64
uint8_t offset_len_minus1
Definition: cbs_h265.h:534
const H265RawPPS * active_pps
Definition: cbs_h265.h:734
uint8_t general_profile_compatibility_flag[32]
Definition: cbs_h265.h:49
uint32_t vcl_initial_alt_cpb_removal_offset[HEVC_MAX_CPB_CNT]
Definition: cbs_h265.h:568
uint8_t time_offset_length[3]
Definition: cbs_h265.h:661
uint8_t sub_layer_intra_constraint_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:91
uint8_t scaling_list_pred_mode_flag[4][6]
Definition: cbs_h265.h:247
uint8_t vps_base_layer_internal_flag
Definition: cbs_h265.h:197
uint8_t overscan_appropriate_flag
Definition: cbs_h265.h:143
uint8_t sps_num_palette_predictor_initializer_minus1
Definition: cbs_h265.h:348
uint8_t field_seq_flag
Definition: cbs_h265.h:158
uint16_t pps_palette_predictor_initializers[3][128]
Definition: cbs_h265.h:443
uint8_t pcm_loop_filter_disabled_flag
Definition: cbs_h265.h:306
uint8_t cnt_dropped_flag[3]
Definition: cbs_h265.h:653
H265RawNALUnitHeader nal_unit_header
Definition: cbs_h265.h:356
uint8_t num_positive_pics
Definition: cbs_h265.h:239
uint8_t general_frame_only_constraint_flag
Definition: cbs_h265.h:54
uint8_t sub_layer_max_422chroma_constraint_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:88
H265RawSEIDecodedPictureHash decoded_picture_hash
Definition: cbs_h265.h:695
AVBufferRef * vps_ref[HEVC_MAX_VPS_COUNT]
Definition: cbs_h265.h:722
uint8_t sps_3d_extension_flag
Definition: cbs_h265.h:325
int8_t pps_cr_qp_offset
Definition: cbs_h265.h:378
uint8_t slice_pic_parameter_set_id
Definition: cbs_h265.h:457
uint8_t vui_poc_proportional_to_timing_flag
Definition: cbs_h265.h:170
A reference to a data buffer.
Definition: buffer.h:81
uint32_t vcl_initial_alt_cpb_removal_delay[HEVC_MAX_CPB_CNT]
Definition: cbs_h265.h:567
uint8_t general_progressive_source_flag
Definition: cbs_h265.h:51
H265RawSEIRecoveryPoint recovery_point
Definition: cbs_h265.h:692
uint8_t max_transform_hierarchy_depth_inter
Definition: cbs_h265.h:291
uint8_t sub_layer_tier_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:75
H265RawPSExtensionData extension_data
Definition: cbs_h265.h:329
uint16_t def_disp_win_left_offset
Definition: cbs_h265.h:162
uint32_t pan_scan_rect_id
Definition: cbs_h265.h:590
uint8_t pps_scaling_list_data_present_flag
Definition: cbs_h265.h:402
int8_t slice_act_cr_qp_offset
Definition: cbs_h265.h:524
uint8_t cabac_init_flag
Definition: cbs_h265.h:497
int8_t delta_luma_weight_l1[HEVC_MAX_REFS]
Definition: cbs_h265.h:511
struct H265RawSEIPayload::@55::@56 other
uint8_t num_tile_rows_minus1
Definition: cbs_h265.h:389
uint8_t pcm_enabled_flag
Definition: cbs_h265.h:301
uint8_t intra_boundary_filtering_disable_flag
Definition: cbs_h265.h:352
int8_t pps_act_cb_qp_offset_plus5
Definition: cbs_h265.h:435
uint8_t pic_output_flag
Definition: cbs_h265.h:465
uint8_t slice_sao_luma_flag
Definition: cbs_h265.h:484
uint8_t num_tile_columns_minus1
Definition: cbs_h265.h:388
uint8_t sub_pic_hrd_params_present_flag
Definition: cbs_h265.h:113
uint8_t pps_3d_extension_flag
Definition: cbs_h265.h:413
uint16_t delta_poc_s0_minus1[HEVC_MAX_REFS]
Definition: cbs_h265.h:240
uint8_t log2_diff_max_min_luma_coding_block_size
Definition: cbs_h265.h:288
uint8_t sub_layer_profile_present_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:71
uint8_t persistent_rice_adaptation_enabled_flag
Definition: cbs_h265.h:339
uint32_t cpb_size_du_value_minus1[HEVC_MAX_CPB_CNT]
Definition: cbs_h265.h:104
uint16_t display_orientation_repetition_period
Definition: cbs_h265.h:626
uint8_t sub_pic_cpb_params_in_pic_timing_sei_flag
Definition: cbs_h265.h:116
uint8_t vps_extension_flag
Definition: cbs_h265.h:224
uint8_t cpb_cnt_minus1[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:131
uint8_t overscan_info_present_flag
Definition: cbs_h265.h:142
uint8_t slice_sao_chroma_flag
Definition: cbs_h265.h:485
uint32_t vcl_initial_cpb_removal_offset[HEVC_MAX_CPB_CNT]
Definition: cbs_h265.h:566
uint8_t vps_max_num_reorder_pics[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:207
int32_t pan_scan_rect_top_offset[3]
Definition: cbs_h265.h:595
H265RawSEIPanScanRect pan_scan_rect
Definition: cbs_h265.h:689
uint8_t sps_multilayer_extension_flag
Definition: cbs_h265.h:324
uint32_t nal_initial_cpb_removal_delay[HEVC_MAX_CPB_CNT]
Definition: cbs_h265.h:560
H265RawSliceHeader header
Definition: cbs_h265.h:543
uint8_t dpb_output_delay_du_length_minus1
Definition: cbs_h265.h:117
uint32_t vps_time_scale
Definition: cbs_h265.h:216
uint8_t used_by_curr_pic_lt_sps_flag[HEVC_MAX_LONG_TERM_REF_PICS]
Definition: cbs_h265.h:314
uint8_t num_short_term_ref_pic_sets
Definition: cbs_h265.h:308
uint16_t column_width_minus1[HEVC_MAX_TILE_COLUMNS]
Definition: cbs_h265.h:391
uint8_t log2_parallel_merge_level_minus2
Definition: cbs_h265.h:406
uint8_t vps_temporal_id_nesting_flag
Definition: cbs_h265.h:201
int8_t delta_chroma_weight_l1[HEVC_MAX_REFS][2]
Definition: cbs_h265.h:513
size_t data_length
Definition: cbs_h265.h:703
int32_t pan_scan_rect_bottom_offset[3]
Definition: cbs_h265.h:596
int8_t pps_tc_offset_div2
Definition: cbs_h265.h:400
uint8_t sub_layer_profile_space[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:74
int16_t chroma_offset_l1[HEVC_MAX_REFS][2]
Definition: cbs_h265.h:514
size_t data_size
Definition: cbs_h265.h:546
uint8_t aspect_ratio_idc
Definition: cbs_h265.h:138
uint8_t sub_layer_max_10bit_constraint_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:86
uint8_t clock_timestamp_flag[3]
Definition: cbs_h265.h:648
H265RawNALUnitHeader nal_unit_header
Definition: cbs_h265.h:453
uint8_t num_long_term_sps
Definition: cbs_h265.h:474
uint8_t general_profile_space
Definition: cbs_h265.h:45
uint8_t sps_max_dec_pic_buffering_minus1[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:283
uint8_t transform_skip_rotation_enabled_flag
Definition: cbs_h265.h:332
int8_t init_qp_minus26
Definition: cbs_h265.h:370
uint32_t vps_num_ticks_poc_diff_one_minus1
Definition: cbs_h265.h:218
uint8_t sub_layer_lower_bit_rate_constraint_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:93
uint8_t sub_layer_max_14bit_constraint_flag[HEVC_MAX_SUB_LAYERS]
Definition: cbs_h265.h:94
uint8_t pps_curr_pic_ref_enabled_flag
Definition: cbs_h265.h:431
uint32_t au_cpb_removal_delay_delta_minus1
Definition: cbs_h265.h:558
uint8_t slice_segment_header_extension_present_flag
Definition: cbs_h265.h:408
H265RawVPS * vps[HEVC_MAX_VPS_COUNT]
Definition: cbs_h265.h:725
uint8_t separate_colour_plane_flag
Definition: cbs_h265.h:266
uint8_t initial_cpb_removal_delay_length_minus1
Definition: cbs_h265.h:123
uint8_t strong_intra_smoothing_enabled_flag
Definition: cbs_h265.h:317
uint8_t colour_description_present_flag
Definition: cbs_h265.h:148
uint8_t pps_extension_4bits
Definition: cbs_h265.h:415
uint8_t log2_diff_max_min_luma_transform_block_size
Definition: cbs_h265.h:290
uint8_t long_term_ref_pics_present_flag
Definition: cbs_h265.h:311
uint8_t num_ref_idx_active_override_flag
Definition: cbs_h265.h:487
uint8_t layer_id_included_flag[HEVC_MAX_LAYER_SETS][HEVC_MAX_LAYERS]
Definition: cbs_h265.h:212
uint8_t nal_unit_type
Definition: cbs_h265.h:39
uint8_t sps_palette_predictor_initializer_present_flag
Definition: cbs_h265.h:347
int8_t pps_act_cr_qp_offset_plus3
Definition: cbs_h265.h:436
uint8_t deblocking_filter_override_flag
Definition: cbs_h265.h:527
uint8_t num_ref_idx_l1_default_active_minus1
Definition: cbs_h265.h:368
H265RawNALUnitHeader nal_unit_header
Definition: cbs_h265.h:710
int8_t slice_act_cb_qp_offset
Definition: cbs_h265.h:523
uint8_t first_slice_segment_in_pic_flag
Definition: cbs_h265.h:455
uint8_t cu_qp_delta_enabled_flag
Definition: cbs_h265.h:374