32 16, 16, 16, 16, 17, 18, 21, 24,
33 16, 16, 16, 16, 17, 19, 22, 25,
34 16, 16, 17, 18, 20, 22, 25, 29,
35 16, 16, 18, 21, 24, 27, 31, 36,
36 17, 17, 20, 24, 30, 35, 41, 47,
37 18, 19, 22, 27, 35, 44, 54, 65,
38 21, 22, 25, 31, 41, 54, 70, 88,
39 24, 25, 29, 36, 47, 65, 88, 115
43 16, 16, 16, 16, 17, 18, 20, 24,
44 16, 16, 16, 17, 18, 20, 24, 25,
45 16, 16, 17, 18, 20, 24, 25, 28,
46 16, 17, 18, 20, 24, 25, 28, 33,
47 17, 18, 20, 24, 25, 28, 33, 41,
48 18, 20, 24, 25, 28, 33, 41, 54,
49 20, 24, 25, 28, 33, 41, 54, 71,
50 24, 25, 28, 33, 41, 54, 71, 91
135 unsigned abs_delta_rps;
139 if (is_slice_header) {
143 "Invalid value of delta_idx in slice header RPS: %d > %d.\n",
154 if (abs_delta_rps < 1 || abs_delta_rps > 32768) {
156 "Invalid value of abs_delta_rps: %d\n",
160 delta_rps = (1 - (delta_rps_sign << 1)) * abs_delta_rps;
167 if (used || use_delta_flag) {
168 if (i < rps_ridx->num_delta_pocs)
169 delta_poc = delta_rps + rps_ridx->
delta_poc[i];
171 delta_poc = delta_rps;
183 "Invalid num_delta_pocs: %d\n", k);
195 for (k = i - 1; k >= 0; k--) {
197 if (delta_poc < tmp) {
221 unsigned int prev, nb_positive_pics;
236 if (delta_poc < 1 || delta_poc > 32768) {
238 "Invalid value of delta_poc: %d\n",
247 for (i = 0; i < nb_positive_pics; i++) {
249 if (delta_poc < 1 || delta_poc > 32768) {
251 "Invalid value of delta_poc: %d\n",
287 for (i = 0; i < 32; i++) {
306 PTL *ptl,
int max_num_sub_layers)
310 get_bits_left(gb) < 8 + (8*2 * (max_num_sub_layers - 1 > 0))) {
317 for (i = 0; i < max_num_sub_layers - 1; i++) {
322 if (max_num_sub_layers - 1> 0)
323 for (i = max_num_sub_layers - 1; i < 8; i++)
325 for (i = 0; i < max_num_sub_layers - 1; i++) {
329 "PTL information for sublayer %i too short\n", i);
335 "Not enough data for sublayer %i level_idc\n", i);
346 int subpic_params_present)
350 for (i = 0; i < nb_cpb; i++) {
354 if (subpic_params_present) {
365 int nal_params_present = 0, vcl_params_present = 0;
366 int subpic_params_present = 0;
369 if (common_inf_present) {
373 if (nal_params_present || vcl_params_present) {
376 if (subpic_params_present) {
386 if (subpic_params_present)
395 for (i = 0; i < max_sublayers; i++) {
397 unsigned int nb_cpb = 1;
410 if (nb_cpb < 1 || nb_cpb > 32) {
416 if (nal_params_present)
418 if (vcl_params_present)
440 if (nal_size >
sizeof(vps->
data)) {
443 nal_size,
sizeof(vps->
data));
526 int common_inf_present = 1;
561 VUI backup_vui, *vui = &sps->
vui;
563 int sar_present, alt = 0;
571 vui->
sar = vui_sar[sar_idx];
572 else if (sar_idx == 255) {
577 "Unknown SAR index: %u.\n", sar_idx);
630 memcpy(&backup, gb,
sizeof(backup));
631 memcpy(&backup_vui, vui,
sizeof(backup_vui));
646 if (apply_defdispwin &&
649 "discarding vui default display window, "
650 "original values are l:%u r:%u t:%u b:%u\n",
671 "Strange VUI timing information, retrying...\n");
672 memcpy(vui, &backup_vui,
sizeof(backup_vui));
673 memcpy(gb, &backup,
sizeof(backup));
695 "Strange VUI bitstream restriction information, retrying"
696 " from timing information...\n");
697 memcpy(vui, &backup_vui,
sizeof(backup_vui));
698 memcpy(gb, &backup,
sizeof(backup));
715 "Overread in VUI, retrying from timing information...\n");
716 memcpy(vui, &backup_vui,
sizeof(backup_vui));
717 memcpy(gb, &backup,
sizeof(backup));
727 for (matrixId = 0; matrixId < 6; matrixId++) {
729 memset(sl->
sl[0][matrixId], 16, 16);
730 sl->
sl_dc[0][matrixId] = 16;
731 sl->
sl_dc[1][matrixId] = 16;
755 uint8_t scaling_list_pred_mode_flag;
756 int32_t scaling_list_dc_coef[2][6];
757 int size_id, matrix_id, pos;
760 for (size_id = 0; size_id < 4; size_id++)
761 for (matrix_id = 0; matrix_id < 6; matrix_id += ((size_id == 3) ? 3 : 1)) {
762 scaling_list_pred_mode_flag =
get_bits1(gb);
763 if (!scaling_list_pred_mode_flag) {
769 delta *= (size_id == 3) ? 3 : 1;
770 if (matrix_id < delta) {
772 "Invalid delta in scaling list data: %d.\n", delta);
776 memcpy(sl->
sl[size_id][matrix_id],
777 sl->
sl[size_id][matrix_id - delta],
778 size_id > 0 ? 64 : 16);
780 sl->
sl_dc[size_id - 2][matrix_id] = sl->
sl_dc[size_id - 2][matrix_id -
delta];
783 int next_coef, coef_num;
784 int32_t scaling_list_delta_coef;
787 coef_num =
FFMIN(64, 1 << (4 + (size_id << 1)));
789 scaling_list_dc_coef[size_id - 2][matrix_id] =
get_se_golomb(gb) + 8;
790 next_coef = scaling_list_dc_coef[size_id - 2][matrix_id];
791 sl->
sl_dc[size_id - 2][matrix_id] = next_coef;
793 for (i = 0; i < coef_num; i++) {
802 next_coef = (next_coef + 256
U + scaling_list_delta_coef) % 256;
803 sl->
sl[size_id][matrix_id][pos] = next_coef;
809 for (i = 0; i < 64; i++) {
810 sl->
sl[3][1][i] = sl->
sl[2][1][i];
811 sl->
sl[3][2][i] = sl->
sl[2][2][i];
812 sl->
sl[3][4][i] = sl->
sl[2][4][i];
813 sl->
sl[3][5][i] = sl->
sl[2][5][i];
855 "The following bit-depths are currently specified: 8, 9, 10 and 12 bits, "
856 "chroma_format_idc is %d, depth is %d\n",
879 int log2_diff_max_min_transform_block_size;
880 int bit_depth_chroma,
start, vui_present, sublayer_ordering_info;
891 if (vps_list && !vps_list[sps->
vps_id]) {
930 sps->
height, 0, avctx)) < 0)
943 "discarding sps conformance window, "
944 "original values are l:%u r:%u t:%u b:%u\n",
962 "Luma bit depth (%d) is different from chroma bit depth (%d), "
963 "this is unsupported.\n",
1002 if (!sublayer_ordering_info) {
1003 for (i = 0; i <
start; i++) {
1032 if (log2_diff_max_min_transform_block_size < 0 || log2_diff_max_min_transform_block_size > 30) {
1033 av_log(avctx,
AV_LOG_ERROR,
"Invalid value %d for log2_diff_max_min_transform_block_size", log2_diff_max_min_transform_block_size);
1063 "PCM bit depth (%d, %d) is greater than normal bit depth (%d)\n",
1102 decode_vui(gb, avctx, apply_defdispwin, sps);
1105 int sps_range_extension_flag =
get_bits1(gb);
1107 if (sps_range_extension_flag) {
1108 int extended_precision_processing_flag;
1109 int cabac_bypass_alignment_enabled_flag;
1117 extended_precision_processing_flag =
get_bits1(gb);
1118 if (extended_precision_processing_flag)
1120 "extended_precision_processing_flag not yet implemented\n");
1126 "high_precision_offsets_enabled_flag not yet implemented\n");
1130 cabac_bypass_alignment_enabled_flag =
get_bits1(gb);
1131 if (cabac_bypass_alignment_enabled_flag)
1133 "cabac_bypass_alignment_enabled_flag not yet implemented\n");
1136 if (apply_defdispwin) {
1154 "Displaying the whole video surface.\n");
1155 memset(ow, 0,
sizeof(*ow));
1171 "log2_ctb_size %d differs from the bounds of any known profile\n",
1198 av_log(avctx,
AV_LOG_ERROR,
"max_transform_hierarchy_depth_inter out of range: %d\n",
1203 av_log(avctx,
AV_LOG_ERROR,
"max_transform_hierarchy_depth_intra out of range: %d\n",
1209 "max transform block size out of range: %d\n",
1228 unsigned int sps_id;
1239 if (nal_size >
sizeof(sps->
data)) {
1242 nal_size,
sizeof(sps->
data));
1259 "Parsed SPS: id %d; coded wxh: %dx%d; "
1260 "cropped wxh: %dx%d; pix_fmt: %s.\n",
1313 "chroma_qp_offset_list_len_minus1 shall be in the range [0, 5].\n");
1320 "cb_qp_offset_list not tested yet.\n");
1325 "cb_qp_offset_list not tested yet.\n");
1344 int pic_area_in_ctbs;
1345 int i, j, x, y, ctb_addr_rs, tile_id;
1401 for (ctb_addr_rs = 0; ctb_addr_rs < pic_area_in_ctbs; ctb_addr_rs++) {
1402 int tb_x = ctb_addr_rs % sps->
ctb_width;
1403 int tb_y = ctb_addr_rs / sps->
ctb_width;
1409 if (tb_x < pps->col_bd[i + 1]) {
1416 if (tb_y < pps->row_bd[i + 1]) {
1422 for (i = 0; i < tile_x; i++)
1424 for (i = 0; i < tile_y; i++)
1428 tb_x - pps->
col_bd[tile_x];
1436 for (y = pps->
row_bd[j]; y < pps->row_bd[j + 1]; y++)
1437 for (x = pps->
col_bd[i]; x < pps->col_bd[i + 1]; x++)
1451 for (y = 0; y < sps->
tb_mask+2; y++) {
1455 for (y = 0; y < sps->
tb_mask+1; y++) {
1456 for (x = 0; x < sps->
tb_mask+1; x++) {
1457 int tb_x = x >> log2_diff;
1458 int tb_y = y >> log2_diff;
1461 for (i = 0; i < log2_diff; i++) {
1463 val += (m & x ? m * m : 0) + (m & y ? 2 * m * m : 0);
1477 unsigned int pps_id = 0;
1479 unsigned log2_parallel_merge_level_minus2;
1497 if (nal_size >
sizeof(pps->
data)) {
1500 nal_size,
sizeof(pps->
data));
1652 if (beta_offset_div2 < -6 || beta_offset_div2 > 6) {
1658 if (tc_offset_div2 < -6 || tc_offset_div2 > 6) {
1678 if (log2_parallel_merge_level_minus2 > sps->
log2_ctb_size) {
1680 log2_parallel_merge_level_minus2);
1689 int pps_range_extensions_flag =
get_bits1(gb);
1736 int prev_poc_lsb = pocTid0 % max_poc_lsb;
1737 int prev_poc_msb = pocTid0 - prev_poc_lsb;
1740 if (poc_lsb < prev_poc_lsb && prev_poc_lsb - poc_lsb >= max_poc_lsb / 2)
1741 poc_msb = prev_poc_msb + max_poc_lsb;
1742 else if (poc_lsb > prev_poc_lsb && poc_lsb - prev_poc_lsb > max_poc_lsb / 2)
1743 poc_msb = prev_poc_msb - max_poc_lsb;
1745 poc_msb = prev_poc_msb;
1753 return poc_msb + poc_lsb;
static unsigned int show_bits_long(GetBitContext *s, int n)
Show 0-32 bits.
PTLCommon sub_layer_ptl[HEVC_MAX_SUB_LAYERS]
unsigned int log2_min_cb_size
const char const char void * val
uint8_t log2_sao_offset_scale_luma
int min_spatial_segmentation_idc
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
void av_buffer_unref(AVBufferRef **buf)
Free a given reference and automatically free the buffer if there are no more references to it...
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
AVBufferRef * vps_list[HEVC_MAX_VPS_COUNT]
ptrdiff_t const GLvoid * data
uint8_t diff_cu_chroma_qp_offset_depth
static int get_se_golomb(GetBitContext *gb)
read signed exp golomb code.
int vui_num_ticks_poc_diff_one_minus1
int max_dec_pic_buffering
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
int transform_skip_rotation_enabled_flag
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
#define AV_LOG_WARNING
Something somehow does not look correct.
unsigned int * row_height
RowHeight.
int vps_num_ticks_poc_diff_one
vps_num_ticks_poc_diff_one_minus1 + 1
unsigned int vps_max_latency_increase[HEVC_MAX_SUB_LAYERS]
static const uint8_t hevc_sub_width_c[]
#define FF_DEBUG_BITSTREAM
#define AV_PIX_FMT_GBRP10
uint8_t weighted_bipred_flag
int ff_hevc_decode_short_term_rps(GetBitContext *gb, AVCodecContext *avctx, ShortTermRPS *rps, const HEVCSPS *sps, int is_slice_header)
unsigned int vps_max_dec_pic_buffering[HEVC_MAX_SUB_LAYERS]
uint8_t seq_loop_filter_across_slices_enabled_flag
uint8_t cabac_init_present_flag
int chroma_loc_info_present_flag
static void decode_sublayer_hrd(GetBitContext *gb, unsigned int nb_cpb, int subpic_params_present)
#define AV_PIX_FMT_YUV420P12
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
uint8_t used_by_curr_pic_lt_sps_flag[HEVC_MAX_LONG_TERM_REF_PICS]
ShortTermRPS st_rps[HEVC_MAX_SHORT_TERM_REF_PIC_SETS]
int * ctb_addr_ts_to_rs
CtbAddrTSToRS.
int explicit_rdpcm_enabled_flag
int num_ref_idx_l0_default_active
num_ref_idx_l0_default_active_minus1 + 1
static const AVRational vui_sar[]
int8_t cr_qp_offset_list[6]
order of coefficients is actually GBR, also IEC 61966-2-1 (sRGB)
int chroma_sample_loc_type_top_field
uint8_t log2_chroma_w
Amount to shift the luma width right to find the chroma width.
const char * av_color_space_name(enum AVColorSpace space)
uint8_t entropy_coding_sync_enabled_flag
#define AV_PIX_FMT_GRAY10
int log2_parallel_merge_level
log2_parallel_merge_level_minus2 + 2
uint8_t log2_sao_offset_scale_chroma
#define AV_PIX_FMT_GRAY12
int restricted_ref_pic_lists_flag
#define av_assert0(cond)
assert() equivalent, that is always enabled.
static void remove_vps(HEVCParamSets *s, int id)
unsigned int log2_max_trafo_size
void void avpriv_request_sample(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message about a missing feature.
AVBufferRef * sps_list[HEVC_MAX_SPS_COUNT]
uint8_t profile_compatibility_flag[32]
static int decode_hrd(GetBitContext *gb, int common_inf_present, int max_sublayers)
unsigned int num_negative_pics
static void remove_pps(HEVCParamSets *s, int id)
static const uint8_t default_scaling_list_inter[]
uint8_t log2_max_transform_skip_block_size
int overscan_info_present_flag
uint8_t vps_timing_info_present_flag
#define FF_PROFILE_HEVC_MAIN
const uint8_t ff_hevc_diag_scan8x8_x[64]
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.
int num_ref_idx_l1_default_active
num_ref_idx_l1_default_active_minus1 + 1
unsigned int log2_min_pcm_cb_size
int vps_max_sub_layers
vps_max_temporal_layers_minus1 + 1
int frame_field_info_present_flag
uint8_t scaling_list_data_present_flag
int high_precision_offsets_enabled_flag
AVBufferRef * pps_list[HEVC_MAX_PPS_COUNT]
uint8_t loop_filter_disable_flag
static int map_pixel_format(AVCodecContext *avctx, HEVCSPS *sps)
#define AV_PIX_FMT_YUV422P12
#define FF_PROFILE_HEVC_MAIN_10
int8_t cb_qp_offset_list[6]
int bitstream_restriction_flag
uint8_t transquant_bypass_enable_flag
static int get_bits_left(GetBitContext *gb)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
uint8_t frame_only_constraint_flag
#define AV_CODEC_FLAG2_IGNORE_CROP
Discard cropping information from SPS.
unsigned int log2_max_poc_lsb
uint8_t log2_chroma_h
Amount to shift the luma height right to find the chroma height.
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.
#define PTRDIFF_SPECIFIER
int persistent_rice_adaptation_enabled_flag
coded frame dimension in various units
uint8_t temporal_id_nesting_flag
int ff_hevc_decode_nal_vps(GetBitContext *gb, AVCodecContext *avctx, HEVCParamSets *ps)
int vui_timing_info_present_flag
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
unsigned int log2_ctb_size
int vui_poc_proportional_to_timing_flag
#define AV_PIX_FMT_YUV444P10
AVBufferRef * av_buffer_create(uint8_t *data, int size, void(*free)(void *opaque, uint8_t *data), void *opaque, int flags)
Create an AVBuffer from an existing array.
uint8_t vps_temporal_id_nesting_flag
const char * av_color_primaries_name(enum AVColorPrimaries primaries)
int motion_vectors_over_pic_boundaries_flag
uint8_t tiles_enabled_flag
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
uint32_t vps_num_units_in_tick
uint8_t sub_layer_level_present_flag[HEVC_MAX_SUB_LAYERS]
int vps_num_layer_sets
vps_num_layer_sets_minus1 + 1
#define AV_PIX_FMT_YUV422P9
uint8_t lists_modification_present_flag
int * min_tb_addr_zs_tab
MinTbAddrZS.
int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx)
Check if the given dimension of an image is valid, meaning that all bytes of the image can be address...
static int pps_range_extensions(GetBitContext *gb, AVCodecContext *avctx, HEVCPPS *pps, HEVCSPS *sps)
int err_recognition
Error recognition; may misdetect some more or less valid parts as errors.
struct HEVCSPS::@92 temporal_layer[HEVC_MAX_SUB_LAYERS]
int max_transform_hierarchy_depth_inter
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of AV_PIX_FMT_YUV420P and setting col...
uint8_t vps_poc_proportional_to_timing_flag
int num_tile_columns
num_tile_columns_minus1 + 1
unsigned int vps_num_reorder_pics[HEVC_MAX_SUB_LAYERS]
#define FF_PROFILE_HEVC_MAIN_STILL_PICTURE
int max_bits_per_min_cu_denom
uint8_t cu_qp_delta_enabled_flag
uint8_t sign_data_hiding_flag
#define AV_EF_EXPLODE
abort decoding on minor error detection
uint8_t output_flag_present_flag
int log2_max_mv_length_vertical
const uint8_t ff_hevc_diag_scan4x4_y[16]
uint8_t sub_layer_profile_present_flag[HEVC_MAX_SUB_LAYERS]
#define AV_PIX_FMT_YUV444P9
int max_bytes_per_pic_denom
int overscan_appropriate_flag
static void set_default_scaling_list_data(ScalingList *sl)
int implicit_rdpcm_enabled_flag
#define FF_ARRAY_ELEMS(a)
uint8_t constrained_intra_pred_flag
uint8_t pic_slice_level_chroma_qp_offsets_present_flag
static unsigned get_ue_golomb_long(GetBitContext *gb)
Read an unsigned Exp-Golomb code in the range 0 to UINT32_MAX-1.
int colour_description_present_flag
void ff_hevc_ps_uninit(HEVCParamSets *ps)
enum AVPixelFormat pix_fmt
static int get_se_golomb_long(GetBitContext *gb)
#define AV_LOG_INFO
Standard information.
uint8_t transform_skip_enabled_flag
uint8_t uniform_spacing_flag
static void decode_vui(GetBitContext *gb, AVCodecContext *avctx, int apply_defdispwin, HEVCSPS *sps)
int * ctb_addr_rs_to_ts
CtbAddrRSToTS.
unsigned int log2_min_pu_size
unsigned int sps_id
seq_parameter_set_id
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
main external API structure.
static int parse_ptl(GetBitContext *gb, AVCodecContext *avctx, PTL *ptl, int max_num_sub_layers)
int log2_max_mv_length_horizontal
int num_extra_slice_header_bits
uint8_t * data
The data buffer.
uint8_t loop_filter_across_tiles_enabled_flag
uint8_t num_long_term_ref_pics_sps
uint8_t cross_component_prediction_enabled_flag
uint32_t vui_num_units_in_tick
AVBufferRef * av_buffer_allocz(int size)
Same as av_buffer_alloc(), except the returned buffer will be initialized to zero.
uint8_t deblocking_filter_control_present_flag
static unsigned int get_bits1(GetBitContext *s)
int transform_skip_context_enabled_flag
static void skip_bits1(GetBitContext *s)
#define AV_PIX_FMT_YUV420P10
uint8_t sps_temporal_mvp_enabled_flag
int chroma_sample_loc_type_bottom_field
int num_tile_rows
num_tile_rows_minus1 + 1
static void skip_bits(GetBitContext *s, int n)
static int FUNC() pps(CodedBitstreamContext *ctx, RWContext *rw, H264RawPPS *current)
uint8_t chroma_qp_offset_list_enabled_flag
Rational number (pair of numerator and denominator).
int vps_num_hrd_parameters
static void hevc_pps_free(void *opaque, uint8_t *data)
unsigned int log2_min_tb_size
static int FUNC() sps(CodedBitstreamContext *ctx, RWContext *rw, H264RawSPS *current)
int ff_hevc_decode_nal_pps(GetBitContext *gb, AVCodecContext *avctx, HEVCParamSets *ps)
#define AV_PIX_FMT_YUV420P9
static const uint8_t hevc_sub_height_c[]
int ff_hevc_decode_nal_sps(GetBitContext *gb, AVCodecContext *avctx, HEVCParamSets *ps, int apply_defdispwin)
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
uint8_t scaling_list_enable_flag
static const uint8_t default_scaling_list_intra[]
int tc_offset
tc_offset_div2 * 2
uint8_t transfer_characteristic
int default_display_window_flag
static int FUNC() vps(CodedBitstreamContext *ctx, RWContext *rw, H265RawVPS *current)
int size
Size of data in bytes.
#define AV_PIX_FMT_GBRP12
#define AV_PIX_FMT_YUV422P10
unsigned int log2_diff_max_min_coding_block_size
#define AV_PIX_FMT_YUV444P12
static int scaling_list_data(GetBitContext *gb, AVCodecContext *avctx, ScalingList *sl, HEVCSPS *sps)
unsigned int log2_max_pcm_cb_size
static int setup_pps(AVCodecContext *avctx, GetBitContext *gb, HEVCPPS *pps, HEVCSPS *sps)
int neutra_chroma_indication_flag
int * tile_pos_rs
TilePosRS.
static int FUNC() timing_info(CodedBitstreamContext *ctx, RWContext *rw, AV1RawTimingInfo *current)
const uint8_t ff_hevc_diag_scan4x4_x[16]
A reference to a data buffer.
int max_transform_hierarchy_depth_intra
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
unsigned int * row_bd
RowBd.
uint16_t lt_ref_pic_poc_lsb_sps[HEVC_MAX_LONG_TERM_REF_PICS]
uint8_t weighted_pred_flag
unsigned int * col_bd
ColBd.
const char * av_color_transfer_name(enum AVColorTransferCharacteristic transfer)
const uint8_t * buffer_end
unsigned int * column_width
ColumnWidth.
uint8_t slice_header_extension_present_flag
static int decode_profile_tier_level(GetBitContext *gb, AVCodecContext *avctx, PTLCommon *ptl)
int video_full_range_flag
uint8_t chroma_qp_offset_list_len_minus1
const uint8_t ff_hevc_diag_scan8x8_y[64]
#define FF_PROFILE_HEVC_REXT
uint8_t sps_strong_intra_smoothing_enable_flag
int rps_idx_num_delta_pocs
uint8_t long_term_ref_pics_present_flag
int flags2
AV_CODEC_FLAG2_*.
int vui_hrd_parameters_present_flag
unsigned int right_offset
int diff_cu_qp_delta_depth
static void remove_sps(HEVCParamSets *s, int id)
uint8_t progressive_source_flag
#define av_malloc_array(a, b)
int video_signal_type_present_flag
uint8_t deblocking_filter_override_enabled_flag
int beta_offset
beta_offset_div2 * 2
const char * av_get_pix_fmt_name(enum AVPixelFormat pix_fmt)
Return the short name for a pixel format, NULL in case pix_fmt is unknown.
int * min_tb_addr_zs
MinTbAddrZS.
uint8_t non_packed_constraint_flag
int intra_smoothing_disabled_flag
int tiles_fixed_structure_flag
uint8_t interlaced_source_flag
uint8_t separate_colour_plane_flag
unsigned int bottom_offset
int vps_sub_layer_ordering_info_present_flag
uint8_t dependent_slice_segments_enabled_flag