Lines Matching refs:book

261 int vorbis_book_encode(codebook *book, int a, oggpack_buffer *b){  in vorbis_book_encode()  argument
262 if(a<0 || a>=book->c->entries)return(0); in vorbis_book_encode()
263 oggpack_write(b,book->codelist[a],book->c->lengthlist[a]); in vorbis_book_encode()
264 return(book->c->lengthlist[a]); in vorbis_book_encode()
283 STIN long decode_packed_entry_number(codebook *book, oggpack_buffer *b){ in decode_packed_entry_number() argument
284 int read=book->dec_maxlength; in decode_packed_entry_number()
286 long lok = oggpack_look(b,book->dec_firsttablen); in decode_packed_entry_number()
289 long entry = book->dec_firsttable[lok]; in decode_packed_entry_number()
292 hi=book->used_entries-(entry&0x7fff); in decode_packed_entry_number()
294 oggpack_adv(b, book->dec_codelengths[entry-1]); in decode_packed_entry_number()
299 hi=book->used_entries; in decode_packed_entry_number()
314 long test=book->codelist[lo+p]>testword; in decode_packed_entry_number()
319 if(book->dec_codelengths[lo]<=read){ in decode_packed_entry_number()
320 oggpack_adv(b, book->dec_codelengths[lo]); in decode_packed_entry_number()
345 long vorbis_book_decode(codebook *book, oggpack_buffer *b){ in vorbis_book_decode() argument
346 if(book->used_entries>0){ in vorbis_book_decode()
347 long packed_entry=decode_packed_entry_number(book,b); in vorbis_book_decode()
349 return(book->dec_index[packed_entry]); in vorbis_book_decode()
357 long vorbis_book_decodevs_add(codebook *book,float *a,oggpack_buffer *b,int n){ in vorbis_book_decodevs_add() argument
358 if(book->used_entries>0){ in vorbis_book_decodevs_add()
359 int step=n/book->dim; in vorbis_book_decodevs_add()
365 entry[i]=decode_packed_entry_number(book,b); in vorbis_book_decodevs_add()
367 t[i] = book->valuelist+entry[i]*book->dim; in vorbis_book_decodevs_add()
369 for(i=0,o=0;i<book->dim;i++,o+=step) in vorbis_book_decodevs_add()
376 long vorbis_book_decodev_add(codebook *book,float *a,oggpack_buffer *b,int n){ in vorbis_book_decodev_add() argument
377 if(book->used_entries>0){ in vorbis_book_decodev_add()
381 if(book->dim>8){ in vorbis_book_decodev_add()
383 entry = decode_packed_entry_number(book,b); in vorbis_book_decodev_add()
385 t = book->valuelist+entry*book->dim; in vorbis_book_decodev_add()
386 for (j=0;j<book->dim;) in vorbis_book_decodev_add()
391 entry = decode_packed_entry_number(book,b); in vorbis_book_decodev_add()
393 t = book->valuelist+entry*book->dim; in vorbis_book_decodev_add()
395 switch((int)book->dim){ in vorbis_book_decodev_add()
421 long vorbis_book_decodev_set(codebook *book,float *a,oggpack_buffer *b,int n){ in vorbis_book_decodev_set() argument
422 if(book->used_entries>0){ in vorbis_book_decodev_set()
427 entry = decode_packed_entry_number(book,b); in vorbis_book_decodev_set()
429 t = book->valuelist+entry*book->dim; in vorbis_book_decodev_set()
430 for (j=0;j<book->dim;) in vorbis_book_decodev_set()
437 for (j=0;j<book->dim;) in vorbis_book_decodev_set()
444 long vorbis_book_decodevv_add(codebook *book,float **a,long offset,int ch, in vorbis_book_decodevv_add() argument
449 if(book->used_entries>0){ in vorbis_book_decodevv_add()
451 entry = decode_packed_entry_number(book,b); in vorbis_book_decodevv_add()
454 const float *t = book->valuelist+entry*book->dim; in vorbis_book_decodevv_add()
455 for (j=0;j<book->dim;j++){ in vorbis_book_decodevv_add()