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

Go to the source code of this file.

Data Structures

struct  VPCC
 

Functions

int ff_isom_write_vpcc (void *logctx, AVIOContext *pb, const uint8_t *data, int len, const AVCodecParameters *par)
 Writes VP codec configuration to the provided AVIOContext. More...
 
int ff_isom_get_vpcc_features (void *logctx, const AVCodecParameters *par, const uint8_t *data, int len, const 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 ( void *  logctx,
AVIOContext pb,
const uint8_t *  data,
int  len,
const AVCodecParameters par 
)

Writes VP codec configuration to the provided AVIOContext.

Parameters
logctxopaque pointer for logging.
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 202 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 ( void *  logctx,
const AVCodecParameters par,
const uint8_t *  data,
int  len,
const AVRational frame_rate,
VPCC vpcc 
)

Definition at line 155 of file vpcc.c.

Referenced by ff_isom_write_vpcc(), and set_vp9_codec_str().