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];
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 
56  enum HEVCSliceType slice_type;
57 
59 
64 
65  ///< RPS coded in the slice header itself is stored here
72  unsigned int list_entry_lx[2][32];
73 
74  uint8_t rpl_modification_flag[2];
77 
78  unsigned int nb_refs[2];
79 
80  uint8_t slice_sample_adaptive_offset_flag[3];
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 {
179  uint8_t profile_compatibility_flag[32];
185 } PTLCommon;
186 
187 typedef struct PTL {
190 
191  uint8_t sub_layer_profile_present_flag[HEVC_MAX_SUB_LAYERS];
192  uint8_t sub_layer_level_present_flag[HEVC_MAX_SUB_LAYERS];
193 } PTL;
194 
195 typedef struct HEVCVPS {
198  int vps_max_sub_layers; ///< vps_max_temporal_layers_minus1 + 1
199 
202  unsigned int vps_max_dec_pic_buffering[HEVC_MAX_SUB_LAYERS];
203  unsigned int vps_num_reorder_pics[HEVC_MAX_SUB_LAYERS];
204  unsigned int vps_max_latency_increase[HEVC_MAX_SUB_LAYERS];
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 {
247  } temporal_layer[HEVC_MAX_SUB_LAYERS];
249 
252 
255 
256  unsigned int nb_st_rps;
258 
261 
263  uint16_t lt_ref_pic_poc_lsb_sps[HEVC_MAX_LONG_TERM_REF_PICS];
264  uint8_t used_by_curr_pic_lt_sps_flag[HEVC_MAX_LONG_TERM_REF_PICS];
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 
297 
298  ///< coded frame dimension in various units
299  int width;
300  int height;
303  int ctb_size;
310  int tb_mask;
311 
312  int hshift[3];
313  int vshift[3];
314 
316 
317  uint8_t data[4096];
319 } HEVCSPS;
320 
321 typedef struct HEVCPPS {
322  unsigned int sps_id; ///< seq_parameter_set_id
323 
325 
327 
328  int num_ref_idx_l0_default_active; ///< num_ref_idx_l0_default_active_minus1 + 1
329  int num_ref_idx_l1_default_active; ///< num_ref_idx_l1_default_active_minus1 + 1
331 
334 
337 
345 
349 
350  uint16_t num_tile_columns; ///< num_tile_columns_minus1 + 1
351  uint16_t num_tile_rows; ///< num_tile_rows_minus1 + 1
354 
356 
360  int beta_offset; ///< beta_offset_div2 * 2
361  int tc_offset; ///< tc_offset_div2 * 2
362 
365 
367  int log2_parallel_merge_level; ///< log2_parallel_merge_level_minus2 + 2
376  int8_t cb_qp_offset_list[6];
377  int8_t cr_qp_offset_list[6];
380 
381  // Inferred parameters
382  unsigned int *column_width; ///< ColumnWidth
383  unsigned int *row_height; ///< RowHeight
384  unsigned int *col_bd; ///< ColBd
385  unsigned int *row_bd; ///< RowBd
386  int *col_idxX;
387 
388  int *ctb_addr_rs_to_ts; ///< CtbAddrRSToTS
389  int *ctb_addr_ts_to_rs; ///< CtbAddrTSToRS
390  int *tile_id; ///< TileId
391  int *tile_pos_rs; ///< TilePosRS
392  int *min_tb_addr_zs; ///< MinTbAddrZS
393  int *min_tb_addr_zs_tab;///< MinTbAddrZS
394 
395  uint8_t data[4096];
397 } HEVCPPS;
398 
399 typedef struct HEVCParamSets {
403 
404  /* currently active parameter sets */
405  const HEVCVPS *vps;
406  const HEVCSPS *sps;
407  const HEVCPPS *pps;
408 } HEVCParamSets;
409 
410 /**
411  * Parse the SPS from the bitstream into the provided HEVCSPS struct.
412  *
413  * @param sps_id the SPS id will be written here
414  * @param apply_defdispwin if set 1, the default display window from the VUI
415  * will be applied to the video dimensions
416  * @param vps_list if non-NULL, this function will validate that the SPS refers
417  * to an existing VPS
418  */
419 int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
420  int apply_defdispwin, AVBufferRef **vps_list, AVCodecContext *avctx);
421 
423  HEVCParamSets *ps);
425  HEVCParamSets *ps, int apply_defdispwin);
427  HEVCParamSets *ps);
428 
430 
432  ShortTermRPS *rps, const HEVCSPS *sps, int is_slice_header);
433 
434 int ff_hevc_encode_nal_vps(HEVCVPS *vps, unsigned int id,
435  uint8_t *buf, int buf_size);
436 
437 /**
438  * Compute POC of the current frame and return it.
439  */
440 int ff_hevc_compute_poc(const HEVCSPS *sps, int pocTid0, int poc_lsb, int nal_unit_type);
441 
442 #endif /* AVCODEC_HEVC_PS_H */
const HEVCPPS * pps
Definition: hevc_ps.h:407
unsigned int log2_min_cb_size
Definition: hevc_ps.h:277
int extended_precision_processing_flag
Definition: hevc_ps.h:292
uint8_t log2_sao_offset_scale_luma
Definition: hevc_ps.h:378
int min_spatial_segmentation_idc
Definition: hevc_ps.h:168
static enum AVPixelFormat pix_fmt
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:302
ptrdiff_t const GLvoid * data
Definition: opengl_enc.c:100
uint8_t diff_cu_chroma_qp_offset_depth
Definition: hevc_ps.h:374
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:288
unsigned int * row_height
RowHeight.
Definition: hevc_ps.h:383
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:330
VUI vui
Definition: hevc_ps.h:250
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:342
unsigned int left_offset
Definition: hevc_ps.h:126
Definition: hevc_ps.h:187
uint8_t seq_loop_filter_across_slices_enabled_flag
Definition: hevc_ps.h:355
uint8_t cabac_init_present_flag
Definition: hevc_ps.h:326
int chroma_loc_info_present_flag
Definition: hevc_ps.h:146
int max_latency_increase
Definition: hevc_ps.h:246
int min_cb_height
Definition: hevc_ps.h:305
int * ctb_addr_ts_to_rs
CtbAddrTSToRS.
Definition: hevc_ps.h:389
int explicit_rdpcm_enabled_flag
Definition: hevc_ps.h:291
int num_ref_idx_l0_default_active
num_ref_idx_l0_default_active_minus1 + 1
Definition: hevc_ps.h:328
uint8_t bit_depth
Definition: hevc_ps.h:268
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:299
int qp_bd_offset
Definition: hevc_ps.h:315
int pixel_shift
Definition: hevc_ps.h:236
uint8_t entropy_coding_sync_enabled_flag
Definition: hevc_ps.h:348
HEVCWindow output_window
Definition: hevc_ps.h:230
int log2_parallel_merge_level
log2_parallel_merge_level_minus2 + 2
Definition: hevc_ps.h:367
uint8_t log2_sao_offset_scale_chroma
Definition: hevc_ps.h:379
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:359
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
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:370
LongTermRPS long_term_rps
Definition: hevc_ps.h:71
int overscan_info_present_flag
Definition: hevc_ps.h:135
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:306
int num_entry_point_offsets
Definition: hevc_ps.h:104
const HEVCVPS * vps
Definition: hevc_ps.h:405
int num_ref_idx_l1_default_active
num_ref_idx_l1_default_active_minus1 + 1
Definition: hevc_ps.h:329
unsigned int log2_min_pcm_cb_size
Definition: hevc_ps.h:270
int min_cb_width
Definition: hevc_ps.h:304
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:363
uint8_t first_slice_in_pic_flag
Definition: hevc_ps.h:60
uint8_t bit_depth_chroma
Definition: hevc_ps.h:269
int high_precision_offsets_enabled_flag
Definition: hevc_ps.h:294
bitstream reader API header.
uint8_t loop_filter_disable_flag
Definition: hevc_ps.h:272
uint8_t pic_output_flag
Definition: hevc_ps.h:62
int bitstream_restriction_flag
Definition: hevc_ps.h:164
uint8_t transquant_bypass_enable_flag
Definition: hevc_ps.h:344
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
void ff_hevc_ps_uninit(HEVCParamSets *ps)
Definition: hevc_ps.c:1709
int vps_max_layers
Definition: hevc_ps.h:197
int min_pu_height
Definition: hevc_ps.h:309
int persistent_rice_adaptation_enabled_flag
Definition: hevc_ps.h:295
uint8_t temporal_id_nesting_flag
Definition: hevc_ps.h:248
int data_size
Definition: hevc_ps.h:396
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
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
uint8_t pps_range_extensions_flag
Definition: hevc_ps.h:371
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:347
uint32_t vps_num_units_in_tick
Definition: hevc_ps.h:208
int * col_idxX
Definition: hevc_ps.h:386
int slice_qp_delta
Definition: hevc_ps.h:90
const HEVCSPS * sps
Definition: hevc_ps.h:406
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:366
int * min_tb_addr_zs_tab
MinTbAddrZS.
Definition: hevc_ps.h:393
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 ff_hevc_decode_nal_vps(GetBitContext *gb, AVCodecContext *avctx, HEVCParamSets *ps)
Definition: hevc_ps.c:424
unsigned int top_offset
Definition: hevc_ps.h:128
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:335
int ctb_width
Definition: hevc_ps.h:301
int32_t delta_poc[32]
Definition: hevc_ps.h:38
uint8_t sign_data_hiding_flag
Definition: hevc_ps.h:324
int height
Definition: hevc_ps.h:300
uint8_t output_flag_present_flag
Definition: hevc_ps.h:343
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
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:290
unsigned vps_id
Definition: hevc_ps.h:226
uint8_t constrained_intra_pred_flag
Definition: hevc_ps.h:332
int tb_mask
Definition: hevc_ps.h:310
unsigned int pps_id
address (in raster order) of the first block in the current slice segment
Definition: hevc_ps.h:49
PTL ptl
Definition: hevc_ps.h:200
uint8_t pic_slice_level_chroma_qp_offsets_present_flag
Definition: hevc_ps.h:340
uint32_t vps_time_scale
Definition: hevc_ps.h:209
int colour_description_present_flag
Definition: hevc_ps.h:141
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:1725
int slice_cb_qp_offset
Definition: hevc_ps.h:91
uint8_t transform_skip_enabled_flag
Definition: hevc_ps.h:333
uint16_t num_tile_columns
num_tile_columns_minus1 + 1
Definition: hevc_ps.h:350
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:352
int ctb_size
Definition: hevc_ps.h:303
int * ctb_addr_rs_to_ts
CtbAddrRSToTS.
Definition: hevc_ps.h:388
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:322
ScalingList scaling_list
Definition: hevc_ps.h:364
int long_term_ref_pic_set_size
Definition: hevc_ps.h:70
main external API structure.
Definition: avcodec.h:1568
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:368
uint8_t loop_filter_across_tiles_enabled_flag
Definition: hevc_ps.h:353
uint8_t num_long_term_ref_pics_sps
Definition: hevc_ps.h:265
uint8_t cross_component_prediction_enabled_flag
Definition: hevc_ps.h:372
void * buf
Definition: avisynth_c.h:766
int ff_hevc_decode_nal_pps(GetBitContext *gb, AVCodecContext *avctx, HEVCParamSets *ps)
Definition: hevc_ps.c:1461
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:870
uint8_t deblocking_filter_control_present_flag
Definition: hevc_ps.h:357
int transform_skip_context_enabled_flag
Definition: hevc_ps.h:289
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
uint8_t chroma_qp_offset_list_enabled_flag
Definition: hevc_ps.h:373
Rational number (pair of numerator and denominator).
Definition: rational.h:58
int vps_num_hrd_parameters
Definition: hevc_ps.h:212
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:119
unsigned int log2_min_tb_size
Definition: hevc_ps.h:279
refcounted data buffer API
static int FUNC() sps(CodedBitstreamContext *ctx, RWContext *rw, H264RawSPS *current)
uint8_t scaling_list_enable_flag
Definition: hevc_ps.h:253
int * tile_id
TileId.
Definition: hevc_ps.h:390
int16_t chroma_log2_weight_denom
Definition: hevc_ps.h:109
int tc_offset
tc_offset_div2 * 2
Definition: hevc_ps.h:361
uint8_t transfer_characteristic
Definition: hevc_ps.h:143
int default_display_window_flag
Definition: hevc_ps.h:154
static int FUNC() vps(CodedBitstreamContext *ctx, RWContext *rw, H265RawVPS *current)
HEVCWindow def_disp_win
Definition: hevc_ps.h:155
int cr_qp_offset
Definition: hevc_ps.h:339
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:1212
int neutra_chroma_indication_flag
Definition: hevc_ps.h:149
HEVCSliceType
Definition: hevc.h:95
int * tile_pos_rs
TilePosRS.
Definition: hevc_ps.h:391
int data_size
Definition: hevc_ps.h:318
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:385
int video_format
Definition: hevc_ps.h:139
Utilties for rational number calculation.
uint8_t weighted_pred_flag
Definition: hevc_ps.h:341
uint8_t disable_deblocking_filter_flag
slice_header_disable_deblocking_filter_flag
Definition: hevc_ps.h:84
uint16_t num_tile_rows
num_tile_rows_minus1 + 1
Definition: hevc_ps.h:351
unsigned int * col_bd
ColBd.
Definition: hevc_ps.h:384
unsigned int * column_width
ColumnWidth.
Definition: hevc_ps.h:382
uint8_t slice_header_extension_present_flag
Definition: hevc_ps.h:369
uint8_t collocated_list
Definition: hevc_ps.h:86
int slice_ctb_addr_rs
Definition: hevc_ps.h:122
int video_full_range_flag
Definition: hevc_ps.h:140
int cabac_bypass_alignment_enabled_flag
coded frame dimension in various units
Definition: hevc_ps.h:296
AVRational sar
Definition: hevc_ps.h:133
uint8_t chroma_qp_offset_list_len_minus1
Definition: hevc_ps.h:375
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:308
int sps_range_extension_flag
Definition: hevc_ps.h:287
uint8_t luma_log2_weight_denom
Definition: hevc_ps.h:108
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:336
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:338
int video_signal_type_present_flag
Definition: hevc_ps.h:138
uint8_t deblocking_filter_override_enabled_flag
Definition: hevc_ps.h:358
int bit_depth
Definition: hevc_ps.h:234
int beta_offset
beta_offset_div2 * 2
Definition: hevc_ps.h:360
int min_tb_height
Definition: hevc_ps.h:307
int * min_tb_addr_zs
MinTbAddrZS.
Definition: hevc_ps.h:392
uint8_t non_packed_constraint_flag
Definition: hevc_ps.h:183
int intra_smoothing_disabled_flag
Definition: hevc_ps.h:293
int pcm_enabled_flag
Definition: hevc_ps.h:240
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64
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 dependent_slice_segments_enabled_flag
Definition: hevc_ps.h:346