LMMS
Loading...
Searching...
No Matches
sharedbook.c File Reference
#include <stdlib.h>
#include <limits.h>
#include <math.h>
#include <string.h>
#include "../../ogg.h"
#include "os.h"
#include "misc.h"
#include "../../codec.h"
#include "codebook.h"
#include "scales.h"

Macros

#define VQ_FEXP   10
#define VQ_FMAN   21
#define VQ_FEXP_BIAS   768 /* bias toward values smaller than 1. */

Functions

int ov_ilog (ogg_uint32_t v)
long _float32_pack (float val)
float _float32_unpack (long val)
ogg_uint32_t_make_words (char *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_destroy (static_codebook *b)
void vorbis_book_clear (codebook *b)
int vorbis_book_init_encode (codebook *c, const static_codebook *s)
static int JUCE_CDECL sort32a (const void *a, const void *b)
int vorbis_book_init_decode (codebook *c, const static_codebook *s)
long vorbis_book_codeword (codebook *book, int entry)
long vorbis_book_codelen (codebook *book, int entry)

Macro Definition Documentation

◆ VQ_FEXP

#define VQ_FEXP   10

◆ VQ_FEXP_BIAS

#define VQ_FEXP_BIAS   768 /* bias toward values smaller than 1. */

◆ VQ_FMAN

#define VQ_FMAN   21

Function Documentation

◆ _book_maptype1_quantvals()

long _book_maptype1_quantvals ( const static_codebook * b)

◆ _book_unquantize()

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

◆ _float32_pack()

long _float32_pack ( float val)

◆ _float32_unpack()

float _float32_unpack ( long val)

◆ _make_words()

ogg_uint32_t * _make_words ( char * l,
long n,
long sparsecount )

◆ ov_ilog()

int ov_ilog ( ogg_uint32_t v)

◆ sort32a()

int JUCE_CDECL sort32a ( const void * a,
const void * b )
static

◆ vorbis_book_clear()

void vorbis_book_clear ( codebook * b)

◆ vorbis_book_codelen()

long vorbis_book_codelen ( codebook * book,
int entry )

◆ vorbis_book_codeword()

long vorbis_book_codeword ( codebook * book,
int entry )

◆ vorbis_book_init_decode()

int vorbis_book_init_decode ( codebook * c,
const static_codebook * s )

◆ vorbis_book_init_encode()

int vorbis_book_init_encode ( codebook * c,
const static_codebook * s )

◆ vorbis_staticbook_destroy()

void vorbis_staticbook_destroy ( static_codebook * b)