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

#include <math.h>
#include "avcodec.h"
#include "bitstream.h"
#include "dsputil.h"
#include "vorbis.h"
#include <assert.h>

Include dependency graph for vorbis.c:

Go to the source code of this file.

Defines

#define ALT_BITSTREAM_READER_LE
#define V_NB_BITS   8
#define V_NB_BITS2   11
#define V_MAX_VLCS   (1<<16)
#define AV_DEBUG(...)
#define ilog(i)   av_log2(2*(i))
#define BIAS   385

Functions

unsigned int get_bits_long_le (GetBitContext *s, int n)
static unsigned int nth_root (unsigned int x, unsigned int n)
static float vorbisfloat2float (uint_fast32_t val)
static int vorbis_len2vlc (vorbis_context *vc, uint_fast8_t *bits, uint_fast32_t *codes, uint_fast32_t num)
static void vorbis_free (vorbis_context *vc)
static int vorbis_parse_setup_hdr_codebooks (vorbis_context *vc)
static int vorbis_parse_setup_hdr_tdtransforms (vorbis_context *vc)
static int vorbis_parse_setup_hdr_floors (vorbis_context *vc)
static int vorbis_parse_setup_hdr_residues (vorbis_context *vc)
static int vorbis_parse_setup_hdr_mappings (vorbis_context *vc)
static int vorbis_parse_setup_hdr_modes (vorbis_context *vc)
static int vorbis_parse_setup_hdr (vorbis_context *vc)
static int vorbis_parse_id_hdr (vorbis_context *vc)
static int vorbis_decode_init (AVCodecContext *avccontext)
static uint_fast8_t vorbis_floor1_decode (vorbis_context *vc, vorbis_floor *vf, float *vec)
static int vorbis_residue_decode (vorbis_context *vc, vorbis_residue *vr, uint_fast8_t ch, uint_fast8_t *do_not_decode, float *vec, uint_fast16_t vlen)
static int vorbis_parse_audio_packet (vorbis_context *vc)
static int vorbis_decode_frame (AVCodecContext *avccontext, void *data, int *data_size, uint8_t *buf, int buf_size)
static int vorbis_decode_close (AVCodecContext *avccontext)

Variables

AVCodec vorbis_decoder


Define Documentation

#define ALT_BITSTREAM_READER_LE

Definition at line 26 of file vorbis.c.

#define AV_DEBUG ( ...   ) 

#define BIAS   385

Definition at line 1195 of file vorbis.c.

#define ilog (  )     av_log2(2*(i))

#define V_MAX_VLCS   (1<<16)

Definition at line 35 of file vorbis.c.

Referenced by vorbis_parse_setup_hdr_codebooks().

#define V_NB_BITS   8

Definition at line 33 of file vorbis.c.

Referenced by vorbis_parse_setup_hdr_codebooks().

#define V_NB_BITS2   11

Definition at line 34 of file vorbis.c.

Referenced by vorbis_parse_setup_hdr_codebooks().


Function Documentation

unsigned int get_bits_long_le ( GetBitContext s,
int  n 
)

reads 0-32 bits when using the ALT_BITSTREAM_READER_LE bitstream reader

Definition at line 49 of file vorbis.c.

References get_bits().

Referenced by vorbis_parse_id_hdr(), and vorbis_parse_setup_hdr_codebooks().

Here is the call graph for this function:

static unsigned int nth_root ( unsigned int  x,
unsigned int  n 
) [static]

Definition at line 59 of file vorbis.c.

Referenced by vorbis_parse_setup_hdr_codebooks().

static int vorbis_decode_close ( AVCodecContext avccontext  )  [static]

Definition at line 1453 of file vorbis.c.

References AVCodecContext::priv_data, and vorbis_free().

Here is the call graph for this function:

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

static int vorbis_decode_init ( AVCodecContext avccontext  )  [static]

static uint_fast8_t vorbis_floor1_decode ( vorbis_context vc,
vorbis_floor vf,
float *  vec 
) [static]

static void vorbis_free ( vorbis_context vc  )  [static]

static int vorbis_len2vlc ( vorbis_context vc,
uint_fast8_t *  bits,
uint_fast32_t *  codes,
uint_fast32_t  num 
) [static]

Definition at line 80 of file vorbis.c.

References av_log(), AV_LOG_INFO, vorbis_context::avccontext, get_bits1(), and init_get_bits().

Referenced by vorbis_parse_setup_hdr_codebooks().

Here is the call graph for this function:

static int vorbis_parse_audio_packet ( vorbis_context vc  )  [static]

static int vorbis_parse_id_hdr ( vorbis_context vc  )  [static]

static int vorbis_parse_setup_hdr ( vorbis_context vc  )  [static]

static int vorbis_parse_setup_hdr_codebooks ( vorbis_context vc  )  [static]

static int vorbis_parse_setup_hdr_floors ( vorbis_context vc  )  [static]

static int vorbis_parse_setup_hdr_mappings ( vorbis_context vc  )  [static]

static int vorbis_parse_setup_hdr_modes ( vorbis_context vc  )  [static]

static int vorbis_parse_setup_hdr_residues ( vorbis_context vc  )  [static]

static int vorbis_parse_setup_hdr_tdtransforms ( vorbis_context vc  )  [static]

Definition at line 389 of file vorbis.c.

References AV_DEBUG, av_log(), AV_LOG_ERROR, vorbis_context::avccontext, vorbis_context::gb, and get_bits().

Referenced by vorbis_parse_setup_hdr().

Here is the call graph for this function:

static int vorbis_residue_decode ( vorbis_context vc,
vorbis_residue vr,
uint_fast8_t  ch,
uint_fast8_t *  do_not_decode,
float *  vec,
uint_fast16_t  vlen 
) [static]

static float vorbisfloat2float ( uint_fast32_t  val  )  [static]

Definition at line 70 of file vorbis.c.

Referenced by vorbis_parse_setup_hdr_codebooks().


Variable Documentation

Initial value:

Definition at line 1461 of file vorbis.c.

Referenced by avcodec_register_all().


Generated on Mon Apr 28 14:06:32 2008 for Cinelerra by  doxygen 1.5.5