search for: static_codebook

Displaying 4 results from an estimated 4 matches for "static_codebook".

2008 Sep 02
1
How can I minimize the memory use in Tremor?
...de, I found the header parse, especially, the codebook unpack part takes a lot of memory. Tremor decodes the codebooks to a cache to store them for further decode. And this is the dominant factor in decoder memory usage, am I right? There are two structures in this code to hold the codebooks, static_codebook and codebook. But in low mem code, there are only one structure - codebook. It seems static_codebook is redundant, and I wonder if I could replace this part with the low mem code? Since I'm not very clear about the codebook structure, so, I'm not sure if this is feasible to reduce t...
2000 Nov 08
0
vq diffs
...lbufsize); }else{ lbufsize*=2; - linebuffer=_ogg_realloc(linebuffer,lbufsize); + linebuffer=(char*)_ogg_realloc(linebuffer,lbufsize); } } @@ -179,6 +179,7 @@ codebook *codebook_load(char *filename){ - codebook *b=_ogg_calloc(1,sizeof(codebook)); - static_codebook *c=(static_codebook *)(b->c=_ogg_calloc(1,sizeof(static_codebook))); + codebook *b=(codebook*)_ogg_calloc(1,sizeof(codebook)); + static_codebook *c=(static_codebook*) + (b->c=(const static_codebook*)_ogg_calloc(1,sizeof(static_codebook))); encode_aux_nearestmatch *a=NULL; encode_...
2001 May 01
1
encoder observation
Hello! First of all a question: When you make the encoder tables (ie: mode_e.h) do you use the mapping0_forward function? Because you made the encoder tables, and after this you did a minor correction in the final beta4 ... (this correction was: additional[0]=fabs(additional[0]*scale); in the mapping0_forward function) (I see this was a bug, and the modification was correct, but this correction
2005 Aug 17
1
Reg. vorbis_staticbook_unpack
Hi, All help is appreciated. I am looking at the function "vorbis_staticbook_unpack" in codebook.c I guess this function just reads the codebooks in some structure (static_codebook) and does not actually map the codewords to the codevalues. Does anyone know what functions can I use in this function to actually view this mapping? I just want to display something like below: I can already decode lines beginging with "[SK]". Lookat lines begining with "[XXX]&...