doom3-gpl
Doom 3 GPL source release
|
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "../ogg/ogg.h"
#include "os.h"
#include "misc.h"
#include "../vorbis/codec.h"
#include "codebook.h"
#include "scales.h"
Go to the source code of this file.
Macros | |
#define | VQ_FEXP 10 |
#define | VQ_FMAN 21 |
#define | VQ_FEXP_BIAS 768 /* bias toward values smaller than 1. */ |
Functions | |
int | _ilog (unsigned int v) |
long | _float32_pack (float val) |
float | _float32_unpack (long val) |
ogg_uint32_t * | _make_words (long *l, long n, long sparsecount) |
long | _book_maptype1_quantvals (const static_codebook *b) |
float * | _book_unquantize (const static_codebook *b, int n, int *sparsemap) |
void | vorbis_staticbook_clear (static_codebook *b) |
void | vorbis_staticbook_destroy (static_codebook *b) |
void | vorbis_book_clear (codebook *b) |
int | vorbis_book_init_encode (codebook *c, const static_codebook *s) |
int | vorbis_book_init_decode (codebook *c, const static_codebook *s) |
int | _best (codebook *book, float *a, int step) |
long | vorbis_book_codeword (codebook *book, int entry) |
long | vorbis_book_codelen (codebook *book, int entry) |
#define VQ_FEXP 10 |
Definition at line 42 of file sharedbook.c.
Definition at line 44 of file sharedbook.c.
#define VQ_FMAN 21 |
Definition at line 43 of file sharedbook.c.
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 * | sparsemap | ||
) |
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.
Definition at line 29 of file sharedbook.c.
ogg_uint32_t* _make_words | ( | long * | l, |
long | n, | ||
long | sparsecount | ||
) |
Definition at line 73 of file sharedbook.c.
Definition at line 278 of file sharedbook.c.
Definition at line 592 of file sharedbook.c.
Definition at line 585 of file sharedbook.c.
int vorbis_book_init_decode | ( | codebook * | c, |
const static_codebook * | s | ||
) |
Definition at line 318 of file sharedbook.c.
int vorbis_book_init_encode | ( | codebook * | c, |
const static_codebook * | s | ||
) |
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.