FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions
vpcc.c File Reference
#include "libavutil/pixdesc.h"
#include "libavutil/pixfmt.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 }
 

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

Enumerator
VPX_SUBSAMPLING_420_VERTICAL 
VPX_SUBSAMPLING_420_COLLOCATED_WITH_LUMA 
VPX_SUBSAMPLING_422 
VPX_SUBSAMPLING_444 

Definition at line 26 of file vpcc.c.

Function Documentation

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

Definition at line 34 of file vpcc.c.

Referenced by ff_isom_get_vpcc_features().

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

Definition at line 54 of file vpcc.c.

Referenced by ff_isom_get_vpcc_features().

static int get_vpx_video_full_range_flag ( enum AVColorRange  color_range)
static

Definition at line 65 of file vpcc.c.

Referenced by ff_isom_get_vpcc_features().

static int get_vp9_level ( AVCodecParameters par,
AVRational frame_rate 
)
static

Definition at line 71 of file vpcc.c.

Referenced by ff_isom_get_vpcc_features().

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

Definition at line 116 of file vpcc.c.

Referenced by ff_isom_write_vpcc(), and set_vp9_codec_str().

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 149 of file vpcc.c.

Referenced by mov_write_vpcc_tag().