Go to the documentation of this file.
   39     int chroma_w, chroma_h;
 
   41         if (chroma_w == 1 && chroma_h == 1) {
 
   45         } 
else if (chroma_w == 1 && chroma_h == 0) {
 
   47         } 
else if (chroma_w == 0 && chroma_h == 0) {
 
   63     return desc->comp[0].depth;
 
   77     if (!frame_rate || !frame_rate->
den)
 
   82     if (picture_size <= 0) {
 
   84     } 
else if (
sample_rate <= 829440     && picture_size <= 36864) {
 
   86     } 
else if (
sample_rate <= 2764800    && picture_size <= 73728) {
 
   88     } 
else if (
sample_rate <= 4608000    && picture_size <= 122880) {
 
   90     } 
else if (
sample_rate <= 9216000    && picture_size <= 245760) {
 
   92     } 
else if (
sample_rate <= 20736000   && picture_size <= 552960) {
 
   94     } 
else if (
sample_rate <= 36864000   && picture_size <= 983040) {
 
   96     } 
else if (
sample_rate <= 83558400   && picture_size <= 2228224) {
 
   98     } 
else if (
sample_rate <= 160432128  && picture_size <= 2228224) {
 
  100     } 
else if (
sample_rate <= 311951360  && picture_size <= 8912896) {
 
  102     } 
else if (
sample_rate <= 588251136  && picture_size <= 8912896) {
 
  104     } 
else if (
sample_rate <= 1176502272 && picture_size <= 8912896) {
 
  106     } 
else if (
sample_rate <= 1176502272 && picture_size <= 35651584) {
 
  108     } 
else if (
sample_rate <= 2353004544 && picture_size <= 35651584) {
 
  110     } 
else if (
sample_rate <= 4706009088 && picture_size <= 35651584) {
 
  124     int vpx_chroma_subsampling =
 
  126     int vpx_video_full_range_flag =
 
  129     if (
bit_depth < 0 || vpx_chroma_subsampling < 0)
 
  
static void bit_depth(AudioStatsContext *s, uint64_t mask, uint64_t imask, AVRational *depth)
AVPixelFormat
Pixel format.
This struct describes the properties of an encoded stream.
int ff_isom_get_vpcc_features(AVFormatContext *s, AVCodecParameters *par, AVRational *frame_rate, VPCC *vpcc)
enum AVColorSpace color_space
static int get_vpx_chroma_subsampling(AVFormatContext *s, enum AVPixelFormat pixel_format, enum AVChromaLocation chroma_location)
const AVPixFmtDescriptor * av_pix_fmt_desc_get(enum AVPixelFormat pix_fmt)
@ AVCOL_RANGE_JPEG
Full range content.
enum AVColorPrimaries color_primaries
int av_pix_fmt_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int *v_shift)
Utility function to access log2_chroma_w log2_chroma_h from the pixel format AVPixFmtDescriptor.
enum AVColorTransferCharacteristic color_trc
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define FF_PROFILE_UNKNOWN
@ AVCHROMA_LOC_LEFT
MPEG-2/4 4:2:0, H.264 default for 4:2:0.
Rational number (pair of numerator and denominator).
void avio_w8(AVIOContext *s, int b)
int ff_isom_write_vpcc(AVFormatContext *s, AVIOContext *pb, AVCodecParameters *par)
Writes VP codec configuration to the provided AVIOContext.
static int get_vpx_video_full_range_flag(enum AVColorRange color_range)
@ VPX_SUBSAMPLING_420_COLLOCATED_WITH_LUMA
int profile
Codec-specific bitstream restrictions that the stream conforms to.
AVChromaLocation
Location of chroma samples.
@ VPX_SUBSAMPLING_420_VERTICAL
enum AVColorRange color_range
Video only.
static int get_bit_depth(AVFormatContext *s, enum AVPixelFormat pixel_format)
enum AVChromaLocation chroma_location
Descriptor that unambiguously describes how the bits of a pixel are stored in the up to 4 data planes...
void avio_wb16(AVIOContext *s, unsigned int val)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
AVColorRange
Visual content value range.
static int get_vp9_level(AVCodecParameters *par, AVRational *frame_rate)