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