66 return (
ptl->constraint_indicator_flags >> (40 - 8 *
i)) & 0xff;
73 uint32_t compatibility;
74 int constraint_bytes = 6;
88 if (!
ptl.profile_idc || !
ptl.level_idc)
92 compatibility =
ptl.profile_compatibility_flags;
93 compatibility = ((compatibility & 0x55555555U) << 1) | ((compatibility >> 1) & 0x55555555U);
94 compatibility = ((compatibility & 0x33333333U) << 2) | ((compatibility >> 2) & 0x33333333U);
95 compatibility = ((compatibility & 0x0F0F0F0FU) << 4) | ((compatibility >> 4) & 0x0F0F0F0FU);
96 compatibility = ((compatibility & 0x00FF00FFU) << 8) | ((compatibility >> 8) & 0x00FF00FFU);
97 compatibility = (compatibility << 16) | (compatibility >> 16);
101 if (
ptl.profile_space)
104 ptl.tier_flag ?
'H' :
'L',
ptl.level_idc);
107 while (constraint_bytes > 1 &&
110 for (
int i = 0;
i < constraint_bytes;
i++)
142 else if (
data[0] == 0x01)
int ff_av1_parse_seq_header(AV1SequenceParameters *seq, const uint8_t *buf, int size)
Parses a Sequence Header from the the provided buffer.
void av_bprintf(AVBPrint *buf, const char *fmt,...)
#define i(width, name, range_min, range_max)
static unsigned hevc_constraint_byte(const HVCCProfileTierLevel *ptl, int i)
Byte i of the 48-bit general_constraint_indicator_flags, 0 first.
static const struct codec_string codecs[]
static int set_hevc_codec_str(const AVCodecParameters *par, AVBPrint *out)
int ff_make_codec_str(void *logctx, const AVCodecParameters *par, const AVRational *frame_rate, struct AVBPrint *out)
Make a RFC 4281/6381 like string describing a codec.
static void set_vp9_codec_str(void *logctx, const AVCodecParameters *par, const AVRational *frame_rate, AVBPrint *out)
#define AV_PROFILE_UNKNOWN
AVCodecID
Identify the syntax and semantics of the bitstream.
@ AV_CODEC_ID_MP3
preferred ID for decoding MPEG audio layer 1, 2 or 3
int av_mime_codec_str(const AVCodecParameters *par, AVRational frame_rate, struct AVBPrint *out)
Make a RFC 4281/6381 like string describing a codec for MIME types.
void av_bprint_chars(AVBPrint *buf, char c, unsigned n)
Append char c n times to a print buffer.
#define AV_LOG_WARNING
Something somehow does not look correct.
#define av_fourcc2str(fourcc)
const H265RawProfileTierLevel * ptl
int ff_hevc_get_profile_tier_level(HVCCProfileTierLevel *ptl, const uint8_t *data, int size)
Get the general profile, tier and level an hvcC record written from this extradata would carry.
int ff_lcvec_parse_config_record(LCEVCDecoderConfigurationRecord *lvcc, const uint8_t *buf, int size, void *logctx)
#define MKTAG(a, b, c, d)
Utilities for rational number calculation.
uint8_t color_description_present_flag
uint8_t chroma_sample_position
uint8_t transfer_characteristics
uint8_t chroma_subsampling_x
uint8_t chroma_subsampling_y
uint8_t matrix_coefficients
This struct describes the properties of an encoded stream.
int extradata_size
Size of the extradata content in bytes.
int profile
Codec-specific bitstream restrictions that the stream conforms to.
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
Rational number (pair of numerator and denominator).
The general profile_tier_level() fields, as an hvcC record carries them.
int ff_isom_get_vpcc_features(void *logctx, const AVCodecParameters *par, const uint8_t *data, int len, const AVRational *frame_rate, VPCC *vpcc)
internal header for VPx codec configuration utilities.