search for: headbit

Displaying 2 results from an estimated 2 matches for "headbit".

Did you mean: habit
2004 Dec 02
0
tremor: macro-ize mask table
...adend is zero, simply finds next byte. If we're up to the end @@ -80,7 +74,7 @@ /* Read in bits without advancing the bitptr; bits <= 32 */ long oggpack_look(oggpack_buffer *b,int bits){ - unsigned long m=mask[bits]; + unsigned long m=MASK(bits); unsigned long ret; bits+=b->headbit; @@ -229,15 +223,15 @@ int tbit=bits?bits:ilog(b[i]); if((test=oggpack_look(&r,tbit))==0xffffffff) report("out of data!\n"); - if(test!=(b[i]&mask[tbit])){ - fprintf(stderr,"%ld) %lx %lx\n",i,(b[i]&mask[tbit]),test); + if(test!=(b[i]&M...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...union { ogg_buffer_state *owner; struct ogg_buffer *next; } ptr; } ogg_buffer; typedef struct ogg_reference { ogg_buffer *buffer; long begin; long length; struct ogg_reference *next; } ogg_reference; typedef struct oggpack_buffer { int headbit; unsigned char *headptr; long headend; /* memory management */ ogg_reference *head; ogg_reference *tail; /* render the byte/bit counter API constant time */ long count; /* doesn't count the tail */ } oggpack_buffer; typedef struct oggbyte_buffer { ogg_r...