Lines Matching refs:opb
60 codebook *b,oggpack_buffer *opb,int maptype){ in decpack() argument
79 ret|=oggpack_read(opb,b->q_bits)<<(b->q_bits*j); in decpack()
145 codebook *b, oggpack_buffer *opb,int maptype){ in _make_words() argument
186 r[chase*2+bit]= decpack(i,count++,quantvals,b,opb,maptype) | in _make_words()
217 oggpack_buffer *opb,int maptype){ in _make_decode_table() argument
234 s->dec_table,quantvals,s,opb,maptype))return 1; in _make_decode_table()
243 if(_make_words(lengthlist,s->entries,work,quantvals,s,opb,maptype))return 1; in _make_decode_table()
380 int vorbis_book_unpack(oggpack_buffer *opb,codebook *s){ in vorbis_book_unpack() argument
389 if(oggpack_read(opb,24)!=0x564342)goto _eofout; in vorbis_book_unpack()
392 s->dim=oggpack_read(opb,16); in vorbis_book_unpack()
396 s->entries=oggpack_read(opb,24); in vorbis_book_unpack()
403 switch((int)oggpack_read(opb,1)){ in vorbis_book_unpack()
410 if(oggpack_read(opb,1)){ in vorbis_book_unpack()
414 if(oggpack_read(opb,1)){ in vorbis_book_unpack()
415 long num=oggpack_read(opb,5); in vorbis_book_unpack()
427 long num=oggpack_read(opb,5); in vorbis_book_unpack()
438 long length=oggpack_read(opb,5)+1; in vorbis_book_unpack()
445 long num=oggpack_read(opb,_ilog(s->entries-i)); in vorbis_book_unpack()
462 if((maptype=oggpack_read(opb,4))>0){ in vorbis_book_unpack()
463 s->q_min=_float32_unpack(oggpack_read(opb,32),&s->q_minp); in vorbis_book_unpack()
464 s->q_del=_float32_unpack(oggpack_read(opb,32),&s->q_delp); in vorbis_book_unpack()
465 s->q_bits=oggpack_read(opb,4)+1; in vorbis_book_unpack()
466 s->q_seq=oggpack_read(opb,1); in vorbis_book_unpack()
484 if(_make_decode_table(s,lengthlist,quantvals,opb,maptype)) goto _errout; in vorbis_book_unpack()
508 ((ogg_uint16_t *)s->q_val)[i]=(ogg_uint16_t)oggpack_read(opb,s->q_bits); in vorbis_book_unpack()
510 if(oggpack_eop(opb)){ in vorbis_book_unpack()
520 if(_make_decode_table(s,lengthlist,quantvals,opb,maptype)){ in vorbis_book_unpack()
536 ((unsigned char *)s->q_val)[i]=(unsigned char)oggpack_read(opb,s->q_bits); in vorbis_book_unpack()
541 ((ogg_uint16_t *)s->q_val)[i]=(ogg_uint16_t)oggpack_read(opb,s->q_bits); in vorbis_book_unpack()
544 if(oggpack_eop(opb))goto _eofout; in vorbis_book_unpack()
552 if(_make_decode_table(s,lengthlist,quantvals,opb,maptype))goto _errout; in vorbis_book_unpack()
569 if(_make_decode_table(s,lengthlist,quantvals,opb,maptype))goto _errout; in vorbis_book_unpack()
577 if(_make_decode_table(s,lengthlist,quantvals,opb,maptype))goto _errout; in vorbis_book_unpack()
585 ((unsigned char *)(s->q_val))[i]=(unsigned char)oggpack_read(opb,s->q_bits); in vorbis_book_unpack()
588 ((ogg_uint16_t *)(s->q_val))[i]=(ogg_uint16_t)oggpack_read(opb,s->q_bits); in vorbis_book_unpack()
609 if(oggpack_eop(opb))goto _eofout; in vorbis_book_unpack()