/external/tremor/Tremor/ |
D | info.c | 159 static int _vorbis_unpack_info(vorbis_info *vi,oggpack_buffer *opb){ in _vorbis_unpack_info() argument 163 vi->version=oggpack_read(opb,32); in _vorbis_unpack_info() 166 vi->channels=oggpack_read(opb,8); in _vorbis_unpack_info() 167 vi->rate=oggpack_read(opb,32); in _vorbis_unpack_info() 169 vi->bitrate_upper=oggpack_read(opb,32); in _vorbis_unpack_info() 170 vi->bitrate_nominal=oggpack_read(opb,32); in _vorbis_unpack_info() 171 vi->bitrate_lower=oggpack_read(opb,32); in _vorbis_unpack_info() 173 ci->blocksizes[0]=1<<oggpack_read(opb,4); in _vorbis_unpack_info() 174 ci->blocksizes[1]=1<<oggpack_read(opb,4); in _vorbis_unpack_info() 188 if(oggpack_read(opb,1)!=1)goto err_out; /* EOP check */ in _vorbis_unpack_info() [all …]
|
D | res012.c | 39 vorbis_info *vi,oggpack_buffer *opb){ in res_unpack() argument 44 info->type=oggpack_read(opb,16); in res_unpack() 46 info->begin=oggpack_read(opb,24); in res_unpack() 47 info->end=oggpack_read(opb,24); in res_unpack() 48 info->grouping=oggpack_read(opb,24)+1; in res_unpack() 49 info->partitions=oggpack_read(opb,6)+1; in res_unpack() 50 info->groupbook=oggpack_read(opb,8); in res_unpack() 57 int cascade=oggpack_read(opb,3); in res_unpack() 58 if(oggpack_read(opb,1)) in res_unpack() 59 cascade|=(oggpack_read(opb,5)<<3); in res_unpack() [all …]
|
D | codebook.c | 40 codebook *b,oggpack_buffer *opb,int maptype){ in decpack() argument 59 ret|=oggpack_read(opb,b->q_bits)<<(b->q_bits*j); in decpack() 125 codebook *b, oggpack_buffer *opb,int maptype){ in _make_words() argument 166 r[chase*2+bit]= decpack(i,count++,quantvals,b,opb,maptype) | in _make_words() 197 oggpack_buffer *opb,int maptype){ in _make_decode_table() argument 214 s->dec_table,quantvals,s,opb,maptype))return 1; in _make_decode_table() 224 if(_make_words(lengthlist,s->entries,work,quantvals,s,opb,maptype))return 1; in _make_decode_table() 360 int vorbis_book_unpack(oggpack_buffer *opb,codebook *s){ in vorbis_book_unpack() argument 369 if(oggpack_read(opb,24)!=0x564342)goto _eofout; in vorbis_book_unpack() 372 s->dim=oggpack_read(opb,16); in vorbis_book_unpack() [all …]
|
D | floor1.c | 87 vorbis_info_floor *floor1_info_unpack (vorbis_info *vi,oggpack_buffer *opb){ in floor1_info_unpack() argument 93 info->partitions=oggpack_read(opb,5); /* only 0 to 31 legal */ in floor1_info_unpack() 97 info->partitionclass[j]=oggpack_read(opb,4); /* only 0 to 15 legal */ in floor1_info_unpack() 105 info->class[j].class_dim=oggpack_read(opb,3)+1; /* 1 to 8 */ in floor1_info_unpack() 106 info->class[j].class_subs=oggpack_read(opb,2); /* 0,1,2,3 bits */ in floor1_info_unpack() 107 if(oggpack_eop(opb)<0) goto err_out; in floor1_info_unpack() 109 info->class[j].class_book=oggpack_read(opb,8); in floor1_info_unpack() 114 info->class[j].class_subbook[k]=oggpack_read(opb,8)-1; in floor1_info_unpack() 121 info->mult=oggpack_read(opb,2)+1; /* only 1,2,3,4 legal now */ in floor1_info_unpack() 122 rangebits=oggpack_read(opb,4); in floor1_info_unpack() [all …]
|
D | mapping0.c | 51 oggpack_buffer *opb){ in mapping_info_unpack() argument 56 if(oggpack_read(opb,1)) in mapping_info_unpack() 57 info->submaps=oggpack_read(opb,4)+1; in mapping_info_unpack() 61 if(oggpack_read(opb,1)){ in mapping_info_unpack() 62 info->coupling_steps=oggpack_read(opb,8)+1; in mapping_info_unpack() 67 int testM=info->coupling[i].mag=oggpack_read(opb,ilog(vi->channels)); in mapping_info_unpack() 68 int testA=info->coupling[i].ang=oggpack_read(opb,ilog(vi->channels)); in mapping_info_unpack() 79 if(oggpack_read(opb,2)>0)goto err_out; /* 2,3:reserved */ in mapping_info_unpack() 84 info->chmuxlist[i]=oggpack_read(opb,4); in mapping_info_unpack() 91 int temp=oggpack_read(opb,8); in mapping_info_unpack() [all …]
|
D | floor0.c | 346 vorbis_info_floor *floor0_info_unpack (vorbis_info *vi,oggpack_buffer *opb){ in floor0_info_unpack() argument 351 info->order=oggpack_read(opb,8); in floor0_info_unpack() 352 info->rate=oggpack_read(opb,16); in floor0_info_unpack() 353 info->barkmap=oggpack_read(opb,16); in floor0_info_unpack() 354 info->ampbits=oggpack_read(opb,6); in floor0_info_unpack() 355 info->ampdB=oggpack_read(opb,8); in floor0_info_unpack() 356 info->numbooks=oggpack_read(opb,4)+1; in floor0_info_unpack() 363 info->books[j]=oggpack_read(opb,8); in floor0_info_unpack() 367 if(oggpack_eop(opb))goto err_out; in floor0_info_unpack() 385 int ampraw=oggpack_read(&vd->opb,info->ampbits); in floor0_inverse1() [all …]
|
D | dsp.c | 145 oggpack_buffer opb; in vorbis_packet_blocksize() local 150 oggpack_readinit(&opb,op->packet); in vorbis_packet_blocksize() 153 if(oggpack_read(&opb,1)!=0){ in vorbis_packet_blocksize() 164 mode=oggpack_read(&opb,modebits); in vorbis_packet_blocksize() 185 oggpack_readinit(&vd->opb,op->packet); in vorbis_dsp_synthesis() 188 if(oggpack_read(&vd->opb,1)!=0){ in vorbis_dsp_synthesis() 194 mode=oggpack_read(&vd->opb,ilog(ci->modes)); in vorbis_dsp_synthesis() 205 oggpack_read(&vd->opb,1); in vorbis_dsp_synthesis() 206 temp=oggpack_read(&vd->opb,1); in vorbis_dsp_synthesis()
|
D | codec_internal.h | 40 oggpack_buffer opb; member 129 vorbis_info *vi,oggpack_buffer *opb);
|