Lines Matching refs:book
639 ogg_uint32_t decode_packed_entry_number(codebook *book,
642 static inline ogg_uint32_t decode_packed_entry_number(codebook *book, in decode_packed_entry_number() argument
645 int read=book->dec_maxlength; in decode_packed_entry_number()
657 switch (book->dec_method) in decode_packed_entry_number()
663 unsigned char *t=(unsigned char *)book->dec_table; in decode_packed_entry_number()
676 unsigned char *t=(unsigned char *)book->dec_table; in decode_packed_entry_number()
695 chase=((ogg_uint16_t *)(book->dec_table))[chase*2+((lok>>i)&1)]; in decode_packed_entry_number()
706 ogg_uint16_t *t=(ogg_uint16_t *)book->dec_table; in decode_packed_entry_number()
724 chase=((ogg_uint32_t *)(book->dec_table))[chase*2+((lok>>i)&1)]; in decode_packed_entry_number()
743 long vorbis_book_decode(codebook *book, oggpack_buffer *b){ in vorbis_book_decode() argument
744 if(book->dec_type)return -1; in vorbis_book_decode()
745 return decode_packed_entry_number(book,b); in vorbis_book_decode()
828 long vorbis_book_decodevs_add(codebook *book,ogg_int32_t *a, in vorbis_book_decodevs_add() argument
830 if(book->used_entries>0){ in vorbis_book_decodevs_add()
831 int step=n/book->dim; in vorbis_book_decodevs_add()
832 ogg_int32_t *v = book->dec_buf;//(ogg_int32_t *)alloca(sizeof(*v)*book->dim); in vorbis_book_decodevs_add()
837 if(decode_map(book,b,v,point))return -1; in vorbis_book_decodevs_add()
838 for(i=0,o=j;i<book->dim;i++,o+=step) in vorbis_book_decodevs_add()
845 long vorbis_book_decodev_add(codebook *book,ogg_int32_t *a, in vorbis_book_decodev_add() argument
847 if(book->used_entries>0){ in vorbis_book_decodev_add()
848 ogg_int32_t *v = book->dec_buf;//(ogg_int32_t *)alloca(sizeof(*v)*book->dim); in vorbis_book_decodev_add()
853 if(decode_map(book,b,v,point))return -1; in vorbis_book_decodev_add()
854 for (j=0;j<book->dim;j++) in vorbis_book_decodev_add()
861 long vorbis_book_decodev_set(codebook *book,ogg_int32_t *a, in vorbis_book_decodev_set() argument
863 if(book->used_entries>0){ in vorbis_book_decodev_set()
864 ogg_int32_t *v = book->dec_buf;//(ogg_int32_t *)alloca(sizeof(*v)*book->dim); in vorbis_book_decodev_set()
869 if(decode_map(book,b,v,point))return -1; in vorbis_book_decodev_set()
870 for (j=0;j<book->dim;j++) in vorbis_book_decodev_set()
877 for (j=0;j<book->dim;j++) in vorbis_book_decodev_set()
886 long vorbis_book_decodevv_add(codebook *book,ogg_int32_t **a,
890 long vorbis_book_decodevv_add(codebook *book,ogg_int32_t **a, in vorbis_book_decodevv_add() argument
893 if(book->used_entries>0){ in vorbis_book_decodevv_add()
895 ogg_int32_t *v = book->dec_buf;//(ogg_int32_t *)alloca(sizeof(*v)*book->dim); in vorbis_book_decodevv_add()
901 if(decode_map(book,b,v,point))return -1; in vorbis_book_decodevv_add()
902 for (j=0;j<book->dim;j++){ in vorbis_book_decodevv_add()