37 for (cIdx = 0; cIdx < 3; cIdx++) {
40 for (i = 0; i < 16; i++)
42 }
else if (hash_type == 1) {
45 }
else if (hash_type == 2) {
57 for (i = 0; i < 3; i++) {
128 void *logctx,
int size)
140 if (pic_struct == 2 || pic_struct == 10 || pic_struct == 12) {
143 }
else if (pic_struct == 1 || pic_struct == 9 || pic_struct == 11) {
161 int user_data_type_code;
167 user_data_type_code =
get_bits(gb, 8);
168 if (user_data_type_code == 0x3) {
178 if (cc_count && size >= cc_count * 3) {
183 if (new_size > INT_MAX)
191 for (i = 0; i < cc_count; i++) {
201 for (i = 0; i < size - 1; i++)
211 uint32_t country_code;
212 uint32_t user_identifier;
219 if (country_code == 0xFF) {
229 switch (user_identifier) {
230 case MKBETAG(
'G',
'A',
'9',
'4'):
241 int num_sps_ids_minus1;
243 unsigned active_seq_parameter_set_id;
250 if (num_sps_ids_minus1 < 0 || num_sps_ids_minus1 > 15) {
257 av_log(logctx,
AV_LOG_ERROR,
"active_parameter_set_id %d invalid\n", active_seq_parameter_set_id);
262 for (i = 1; i <= num_sps_ids_minus1; i++)
321 int payload_type = 0;
322 int payload_size = 0;
326 while (byte == 0xFF) {
328 payload_type +=
byte;
331 while (byte == 0xFF) {
333 payload_size +=
byte;
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int anticlockwise_rotation
static int decode_nal_sei_suffix(GetBitContext *gb, HEVCSEIContext *s, int type, int size, void *logctx)
HEVCSEIPictureTiming picture_timing
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static int decode_nal_sei_pic_timing(HEVCSEIContext *s, GetBitContext *gb, const HEVCParamSets *ps, void *logctx, int size)
static void skip_bits_long(GetBitContext *s, int n)
static int decode_nal_sei_display_orientation(HEVCSEIDisplayOrientation *s, GetBitContext *gb)
HEVCSEIDisplayOrientation display_orientation
static int decode_nal_sei_user_data_registered_itu_t_t35(HEVCSEIContext *s, GetBitContext *gb, int size)
static int more_rbsp_data(GetBitContext *gb)
AVBufferRef * sps_list[HEVC_MAX_SPS_COUNT]
static int decode_nal_sei_alternative_transfer(HEVCSEIAlternativeTransfer *s, GetBitContext *gb)
int frame_field_info_present_flag
static int decode_nal_sei_prefix(GetBitContext *gb, HEVCSEIContext *s, const HEVCParamSets *ps, int type, int size, void *logctx)
static int decode_nal_sei_content_light_info(HEVCSEIContentLight *s, GetBitContext *gb)
static int decode_registered_user_data_closed_caption(HEVCSEIA53Caption *s, GetBitContext *gb, int size)
static int get_bits_left(GetBitContext *gb)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int content_interpretation_type
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
int preferred_transfer_characteristics
HEVCSEIMasteringDisplay mastering_display
static int decode_nal_sei_message(GetBitContext *gb, HEVCSEIContext *s, const HEVCParamSets *ps, int nal_unit_type, void *logctx)
HEVCSEIPictureHash picture_hash
HEVCSEIContentLight content_light
static unsigned int show_bits(GetBitContext *s, int n)
Show 1-25 bits.
int active_seq_parameter_set_id
static unsigned get_ue_golomb_long(GetBitContext *gb)
Read an unsigned Exp-Golomb code in the range 0 to UINT32_MAX-1.
int av_reallocp(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory through a pointer to a pointer.
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
uint8_t * data
The data buffer.
static int decode_nal_sei_frame_packing_arrangement(HEVCSEIFramePacking *s, GetBitContext *gb)
static unsigned int get_bits1(GetBitContext *s)
static void skip_bits1(GetBitContext *s)
int ff_hevc_decode_nal_sei(GetBitContext *gb, void *logctx, HEVCSEIContext *s, const HEVCParamSets *ps, int type)
static void skip_bits(GetBitContext *s, int n)
uint16_t max_pic_average_light_level
#define HEVC_MAX_SPS_COUNT
HEVCSEIAlternativeTransfer alternative_transfer
void ff_hevc_reset_sei(HEVCSEIContext *s)
Reset SEI values that are stored on the Context.
static unsigned int get_bits_long(GetBitContext *s, int n)
Read 0-32 bits.
HEVCSEIA53Caption a53_caption
static int decode_nal_sei_decoded_picture_hash(HEVCSEIPictureHash *s, GetBitContext *gb)
uint16_t max_content_light_level
HEVCSEIFramePacking frame_packing
#define MKBETAG(a, b, c, d)
static int decode_nal_sei_mastering_display_info(HEVCSEIMasteringDisplay *s, GetBitContext *gb)
uint16_t display_primaries[3][2]
static int decode_nal_sei_active_parameter_sets(HEVCSEIContext *s, GetBitContext *gb, void *logctx)