Lines Matching refs:book
652 ogg_uint32_t decode_packed_entry_number(codebook *book,
655 static inline ogg_uint32_t decode_packed_entry_number(codebook *book, in decode_packed_entry_number() argument
658 int read=book->dec_maxlength; in decode_packed_entry_number()
670 switch (book->dec_method) in decode_packed_entry_number()
676 unsigned char *t=(unsigned char *)book->dec_table; in decode_packed_entry_number()
689 unsigned char *t=(unsigned char *)book->dec_table; in decode_packed_entry_number()
708 chase=((ogg_uint16_t *)(book->dec_table))[chase*2+((lok>>i)&1)]; in decode_packed_entry_number()
719 ogg_uint16_t *t=(ogg_uint16_t *)book->dec_table; in decode_packed_entry_number()
737 chase=((ogg_uint32_t *)(book->dec_table))[chase*2+((lok>>i)&1)]; in decode_packed_entry_number()
756 long vorbis_book_decode(codebook *book, oggpack_buffer *b){ in vorbis_book_decode() argument
757 if(book->dec_type)return -1; in vorbis_book_decode()
758 return decode_packed_entry_number(book,b); in vorbis_book_decode()
850 long vorbis_book_decodevs_add(codebook *book,ogg_int32_t *a, in vorbis_book_decodevs_add() argument
852 if(book->used_entries>0){ in vorbis_book_decodevs_add()
853 int step=n/book->dim; in vorbis_book_decodevs_add()
854 ogg_int32_t *v = book->dec_buf;//(ogg_int32_t *)alloca(sizeof(*v)*book->dim); in vorbis_book_decodevs_add()
859 if(decode_map(book,b,v,point))return -1; in vorbis_book_decodevs_add()
860 for(i=0,o=j;i<book->dim;i++,o+=step) in vorbis_book_decodevs_add()
867 long vorbis_book_decodev_add(codebook *book,ogg_int32_t *a, in vorbis_book_decodev_add() argument
869 if(book->used_entries>0){ in vorbis_book_decodev_add()
870 ogg_int32_t *v = book->dec_buf;//(ogg_int32_t *)alloca(sizeof(*v)*book->dim); in vorbis_book_decodev_add()
875 if(decode_map(book,b,v,point))return -1; in vorbis_book_decodev_add()
876 for (j=0;j<book->dim && i < n;j++) in vorbis_book_decodev_add()
883 long vorbis_book_decodev_set(codebook *book,ogg_int32_t *a, in vorbis_book_decodev_set() argument
885 if(book->used_entries>0){ in vorbis_book_decodev_set()
886 ogg_int32_t *v = book->dec_buf;//(ogg_int32_t *)alloca(sizeof(*v)*book->dim); in vorbis_book_decodev_set()
891 if(decode_map(book,b,v,point))return -1; in vorbis_book_decodev_set()
892 for (j=0;j<book->dim && i < n;j++) in vorbis_book_decodev_set()
899 for (j=0;j<book->dim && i < n;j++) in vorbis_book_decodev_set()
908 long vorbis_book_decodevv_add(codebook *book,ogg_int32_t **a,
912 long vorbis_book_decodevv_add(codebook *book,ogg_int32_t **a, in vorbis_book_decodevv_add() argument
915 if(book->used_entries>0){ in vorbis_book_decodevv_add()
917 ogg_int32_t *v = book->dec_buf;//(ogg_int32_t *)alloca(sizeof(*v)*book->dim); in vorbis_book_decodevv_add()
923 if(decode_map(book,b,v,point))return -1; in vorbis_book_decodevv_add()
924 for (j=0;j<book->dim && i < offset + n;j++){ in vorbis_book_decodevv_add()