hvirtual/quicktime/ffmpeg/libavcodec/oggvorbis.c File Reference

#include <vorbis/vorbisenc.h>
#include "avcodec.h"
#include <assert.h>

Include dependency graph for oggvorbis.c:

Go to the source code of this file.

Data Structures

struct  OggVorbisContext

Defines

#define OGGVORBIS_FRAME_SIZE   64
#define BUFFER_SIZE   (1024*64)

Functions

static int oggvorbis_init_encoder (vorbis_info *vi, AVCodecContext *avccontext)
static int oggvorbis_encode_init (AVCodecContext *avccontext)
static int oggvorbis_encode_frame (AVCodecContext *avccontext, unsigned char *packets, int buf_size, void *data)
static int oggvorbis_encode_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 *data_size, uint8_t *buf, int buf_size)
static int oggvorbis_decode_close (AVCodecContext *avccontext)

Variables

AVCodec oggvorbis_encoder
AVCodec oggvorbis_decoder


Detailed Description

Ogg Vorbis codec support via libvorbisenc.
Author:
Mark Hills <mark@pogo.org.uk>

Definition in file oggvorbis.c.


Define Documentation

#define BUFFER_SIZE   (1024*64)

Definition at line 16 of file oggvorbis.c.

#define OGGVORBIS_FRAME_SIZE   64

Definition at line 14 of file oggvorbis.c.

Referenced by oggvorbis_encode_frame(), and oggvorbis_encode_init().


Function Documentation

static int conv ( int  samples,
float **  pcm,
char *  buf,
int  channels 
) [inline, static]

Definition at line 259 of file oggvorbis.c.

Referenced by oggvorbis_decode_frame().

static int oggvorbis_decode_close ( AVCodecContext avccontext  )  [static]

static int oggvorbis_decode_frame ( AVCodecContext avccontext,
void *  data,
int *  data_size,
uint8_t *  buf,
int  buf_size 
) [static]

Definition at line 284 of file oggvorbis.c.

References context, conv(), OggVorbisContext::op, AVCodecContext::priv_data, samples, OggVorbisContext::vb, OggVorbisContext::vd, and OggVorbisContext::vi.

Here is the call graph for this function:

static int oggvorbis_decode_init ( AVCodecContext avccontext  )  [static]

static int oggvorbis_encode_close ( AVCodecContext avccontext  )  [static]

static int oggvorbis_encode_frame ( AVCodecContext avccontext,
unsigned char *  packets,
int  buf_size,
void *  data 
) [static]

static int oggvorbis_encode_init ( AVCodecContext avccontext  )  [static]

static int oggvorbis_init_encoder ( vorbis_info *  vi,
AVCodecContext avccontext 
) [static]


Variable Documentation

Initial value:

Definition at line 335 of file oggvorbis.c.

Referenced by avcodec_register_all().

Initial value:

Definition at line 172 of file oggvorbis.c.

Referenced by avcodec_register_all().


Generated on Mon Apr 28 14:05:38 2008 for Cinelerra by  doxygen 1.5.5