FFmpeg
Data Structures | Functions
vpcc.h File Reference
#include "libavutil/rational.h"
#include "libavcodec/codec_par.h"
#include "avio.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  VPCC
 

Functions

int ff_isom_write_vpcc (AVFormatContext *s, AVIOContext *pb, const uint8_t *data, int len, AVCodecParameters *par)
 Writes VP codec configuration to the provided AVIOContext. More...
 
int ff_isom_get_vpcc_features (AVFormatContext *s, AVCodecParameters *par, const uint8_t *data, int len, AVRational *frame_rate, VPCC *vpcc)
 

Detailed Description

internal header for VPx codec configuration utilities.

Definition in file vpcc.h.

Function Documentation

◆ ff_isom_write_vpcc()

int ff_isom_write_vpcc ( AVFormatContext s,
AVIOContext pb,
const uint8_t *  data,
int  len,
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.
dataaddress of a data array which contains coded bitstream data from which codec information can be extracted. May be NULL.
lenlength of the data array.
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 200 of file vpcc.c.

Referenced by flv_write_codec_header(), and mov_write_vpcc_tag().

◆ ff_isom_get_vpcc_features()

int ff_isom_get_vpcc_features ( AVFormatContext s,
AVCodecParameters par,
const uint8_t *  data,
int  len,
AVRational frame_rate,
VPCC vpcc 
)

Definition at line 153 of file vpcc.c.

Referenced by ff_isom_write_vpcc(), and set_vp9_codec_str().