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