search for: quantvals

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

2000 Nov 08
0
vq diffs
...>fitlist=_ogg_malloc(sizeof(long)*p->fittotal); + p->fitlist=(long*)_ogg_malloc(sizeof(long)*p->fittotal); for(i=0;i<p->fittotal;i++) if(get_next_ivalue(in,p->fitlist+i)){ @@ -342,5 +343,5 @@ reset_next_value(); for(i=0;i<c->dim;i++)pigeons*=p->quantvals; - p->fitmap=_ogg_malloc(sizeof(long)*pigeons); + p->fitmap=(long*)_ogg_malloc(sizeof(long)*pigeons); for(i=0;i<pigeons;i++) if(get_next_ivalue(in,p->fitmap+i)){ @@ -352,5 +353,5 @@ find_seek_to(in,"static long _vq_fitlength_"); reset_next_value();...
2006 Mar 19
0
how to arrange the codeword tree into array form
...nging the binary tree into an array form. i think this process is done in _make_words in tremer code. i would be if some one could explain me the exact algorithm or where can i get it? i am attaching the code here for your reference. static int _make_words(char *l,long n,ogg_uint32_t *r,long quantvals, codebook *b, oggpack_buffer *opb,int maptype){ long i,j,count=0; long top=0; ogg_uint32_t marker[33]; if(n<2){ r[0]=0x80000000; }else{ memset(marker,0,sizeof(marker)); for(i=0;i<n;i++){ long length=l[i]; if(length){ ogg_uint32_t entry=marker[...
2000 Sep 13
0
vq: postbeta2 patch
...->pigeon_tree=p=calloc(1,sizeof(encode_aux_pigeonhole)); line=get_line(in); - if(sscanf(line,"%lf, %lf, %d, %d",&(p->min),&(p->del), + if(sscanf(line,"%f, %f, %d, %d",&(p->min),&(p->del), &(p->mapentries),&(p->quantvals))!=4){ fprintf(stderr,"5: syntax in %s in line:\t %s",filename,line); diff -bBu2 branch_postbeta2/vq/build.c vorbis-postb2/vq/build.c --- branch_postbeta2/vq/build.c Thu Aug 31 05:00:02 2000 +++ vorbis-postb2/vq/build.c Wed Sep 13 18:08:55 2000 @@ -153,5 +153,5 @@ for(k=0;k...
2003 May 21
3
use of 'long' in vorbis structures
The codebase sets up ogg_int32_t, etc, but then uses long directly in several structures. Unfortunately for me longs are 64 bits on my platform, not 32, and I end up getting hammered by unnecessary software math routine calls. Should I be able to just search/replace 'long' with 'ogg_int32_t' in the code or would that cause more problems than it fixes? -Dave --- >8 ---- List