65 for (cIdx = 0; cIdx < 3; cIdx++) {
68 for (i = 0; i < 16; i++)
70 }
else if (hash_type == 1) {
73 }
else if (hash_type == 2) {
86 for (i = 0; i < 3; i++) {
160 if (pic_struct == 2) {
163 }
else if (pic_struct == 1) {
176 int user_data_type_code;
184 user_data_type_code =
get_bits(gb, 8);
185 if (user_data_type_code == 0x3) {
195 if (cc_count && size >= cc_count * 3) {
200 if (new_size > INT_MAX)
208 for (i = 0; i < cc_count; i++) {
218 for (i = 0; i < size - 1; i++)
227 uint32_t country_code;
228 uint32_t user_identifier;
237 if (country_code == 0xFF) {
247 switch (user_identifier) {
248 case MKBETAG(
'G',
'A',
'9',
'4'):
260 int num_sps_ids_minus1;
262 unsigned active_seq_parameter_set_id;
269 if (num_sps_ids_minus1 < 0 || num_sps_ids_minus1 > 15) {
281 for (i = 1; i <= num_sps_ids_minus1; i++)
338 int payload_type = 0;
339 int payload_size = 0;
343 while (byte == 0xFF) {
345 payload_type +=
byte;
348 while (byte == 0xFF) {
350 payload_size +=
byte;
int frame_packing_arrangement_type
int sei_frame_packing_present
frame packing arrangement variables
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int active_seq_parameter_set_id
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
int content_interpretation_type
static void skip_bits_long(GetBitContext *s, int n)
static int decode_nal_sei_mastering_display_info(HEVCContext *s)
static int more_rbsp_data(GetBitContext *gb)
uint32_t min_mastering_luminance
void ff_hevc_reset_sei(HEVCContext *s)
Reset SEI values that are stored on the Context.
int frame_field_info_present_flag
int sei_anticlockwise_rotation
static int get_bits_left(GetBitContext *gb)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static int decode_nal_sei_decoded_picture_hash(HEVCContext *s)
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
uint16_t display_primaries[3][2]
static int decode_registered_user_data_closed_caption(HEVCContext *s, int size)
static int decode_nal_sei_prefix(HEVCContext *s, int type, int size)
static int decode_nal_sei_user_data_registered_itu_t_t35(HEVCContext *s, int size)
static unsigned int show_bits(GetBitContext *s, int n)
Show 1-25 bits.
int sei_mastering_display_info_present
mastering display
static int decode_nal_sei_suffix(HEVCContext *s, int type, int size)
uint32_t max_mastering_luminance
static unsigned get_ue_golomb_long(GetBitContext *gb)
Read an unsigned Exp-Golomb code in the range 0 to UINT32_MAX-1.
int sei_display_orientation_present
display orientation
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_WB16 unsigned int_TMPL byte
int ff_hevc_decode_nal_sei(HEVCContext *s)
uint8_t * data
The data buffer.
static int decode_nal_sei_display_orientation(HEVCContext *s)
static unsigned int get_bits1(GetBitContext *s)
static void skip_bits1(GetBitContext *s)
static void skip_bits(GetBitContext *s, int n)
enum NALUnitType nal_unit_type
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
HEVCLocalContext * HEVClc
static int decode_nal_sei_frame_packing_arrangement(HEVCContext *s)
int av_reallocp(void *ptr, size_t size)
Allocate or reallocate a block of memory.
static int active_parameter_sets(HEVCContext *s)
#define MKBETAG(a, b, c, d)
static int decode_nal_sei_message(HEVCContext *s)
static int decode_pic_timing(HEVCContext *s)
AVBufferRef * sps_list[MAX_SPS_COUNT]