FFmpeg
hevc_ps.h
Go to the documentation of this file.
1 /*
2  * HEVC parameter set parsing
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef AVCODEC_HEVC_PS_H
22 #define AVCODEC_HEVC_PS_H
23 
24 #include <stdint.h>
25 
26 #include "libavutil/buffer.h"
27 #include "libavutil/pixfmt.h"
28 #include "libavutil/rational.h"
29 
30 #include "avcodec.h"
31 #include "get_bits.h"
32 #include "hevc.h"
33 
34 typedef struct ShortTermRPS {
35  unsigned int num_negative_pics;
40 } ShortTermRPS;
41 
42 typedef struct LongTermRPS {
43  int poc[32];
44  uint8_t poc_msb_present[32];
47 } LongTermRPS;
48 
49 typedef struct SliceHeader {
50  unsigned int pps_id;
51 
52  ///< address (in raster order) of the first block in the current slice segment
53  unsigned int slice_segment_addr;
54  ///< address (in raster order) of the first block in the current slice
55  unsigned int slice_addr;
56 
57  enum HEVCSliceType slice_type;
58 
60 
65 
66  ///< RPS coded in the slice header itself is stored here
73  unsigned int list_entry_lx[2][32];
74 
75  uint8_t rpl_modification_flag[2];
78 
79  unsigned int nb_refs[2];
80 
81  uint8_t slice_sample_adaptive_offset_flag[3];
83 
85  uint8_t disable_deblocking_filter_flag; ///< slice_header_disable_deblocking_filter_flag
88 
89  unsigned int collocated_ref_idx;
90 
94 
96 
97  int beta_offset; ///< beta_offset_div2 * 2
98  int tc_offset; ///< tc_offset_div2 * 2
99 
100  unsigned int max_num_merge_cand; ///< 5 - 5_minus_max_num_merge_cand
101 
103  int * offset;
104  int * size;
106 
107  int8_t slice_qp;
108 
111 
112  int16_t luma_weight_l0[16];
113  int16_t chroma_weight_l0[16][2];
114  int16_t chroma_weight_l1[16][2];
115  int16_t luma_weight_l1[16];
116 
117  int16_t luma_offset_l0[16];
118  int16_t chroma_offset_l0[16][2];
119 
120  int16_t luma_offset_l1[16];
121  int16_t chroma_offset_l1[16][2];
122 
124 } SliceHeader;
125 
126 typedef struct HEVCWindow {
127  unsigned int left_offset;
128  unsigned int right_offset;
129  unsigned int top_offset;
130  unsigned int bottom_offset;
131 } HEVCWindow;
132 
133 typedef struct VUI {
135 
138 
146 
151 
154 
157 
160  uint32_t vui_time_scale;
164 
174 } VUI;
175 
176 typedef struct PTLCommon {
180  uint8_t profile_compatibility_flag[32];
197 } PTLCommon;
198 
199 typedef struct PTL {
202 
203  uint8_t sub_layer_profile_present_flag[HEVC_MAX_SUB_LAYERS];
204  uint8_t sub_layer_level_present_flag[HEVC_MAX_SUB_LAYERS];
205 } PTL;
206 
207 typedef struct HEVCVPS {
210  int vps_max_sub_layers; ///< vps_max_temporal_layers_minus1 + 1
211 
214  unsigned int vps_max_dec_pic_buffering[HEVC_MAX_SUB_LAYERS];
215  unsigned int vps_num_reorder_pics[HEVC_MAX_SUB_LAYERS];
216  unsigned int vps_max_latency_increase[HEVC_MAX_SUB_LAYERS];
218  int vps_num_layer_sets; ///< vps_num_layer_sets_minus1 + 1
221  uint32_t vps_time_scale;
223  int vps_num_ticks_poc_diff_one; ///< vps_num_ticks_poc_diff_one_minus1 + 1
225 
226  uint8_t data[4096];
228 } HEVCVPS;
229 
230 typedef struct ScalingList {
231  /* This is a little wasteful, since sizeID 0 only needs 8 coeffs,
232  * and size ID 3 only has 2 arrays, not 6. */
233  uint8_t sl[4][6][64];
234  uint8_t sl_dc[2][6];
235 } ScalingList;
236 
237 typedef struct HEVCSPS {
238  unsigned vps_id;
241 
243 
245 
250 
251  unsigned int log2_max_poc_lsb;
253 
255  struct {
259  } temporal_layer[HEVC_MAX_SUB_LAYERS];
261 
264 
267 
268  unsigned int nb_st_rps;
270 
273 
275  uint16_t lt_ref_pic_poc_lsb_sps[HEVC_MAX_LONG_TERM_REF_PICS];
276  uint8_t used_by_curr_pic_lt_sps_flag[HEVC_MAX_LONG_TERM_REF_PICS];
278 
279  struct {
282  unsigned int log2_min_pcm_cb_size;
283  unsigned int log2_max_pcm_cb_size;
285  } pcm;
288 
289  unsigned int log2_min_cb_size;
291  unsigned int log2_min_tb_size;
292  unsigned int log2_max_trafo_size;
293  unsigned int log2_ctb_size;
294  unsigned int log2_min_pu_size;
295 
298 
309 
310  ///< coded frame dimension in various units
311  int width;
312  int height;
315  int ctb_size;
322  int tb_mask;
323 
324  int hshift[3];
325  int vshift[3];
326 
328 
329  uint8_t data[4096];
331 } HEVCSPS;
332 
333 typedef struct HEVCPPS {
334  unsigned int sps_id; ///< seq_parameter_set_id
335 
337 
339 
340  int num_ref_idx_l0_default_active; ///< num_ref_idx_l0_default_active_minus1 + 1
341  int num_ref_idx_l1_default_active; ///< num_ref_idx_l1_default_active_minus1 + 1
343 
346 
349 
357 
361 
362  uint16_t num_tile_columns; ///< num_tile_columns_minus1 + 1
363  uint16_t num_tile_rows; ///< num_tile_rows_minus1 + 1
366 
368 
372  int beta_offset; ///< beta_offset_div2 * 2
373  int tc_offset; ///< tc_offset_div2 * 2
374 
377 
379  int log2_parallel_merge_level; ///< log2_parallel_merge_level_minus2 + 2
388  int8_t cb_qp_offset_list[6];
389  int8_t cr_qp_offset_list[6];
392 
393  // Inferred parameters
394  unsigned int *column_width; ///< ColumnWidth
395  unsigned int *row_height; ///< RowHeight
396  unsigned int *col_bd; ///< ColBd
397  unsigned int *row_bd; ///< RowBd
398  int *col_idxX;
399 
400  int *ctb_addr_rs_to_ts; ///< CtbAddrRSToTS
401  int *ctb_addr_ts_to_rs; ///< CtbAddrTSToRS
402  int *tile_id; ///< TileId
403  int *tile_pos_rs; ///< TilePosRS
404  int *min_tb_addr_zs; ///< MinTbAddrZS
405  int *min_tb_addr_zs_tab;///< MinTbAddrZS
406 
407  uint8_t data[4096];
409 } HEVCPPS;
410 
411 typedef struct HEVCParamSets {
415 
416  /* currently active parameter sets */
417  const HEVCVPS *vps;
418  const HEVCSPS *sps;
419  const HEVCPPS *pps;
420 } HEVCParamSets;
421 
422 /**
423  * Parse the SPS from the bitstream into the provided HEVCSPS struct.
424  *
425  * @param sps_id the SPS id will be written here
426  * @param apply_defdispwin if set 1, the default display window from the VUI
427  * will be applied to the video dimensions
428  * @param vps_list if non-NULL, this function will validate that the SPS refers
429  * to an existing VPS
430  */
431 int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
432  int apply_defdispwin, AVBufferRef **vps_list, AVCodecContext *avctx);
433 
435  HEVCParamSets *ps);
437  HEVCParamSets *ps, int apply_defdispwin);
439  HEVCParamSets *ps);
440 
442 
444  ShortTermRPS *rps, const HEVCSPS *sps, int is_slice_header);
445 
446 int ff_hevc_encode_nal_vps(HEVCVPS *vps, unsigned int id,
447  uint8_t *buf, int buf_size);
448 
449 /**
450  * Compute POC of the current frame and return it.
451  */
452 int ff_hevc_compute_poc(const HEVCSPS *sps, int pocTid0, int poc_lsb, int nal_unit_type);
453 
454 #endif /* AVCODEC_HEVC_PS_H */
const HEVCPPS * pps
Definition: hevc_ps.h:419
unsigned int log2_min_cb_size
Definition: hevc_ps.h:289
int extended_precision_processing_flag
Definition: hevc_ps.h:304
uint8_t log2_sao_offset_scale_luma
Definition: hevc_ps.h:390
int min_spatial_segmentation_idc
Definition: hevc_ps.h:169
static enum AVPixelFormat pix_fmt
int pic_order_cnt_lsb
Definition: hevc_ps.h:59
int short_term_ref_pic_set_sps_flag
Definition: hevc_ps.h:67
int ctb_height
Definition: hevc_ps.h:314
uint8_t max_12bit_constraint_flag
Definition: hevc_ps.h:185
ptrdiff_t const GLvoid * data
Definition: opengl_enc.c:100
uint8_t diff_cu_chroma_qp_offset_depth
Definition: hevc_ps.h:386
int vui_num_ticks_poc_diff_one_minus1
Definition: hevc_ps.h:162
int max_dec_pic_buffering
Definition: hevc_ps.h:256
int transform_skip_rotation_enabled_flag
Definition: hevc_ps.h:300
unsigned int * row_height
RowHeight.
Definition: hevc_ps.h:395
int vps_num_ticks_poc_diff_one
vps_num_ticks_poc_diff_one_minus1 + 1
Definition: hevc_ps.h:223
uint8_t max_monochrome_constraint_flag
Definition: hevc_ps.h:190
uint8_t nb_refs
Definition: hevc_ps.h:46
int pic_init_qp_minus26
Definition: hevc_ps.h:342
VUI vui
Definition: hevc_ps.h:262
unsigned int slice_addr
Definition: hevc_ps.h:55
uint32_t vui_time_scale
Definition: hevc_ps.h:160
int ff_hevc_encode_nal_vps(HEVCVPS *vps, unsigned int id, uint8_t *buf, int buf_size)
Definition: hevc_ps_enc.c:66
uint8_t weighted_bipred_flag
Definition: hevc_ps.h:354
unsigned int left_offset
Definition: hevc_ps.h:127
Definition: hevc_ps.h:199
uint8_t seq_loop_filter_across_slices_enabled_flag
Definition: hevc_ps.h:367
uint8_t cabac_init_present_flag
Definition: hevc_ps.h:338
int chroma_loc_info_present_flag
Definition: hevc_ps.h:147
int max_latency_increase
Definition: hevc_ps.h:258
int min_cb_height
Definition: hevc_ps.h:317
int * ctb_addr_ts_to_rs
CtbAddrTSToRS.
Definition: hevc_ps.h:401
int explicit_rdpcm_enabled_flag
Definition: hevc_ps.h:303
int num_ref_idx_l0_default_active
num_ref_idx_l0_default_active_minus1 + 1
Definition: hevc_ps.h:340
uint8_t bit_depth
Definition: hevc_ps.h:280
uint8_t max_420chroma_constraint_flag
Definition: hevc_ps.h:189
uint8_t dependent_slice_segment_flag
Definition: hevc_ps.h:62
ShortTermRPS slice_rps
Definition: hevc_ps.h:69
uint8_t one_picture_only_constraint_flag
Definition: hevc_ps.h:192
int chroma_sample_loc_type_top_field
Definition: hevc_ps.h:148
int width
Definition: hevc_ps.h:311
int qp_bd_offset
Definition: hevc_ps.h:327
int pixel_shift
Definition: hevc_ps.h:248
uint8_t entropy_coding_sync_enabled_flag
Definition: hevc_ps.h:360
HEVCWindow output_window
Definition: hevc_ps.h:242
int log2_parallel_merge_level
log2_parallel_merge_level_minus2 + 2
Definition: hevc_ps.h:379
uint8_t log2_sao_offset_scale_chroma
Definition: hevc_ps.h:391
int restricted_ref_pic_lists_flag
Definition: hevc_ps.h:168
int chroma_format_idc
Definition: hevc_ps.h:239
uint8_t disable_dbf
Definition: hevc_ps.h:371
unsigned int log2_max_trafo_size
Definition: hevc_ps.h:292
unsigned int slice_segment_addr
address (in raster order) of the first block in the current slice
Definition: hevc_ps.h:53
Definition: hevc_ps.h:133
unsigned int num_negative_pics
Definition: hevc_ps.h:35
uint8_t
HEVCWindow pic_conf_win
Definition: hevc_ps.h:244
uint8_t log2_max_transform_skip_block_size
Definition: hevc_ps.h:382
LongTermRPS long_term_rps
Definition: hevc_ps.h:72
int overscan_info_present_flag
Definition: hevc_ps.h:136
uint8_t vps_timing_info_present_flag
Definition: hevc_ps.h:219
uint8_t matrix_coeffs
Definition: hevc_ps.h:145
int min_tb_width
Definition: hevc_ps.h:318
int num_entry_point_offsets
Definition: hevc_ps.h:105
const HEVCVPS * vps
Definition: hevc_ps.h:417
int num_ref_idx_l1_default_active
num_ref_idx_l1_default_active_minus1 + 1
Definition: hevc_ps.h:341
unsigned int log2_min_pcm_cb_size
Definition: hevc_ps.h:282
int min_cb_width
Definition: hevc_ps.h:316
int vps_max_sub_layers
vps_max_temporal_layers_minus1 + 1
Definition: hevc_ps.h:210
int frame_field_info_present_flag
Definition: hevc_ps.h:153
uint8_t tier_flag
Definition: hevc_ps.h:178
uint8_t scaling_list_data_present_flag
Definition: hevc_ps.h:375
uint8_t first_slice_in_pic_flag
Definition: hevc_ps.h:61
uint8_t bit_depth_chroma
Definition: hevc_ps.h:281
int high_precision_offsets_enabled_flag
Definition: hevc_ps.h:306
bitstream reader API header.
uint8_t loop_filter_disable_flag
Definition: hevc_ps.h:284
uint8_t pic_output_flag
Definition: hevc_ps.h:63
int bitstream_restriction_flag
Definition: hevc_ps.h:165
uint8_t transquant_bypass_enable_flag
Definition: hevc_ps.h:356
uint8_t intra_constraint_flag
Definition: hevc_ps.h:191
uint8_t no_output_of_prior_pics_flag
Definition: hevc_ps.h:76
int bit_depth_chroma
Definition: hevc_ps.h:247
int vps_max_layer_id
Definition: hevc_ps.h:217
uint8_t colour_plane_id
RPS coded in the slice header itself is stored here.
Definition: hevc_ps.h:64
uint8_t frame_only_constraint_flag
Definition: hevc_ps.h:184
uint8_t cu_chroma_qp_offset_enabled_flag
Definition: hevc_ps.h:95
unsigned int log2_max_poc_lsb
Definition: hevc_ps.h:251
void ff_hevc_ps_uninit(HEVCParamSets *ps)
Definition: hevc_ps.c:1743
int vps_max_layers
Definition: hevc_ps.h:209
int min_pu_height
Definition: hevc_ps.h:321
int persistent_rice_adaptation_enabled_flag
Definition: hevc_ps.h:307
uint8_t temporal_id_nesting_flag
Definition: hevc_ps.h:260
int data_size
Definition: hevc_ps.h:408
int * size
Definition: hevc_ps.h:104
int vui_timing_info_present_flag
Definition: hevc_ps.h:158
uint8_t amp_enabled_flag
Definition: hevc_ps.h:271
unsigned int log2_ctb_size
Definition: hevc_ps.h:293
int tc_offset
tc_offset_div2 * 2
Definition: hevc_ps.h:98
const ShortTermRPS * short_term_rps
Definition: hevc_ps.h:70
int vui_poc_proportional_to_timing_flag
Definition: hevc_ps.h:161
uint8_t lower_bit_rate_constraint_flag
Definition: hevc_ps.h:193
uint8_t vps_temporal_id_nesting_flag
Definition: hevc_ps.h:208
uint8_t pps_range_extensions_flag
Definition: hevc_ps.h:383
unsigned * entry_point_offset
Definition: hevc_ps.h:102
int8_t slice_qp
Definition: hevc_ps.h:107
uint8_t colour_primaries
Definition: hevc_ps.h:143
uint8_t used[32]
Definition: hevc_ps.h:39
uint8_t slice_temporal_mvp_enabled_flag
Definition: hevc_ps.h:77
int motion_vectors_over_pic_boundaries_flag
Definition: hevc_ps.h:167
uint8_t tiles_enabled_flag
Definition: hevc_ps.h:359
uint32_t vps_num_units_in_tick
Definition: hevc_ps.h:220
int * col_idxX
Definition: hevc_ps.h:398
int slice_qp_delta
Definition: hevc_ps.h:91
const HEVCSPS * sps
Definition: hevc_ps.h:418
int vps_num_layer_sets
vps_num_layer_sets_minus1 + 1
Definition: hevc_ps.h:218
uint8_t lists_modification_present_flag
Definition: hevc_ps.h:378
int * min_tb_addr_zs_tab
MinTbAddrZS.
Definition: hevc_ps.h:405
uint8_t profile_idc
Definition: hevc_ps.h:179
int beta_offset
beta_offset_div2 * 2
Definition: hevc_ps.h:97
int max_transform_hierarchy_depth_inter
Definition: hevc_ps.h:296
int slice_cr_qp_offset
Definition: hevc_ps.h:93
uint8_t vps_poc_proportional_to_timing_flag
Definition: hevc_ps.h:222
int ff_hevc_decode_nal_vps(GetBitContext *gb, AVCodecContext *avctx, HEVCParamSets *ps)
Definition: hevc_ps.c:458
unsigned int top_offset
Definition: hevc_ps.h:129
int32_t
int max_bits_per_min_cu_denom
Definition: hevc_ps.h:171
uint8_t cu_qp_delta_enabled_flag
Definition: hevc_ps.h:347
int ctb_width
Definition: hevc_ps.h:313
int32_t delta_poc[32]
Definition: hevc_ps.h:38
uint8_t sign_data_hiding_flag
Definition: hevc_ps.h:336
int height
Definition: hevc_ps.h:312
uint8_t output_flag_present_flag
Definition: hevc_ps.h:355
int log2_max_mv_length_vertical
Definition: hevc_ps.h:173
int data_size
Definition: hevc_ps.h:227
PTLCommon general_ptl
Definition: hevc_ps.h:200
int max_bytes_per_pic_denom
Definition: hevc_ps.h:170
int overscan_appropriate_flag
Definition: hevc_ps.h:137
int implicit_rdpcm_enabled_flag
Definition: hevc_ps.h:302
unsigned vps_id
Definition: hevc_ps.h:238
uint8_t constrained_intra_pred_flag
Definition: hevc_ps.h:344
int tb_mask
Definition: hevc_ps.h:322
unsigned int pps_id
address (in raster order) of the first block in the current slice segment
Definition: hevc_ps.h:50
PTL ptl
Definition: hevc_ps.h:212
uint8_t pic_slice_level_chroma_qp_offsets_present_flag
Definition: hevc_ps.h:352
uint32_t vps_time_scale
Definition: hevc_ps.h:221
int colour_description_present_flag
Definition: hevc_ps.h:142
int ff_hevc_compute_poc(const HEVCSPS *sps, int pocTid0, int poc_lsb, int nal_unit_type)
Compute POC of the current frame and return it.
Definition: hevc_ps.c:1759
int slice_cb_qp_offset
Definition: hevc_ps.h:92
uint8_t transform_skip_enabled_flag
Definition: hevc_ps.h:345
uint16_t num_tile_columns
num_tile_columns_minus1 + 1
Definition: hevc_ps.h:362
int short_term_ref_pic_set_size
Definition: hevc_ps.h:68
Libavcodec external API header.
uint8_t uniform_spacing_flag
Definition: hevc_ps.h:364
int ctb_size
Definition: hevc_ps.h:315
int * ctb_addr_rs_to_ts
CtbAddrRSToTS.
Definition: hevc_ps.h:400
PTL ptl
Definition: hevc_ps.h:263
int max_sub_layers
Definition: hevc_ps.h:254
unsigned int log2_min_pu_size
Definition: hevc_ps.h:294
unsigned int sps_id
seq_parameter_set_id
Definition: hevc_ps.h:334
ScalingList scaling_list
Definition: hevc_ps.h:376
int long_term_ref_pic_set_size
Definition: hevc_ps.h:71
main external API structure.
Definition: avcodec.h:526
int log2_max_mv_length_horizontal
Definition: hevc_ps.h:172
uint8_t sao_enabled
Definition: hevc_ps.h:272
int num_extra_slice_header_bits
Definition: hevc_ps.h:380
uint8_t loop_filter_across_tiles_enabled_flag
Definition: hevc_ps.h:365
uint8_t max_10bit_constraint_flag
Definition: hevc_ps.h:186
uint8_t num_long_term_ref_pics_sps
Definition: hevc_ps.h:277
uint8_t cross_component_prediction_enabled_flag
Definition: hevc_ps.h:384
int ff_hevc_decode_nal_pps(GetBitContext *gb, AVCodecContext *avctx, HEVCParamSets *ps)
Definition: hevc_ps.c:1495
uint32_t vui_num_units_in_tick
Definition: hevc_ps.h:159
int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id, int apply_defdispwin, AVBufferRef **vps_list, AVCodecContext *avctx)
Parse the SPS from the bitstream into the provided HEVCSPS struct.
Definition: hevc_ps.c:904
uint8_t deblocking_filter_control_present_flag
Definition: hevc_ps.h:369
int transform_skip_context_enabled_flag
Definition: hevc_ps.h:301
uint8_t sps_temporal_mvp_enabled_flag
Definition: hevc_ps.h:286
unsigned int nb_st_rps
Definition: hevc_ps.h:268
int chroma_sample_loc_type_bottom_field
Definition: hevc_ps.h:149
uint8_t cabac_init_flag
Definition: hevc_ps.h:84
uint8_t chroma_qp_offset_list_enabled_flag
Definition: hevc_ps.h:385
Rational number (pair of numerator and denominator).
Definition: rational.h:58
int vps_num_hrd_parameters
Definition: hevc_ps.h:224
unsigned int max_num_merge_cand
5 - 5_minus_max_num_merge_cand
Definition: hevc_ps.h:100
int ff_hevc_decode_short_term_rps(GetBitContext *gb, AVCodecContext *avctx, ShortTermRPS *rps, const HEVCSPS *sps, int is_slice_header)
Definition: hevc_ps.c:119
unsigned int log2_min_tb_size
Definition: hevc_ps.h:291
refcounted data buffer API
static int FUNC() sps(CodedBitstreamContext *ctx, RWContext *rw, H264RawSPS *current)
uint8_t scaling_list_enable_flag
Definition: hevc_ps.h:265
int * tile_id
TileId.
Definition: hevc_ps.h:402
int16_t chroma_log2_weight_denom
Definition: hevc_ps.h:110
int tc_offset
tc_offset_div2 * 2
Definition: hevc_ps.h:373
uint8_t transfer_characteristic
Definition: hevc_ps.h:144
int default_display_window_flag
Definition: hevc_ps.h:155
static int FUNC() vps(CodedBitstreamContext *ctx, RWContext *rw, H265RawVPS *current)
HEVCWindow def_disp_win
Definition: hevc_ps.h:156
int cr_qp_offset
Definition: hevc_ps.h:351
ScalingList scaling_list
Definition: hevc_ps.h:266
unsigned int log2_diff_max_min_coding_block_size
Definition: hevc_ps.h:290
unsigned int log2_max_pcm_cb_size
Definition: hevc_ps.h:283
uint8_t level_idc
Definition: hevc_ps.h:196
int ff_hevc_decode_nal_sps(GetBitContext *gb, AVCodecContext *avctx, HEVCParamSets *ps, int apply_defdispwin)
Definition: hevc_ps.c:1246
int neutra_chroma_indication_flag
Definition: hevc_ps.h:150
HEVCSliceType
Definition: hevc.h:95
int * tile_pos_rs
TilePosRS.
Definition: hevc_ps.h:403
int data_size
Definition: hevc_ps.h:330
A reference to a data buffer.
Definition: buffer.h:81
int max_transform_hierarchy_depth_intra
Definition: hevc_ps.h:297
uint8_t profile_space
Definition: hevc_ps.h:177
unsigned int * row_bd
RowBd.
Definition: hevc_ps.h:397
int video_format
Definition: hevc_ps.h:140
Utilties for rational number calculation.
uint8_t weighted_pred_flag
Definition: hevc_ps.h:353
uint8_t disable_deblocking_filter_flag
slice_header_disable_deblocking_filter_flag
Definition: hevc_ps.h:85
uint16_t num_tile_rows
num_tile_rows_minus1 + 1
Definition: hevc_ps.h:363
unsigned int * col_bd
ColBd.
Definition: hevc_ps.h:396
unsigned int * column_width
ColumnWidth.
Definition: hevc_ps.h:394
uint8_t slice_header_extension_present_flag
Definition: hevc_ps.h:381
uint8_t collocated_list
Definition: hevc_ps.h:87
int slice_ctb_addr_rs
Definition: hevc_ps.h:123
int video_full_range_flag
Definition: hevc_ps.h:141
int cabac_bypass_alignment_enabled_flag
coded frame dimension in various units
Definition: hevc_ps.h:308
AVRational sar
Definition: hevc_ps.h:134
uint8_t chroma_qp_offset_list_len_minus1
Definition: hevc_ps.h:387
uint8_t slice_loop_filter_across_slices_enabled_flag
Definition: hevc_ps.h:86
int num_delta_pocs
Definition: hevc_ps.h:36
uint8_t sps_strong_intra_smoothing_enable_flag
Definition: hevc_ps.h:287
pixel format definitions
int rps_idx_num_delta_pocs
Definition: hevc_ps.h:37
unsigned int collocated_ref_idx
Definition: hevc_ps.h:89
int min_pu_width
Definition: hevc_ps.h:320
uint8_t max_422chroma_constraint_flag
Definition: hevc_ps.h:188
int sps_range_extension_flag
Definition: hevc_ps.h:299
uint8_t luma_log2_weight_denom
Definition: hevc_ps.h:109
uint8_t max_8bit_constraint_flag
Definition: hevc_ps.h:187
uint8_t long_term_ref_pics_present_flag
Definition: hevc_ps.h:274
uint8_t max_14bit_constraint_flag
Definition: hevc_ps.h:194
int vui_hrd_parameters_present_flag
Definition: hevc_ps.h:163
unsigned int right_offset
Definition: hevc_ps.h:128
int diff_cu_qp_delta_depth
Definition: hevc_ps.h:348
int num_reorder_pics
Definition: hevc_ps.h:257
uint8_t progressive_source_flag
Definition: hevc_ps.h:181
int cb_qp_offset
Definition: hevc_ps.h:350
int video_signal_type_present_flag
Definition: hevc_ps.h:139
uint8_t deblocking_filter_override_enabled_flag
Definition: hevc_ps.h:370
int bit_depth
Definition: hevc_ps.h:246
int beta_offset
beta_offset_div2 * 2
Definition: hevc_ps.h:372
int min_tb_height
Definition: hevc_ps.h:319
int * min_tb_addr_zs
MinTbAddrZS.
Definition: hevc_ps.h:404
uint8_t inbld_flag
Definition: hevc_ps.h:195
uint8_t non_packed_constraint_flag
Definition: hevc_ps.h:183
int intra_smoothing_disabled_flag
Definition: hevc_ps.h:305
int pcm_enabled_flag
Definition: hevc_ps.h:252
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64
int tiles_fixed_structure_flag
Definition: hevc_ps.h:166
int * offset
Definition: hevc_ps.h:103
uint8_t interlaced_source_flag
Definition: hevc_ps.h:182
uint8_t mvd_l1_zero_flag
Definition: hevc_ps.h:82
int field_seq_flag
Definition: hevc_ps.h:152
uint8_t separate_colour_plane_flag
Definition: hevc_ps.h:240
unsigned int bottom_offset
Definition: hevc_ps.h:130
int vps_sub_layer_ordering_info_present_flag
Definition: hevc_ps.h:213
uint8_t dependent_slice_segments_enabled_flag
Definition: hevc_ps.h:358