FFmpeg
Data Structures | Functions | Variables
libvorbisdec.c File Reference
#include <vorbis/vorbisenc.h>
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  OggVorbisDecContext
 

Functions

static int oggvorbis_decode_close (AVCodecContext *avccontext)
 
static int oggvorbis_decode_init (AVCodecContext *avccontext)
 
static int conv (int samples, float **pcm, char *buf, int channels)
 
static int oggvorbis_decode_frame (AVCodecContext *avccontext, void *data, int *got_frame_ptr, AVPacket *avpkt)
 

Variables

const AVCodec ff_libvorbis_decoder
 

Function Documentation

◆ oggvorbis_decode_close()

static int oggvorbis_decode_close ( AVCodecContext avccontext)
static

Definition at line 199 of file libvorbisdec.c.

Referenced by oggvorbis_decode_init().

◆ oggvorbis_decode_init()

static int oggvorbis_decode_init ( AVCodecContext avccontext)
static

Definition at line 37 of file libvorbisdec.c.

◆ conv()

static int conv ( int  samples,
float **  pcm,
char *  buf,
int  channels 
)
inlinestatic

◆ oggvorbis_decode_frame()

static int oggvorbis_decode_frame ( AVCodecContext avccontext,
void *  data,
int got_frame_ptr,
AVPacket avpkt 
)
static

Definition at line 149 of file libvorbisdec.c.

Variable Documentation

◆ ff_libvorbis_decoder

const AVCodec ff_libvorbis_decoder
Initial value:
= {
.name = "libvorbis",
.long_name = NULL_IF_CONFIG_SMALL("libvorbis"),
.priv_data_size = sizeof(OggVorbisDecContext),
}

Definition at line 211 of file libvorbisdec.c.

oggvorbis_decode_init
static int oggvorbis_decode_init(AVCodecContext *avccontext)
Definition: libvorbisdec.c:37
init
static int init
Definition: av_tx.c:47
decode
static void decode(AVCodecContext *dec_ctx, AVPacket *pkt, AVFrame *frame, FILE *outfile)
Definition: decode_audio.c:71
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
AV_CODEC_CAP_CHANNEL_CONF
#define AV_CODEC_CAP_CHANNEL_CONF
Codec should fill in channel configuration and samplerate instead of container.
Definition: codec.h:109
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
AV_CODEC_CAP_DELAY
#define AV_CODEC_CAP_DELAY
Encoder or decoder requires flushing with NULL input at the end in order to give the complete and cor...
Definition: codec.h:82
oggvorbis_decode_close
static int oggvorbis_decode_close(AVCodecContext *avccontext)
Definition: libvorbisdec.c:199
OggVorbisDecContext
Definition: libvorbisdec.c:27
oggvorbis_decode_frame
static int oggvorbis_decode_frame(AVCodecContext *avccontext, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: libvorbisdec.c:149
AV_CODEC_ID_VORBIS
@ AV_CODEC_ID_VORBIS
Definition: codec_id.h:428