doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Functions
codebook.h File Reference
#include "../ogg/ogg.h"

Go to the source code of this file.

Classes

struct  static_codebook
 
struct  encode_aux_nearestmatch
 
struct  encode_aux_threshmatch
 
struct  encode_aux_pigeonhole
 
struct  codebook
 

Typedefs

typedef struct static_codebook static_codebook
 
typedef struct
encode_aux_nearestmatch 
encode_aux_nearestmatch
 
typedef struct
encode_aux_threshmatch 
encode_aux_threshmatch
 
typedef struct
encode_aux_pigeonhole 
encode_aux_pigeonhole
 
typedef struct codebook codebook
 

Functions

void vorbis_staticbook_clear (static_codebook *b)
 
void vorbis_staticbook_destroy (static_codebook *b)
 
int vorbis_book_init_encode (codebook *dest, const static_codebook *source)
 
int vorbis_book_init_decode (codebook *dest, const static_codebook *source)
 
void vorbis_book_clear (codebook *b)
 
float_book_unquantize (const static_codebook *b, int n, int *map)
 
float_book_logdist (const static_codebook *b, float *vals)
 
float _float32_unpack (long val)
 
long _float32_pack (float val)
 
int _best (codebook *book, float *a, int step)
 
int _ilog (unsigned int v)
 
long _book_maptype1_quantvals (const static_codebook *b)
 
int vorbis_book_besterror (codebook *book, float *a, int step, int addmul)
 
long vorbis_book_codeword (codebook *book, int entry)
 
long vorbis_book_codelen (codebook *book, int entry)
 
int vorbis_staticbook_pack (const static_codebook *c, oggpack_buffer *b)
 
int vorbis_staticbook_unpack (oggpack_buffer *b, static_codebook *c)
 
int vorbis_book_encode (codebook *book, int a, oggpack_buffer *b)
 
int vorbis_book_errorv (codebook *book, float *a)
 
int vorbis_book_encodev (codebook *book, int best, float *a, oggpack_buffer *b)
 
long vorbis_book_decode (codebook *book, oggpack_buffer *b)
 
long vorbis_book_decodevs_add (codebook *book, float *a, oggpack_buffer *b, int n)
 
long vorbis_book_decodev_set (codebook *book, float *a, oggpack_buffer *b, int n)
 
long vorbis_book_decodev_add (codebook *book, float *a, oggpack_buffer *b, int n)
 
long vorbis_book_decodevv_add (codebook *book, float **a, long off, int ch, oggpack_buffer *b, int n)
 

Typedef Documentation

typedef struct codebook codebook

Function Documentation

int _best ( codebook book,
float a,
int  step 
)

Definition at line 444 of file sharedbook.c.

float* _book_logdist ( const static_codebook b,
float vals 
)
long _book_maptype1_quantvals ( const static_codebook b)

Definition at line 150 of file sharedbook.c.

float* _book_unquantize ( const static_codebook b,
int  n,
int map 
)

Definition at line 183 of file sharedbook.c.

long _float32_pack ( float  val)

Definition at line 47 of file sharedbook.c.

float _float32_unpack ( long  val)

Definition at line 62 of file sharedbook.c.

int _ilog ( unsigned int  v)

Definition at line 29 of file sharedbook.c.

int vorbis_book_besterror ( codebook book,
float a,
int  step,
int  addmul 
)
void vorbis_book_clear ( codebook b)

Definition at line 278 of file sharedbook.c.

long vorbis_book_codelen ( codebook book,
int  entry 
)

Definition at line 592 of file sharedbook.c.

long vorbis_book_codeword ( codebook book,
int  entry 
)

Definition at line 585 of file sharedbook.c.

long vorbis_book_decode ( codebook book,
oggpack_buffer b 
)

Definition at line 370 of file codebook.c.

long vorbis_book_decodev_add ( codebook book,
float a,
oggpack_buffer b,
int  n 
)

Definition at line 397 of file codebook.c.

long vorbis_book_decodev_set ( codebook book,
float a,
oggpack_buffer b,
int  n 
)

Definition at line 440 of file codebook.c.

long vorbis_book_decodevs_add ( codebook book,
float a,
oggpack_buffer b,
int  n 
)

Definition at line 380 of file codebook.c.

long vorbis_book_decodevv_add ( codebook book,
float **  a,
long  off,
int  ch,
oggpack_buffer b,
int  n 
)

Definition at line 454 of file codebook.c.

int vorbis_book_encode ( codebook book,
int  a,
oggpack_buffer b 
)

Definition at line 257 of file codebook.c.

int vorbis_book_encodev ( codebook book,
int  best,
float a,
oggpack_buffer b 
)

Definition at line 286 of file codebook.c.

int vorbis_book_errorv ( codebook book,
float a 
)

Definition at line 277 of file codebook.c.

int vorbis_book_init_decode ( codebook dest,
const static_codebook source 
)

Definition at line 318 of file sharedbook.c.

int vorbis_book_init_encode ( codebook dest,
const static_codebook source 
)

Definition at line 291 of file sharedbook.c.

void vorbis_staticbook_clear ( static_codebook b)

Definition at line 248 of file sharedbook.c.

void vorbis_staticbook_destroy ( static_codebook b)

Definition at line 271 of file sharedbook.c.

int vorbis_staticbook_pack ( const static_codebook c,
oggpack_buffer b 
)

Definition at line 30 of file codebook.c.

int vorbis_staticbook_unpack ( oggpack_buffer b,
static_codebook c 
)

Definition at line 149 of file codebook.c.