FFmpeg
Enumerations | Functions
vpcc.c File Reference
#include "libavutil/pixdesc.h"
#include "libavutil/pixfmt.h"
#include "libavcodec/avcodec.h"
#include "vpcc.h"

Go to the source code of this file.

Enumerations

enum  VPX_CHROMA_SUBSAMPLING {
  VPX_SUBSAMPLING_420_VERTICAL = 0, VPX_SUBSAMPLING_420_COLLOCATED_WITH_LUMA = 1, VPX_SUBSAMPLING_422 = 2, VPX_SUBSAMPLING_444 = 3,
  VPX_SUBSAMPLING_420_VERTICAL = 0, VPX_SUBSAMPLING_420_COLLOCATED_WITH_LUMA = 1, VPX_SUBSAMPLING_422 = 2, VPX_SUBSAMPLING_444 = 3
}
 

Functions

static int get_vpx_chroma_subsampling (AVFormatContext *s, enum AVPixelFormat pixel_format, enum AVChromaLocation chroma_location)
 
static int get_bit_depth (AVFormatContext *s, enum AVPixelFormat pixel_format)
 
static int get_vpx_video_full_range_flag (enum AVColorRange color_range)
 
static int get_vp9_level (AVCodecParameters *par, AVRational *frame_rate)
 
int ff_isom_get_vpcc_features (AVFormatContext *s, AVCodecParameters *par, AVRational *frame_rate, VPCC *vpcc)
 
int ff_isom_write_vpcc (AVFormatContext *s, AVIOContext *pb, AVCodecParameters *par)
 Writes VP codec configuration to the provided AVIOContext. More...
 

Enumeration Type Documentation

◆ VPX_CHROMA_SUBSAMPLING

Enumerator
VPX_SUBSAMPLING_420_VERTICAL 
VPX_SUBSAMPLING_420_COLLOCATED_WITH_LUMA 
VPX_SUBSAMPLING_422 
VPX_SUBSAMPLING_444 
VPX_SUBSAMPLING_420_VERTICAL 
VPX_SUBSAMPLING_420_COLLOCATED_WITH_LUMA 
VPX_SUBSAMPLING_422 
VPX_SUBSAMPLING_444 

Definition at line 27 of file vpcc.c.

Function Documentation

◆ get_vpx_chroma_subsampling()

static int get_vpx_chroma_subsampling ( AVFormatContext s,
enum AVPixelFormat  pixel_format,
enum AVChromaLocation  chroma_location 
)
static

Definition at line 35 of file vpcc.c.

Referenced by ff_isom_get_vpcc_features().

◆ get_bit_depth()

static int get_bit_depth ( AVFormatContext s,
enum AVPixelFormat  pixel_format 
)
static

Definition at line 55 of file vpcc.c.

Referenced by ff_isom_get_vpcc_features().

◆ get_vpx_video_full_range_flag()

static int get_vpx_video_full_range_flag ( enum AVColorRange  color_range)
static

Definition at line 66 of file vpcc.c.

Referenced by ff_isom_get_vpcc_features().

◆ get_vp9_level()

static int get_vp9_level ( AVCodecParameters par,
AVRational frame_rate 
)
static

Definition at line 72 of file vpcc.c.

Referenced by ff_isom_get_vpcc_features().

◆ ff_isom_get_vpcc_features()

int ff_isom_get_vpcc_features ( AVFormatContext s,
AVCodecParameters par,
AVRational frame_rate,
VPCC vpcc 
)

Definition at line 117 of file vpcc.c.

Referenced by ff_isom_write_vpcc(), and set_vp9_codec_str().

◆ ff_isom_write_vpcc()

int ff_isom_write_vpcc ( AVFormatContext s,
AVIOContext pb,
AVCodecParameters par 
)

Writes VP codec configuration to the provided AVIOContext.

Parameters
saddress of the AVFormatContext for the logging context.
pbaddress of the AVIOContext where the vpcC shall be written.
paraddress of the AVCodecParameters which contains codec information.
Returns
>=0 in case of success, a negative value corresponding to an AVERROR code in case of failure

Definition at line 150 of file vpcc.c.

Referenced by mov_write_vpcc_tag().