Lines Matching defs:quantvals
59 static ogg_uint32_t decpack(long entry,long used_entry,long quantvals,
73 ogg_uint32_t off=entry%quantvals;
74 entry/=quantvals;
85 ogg_uint32_t off=entry%quantvals;
86 entry/=quantvals;
144 static int _make_words(char *l,long n,ogg_uint32_t *r,long quantvals,
186 r[chase*2+bit]= decpack(i,count++,quantvals,b,opb,maptype) |
216 static int _make_decode_table(codebook *s,char *lengthlist,long quantvals,
234 s->dec_table,quantvals,s,opb,maptype))return 1;
243 if(_make_words(lengthlist,s->entries,work,quantvals,s,opb,maptype))return 1;
382 int quantvals=0;
484 if(_make_decode_table(s,lengthlist,quantvals,opb,maptype)) goto _errout;
490 quantvals=_book_maptype1_quantvals(s);
498 long total2=(_ilog(quantvals-1)*s->dim+8)/8+(s->q_bits+7)/8;
505 s->q_val=alloca(sizeof(ogg_uint16_t)*quantvals);
507 for(i=0;i<quantvals;i++)
520 if(_make_decode_table(s,lengthlist,quantvals,opb,maptype)){
533 s->q_val=_ogg_malloc(quantvals);
535 for(i=0;i<quantvals;i++)
538 s->q_val=_ogg_malloc(quantvals*2);
540 for(i=0;i<quantvals;i++)
546 s->q_pack=_ilog(quantvals-1);
549 (_ilog(quantvals-1)*s->dim+8)/8);
551 (_ilog(quantvals-1)*s->dim+8)/8);
552 if(_make_decode_table(s,lengthlist,quantvals,opb,maptype))goto _errout;
560 quantvals=s->entries*s->dim;
569 if(_make_decode_table(s,lengthlist,quantvals,opb,maptype))goto _errout;
577 if(_make_decode_table(s,lengthlist,quantvals,opb,maptype))goto _errout;