FFmpeg
Data Structures | Functions | Variables
codecstring.c File Reference
#include "libavutil/avstring.h"
#include "libavutil/bprint.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libavutil/rational.h"
#include "av1.h"
#include "avc.h"
#include "avformat.h"
#include "internal.h"
#include "nal.h"
#include "vpcc.h"

Go to the source code of this file.

Data Structures

struct  codec_string
 

Functions

static void set_vp9_codec_str (void *logctx, const AVCodecParameters *par, const AVRational *frame_rate, AVBPrint *out)
 
int ff_make_codec_str (void *logctx, const AVCodecParameters *par, const AVRational *frame_rate, struct AVBPrint *out)
 Make a RFC 4281/6381 like string describing a codec. More...
 

Variables

static const struct codec_string codecs []
 

Function Documentation

◆ set_vp9_codec_str()

static void set_vp9_codec_str ( void *  logctx,
const AVCodecParameters par,
const AVRational frame_rate,
AVBPrint *  out 
)
static

Definition at line 47 of file codecstring.c.

Referenced by ff_make_codec_str().

◆ ff_make_codec_str()

int ff_make_codec_str ( void *  logctx,
const AVCodecParameters par,
const AVRational frame_rate,
struct AVBPrint *  out 
)

Make a RFC 4281/6381 like string describing a codec.

Parameters
logctxa context for potential log messages
parpointer to an AVCodecParameters struct describing the codec
frame_ratean optional pointer to AVRational for the frame rate, for deciding the right profile for video codecs
strthe output string buffer
sizethe size of the string pointed to by str
Returns
<0 on error

Definition at line 62 of file codecstring.c.

Referenced by dash_init(), update_stream_extradata(), and write_codec_attr().

Variable Documentation

◆ codecs

const struct codec_string codecs[]
static
AV_CODEC_ID_FLAC
@ AV_CODEC_ID_FLAC
Definition: codec_id.h:471
AV_CODEC_ID_VP9
@ AV_CODEC_ID_VP9
Definition: codec_id.h:222
AV_CODEC_ID_OPUS
@ AV_CODEC_ID_OPUS
Definition: codec_id.h:519
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
AV_CODEC_ID_VP8
@ AV_CODEC_ID_VP8
Definition: codec_id.h:192
AV_CODEC_ID_VORBIS
@ AV_CODEC_ID_VORBIS
Definition: codec_id.h:464