Home | History | Annotate | Download | only in Tremolo

Lines Matching refs:info

50 void mapping_clear_info(vorbis_info_mapping *info){
51 if(info){
52 if(info->chmuxlist)_ogg_free(info->chmuxlist);
53 if(info->submaplist)_ogg_free(info->submaplist);
54 if(info->coupling)_ogg_free(info->coupling);
55 memset(info,0,sizeof(*info));
70 int mapping_info_unpack(vorbis_info_mapping *info,vorbis_info *vi,
74 memset(info,0,sizeof(*info));
77 info->submaps=oggpack_read(opb,4)+1;
79 info->submaps=1;
82 info->coupling_steps=oggpack_read(opb,8)+1;
83 info->coupling=
84 _ogg_malloc(info->coupling_steps*sizeof(*info->coupling));
86 for(i=0;i<info->coupling_steps;i++){
87 int testM=info->coupling[i].mag=(unsigned char)(oggpack_read(opb,ilog(vi->channels)));
88 int testA=info->coupling[i].ang=(unsigned char)(oggpack_read(opb,ilog(vi->channels)));
101 if(info->submaps>1){
102 info->chmuxlist=_ogg_malloc(sizeof(*info->chmuxlist)*vi->channels);
104 info->chmuxlist[i]=(unsigned char)(oggpack_read(opb,4));
105 if(info->chmuxlist[i]>=info->submaps)goto err_out;
109 info->submaplist=_ogg_malloc(sizeof(*info->submaplist)*info->submaps);
110 for(i=0;i<info->submaps;i++){
112 info->submaplist[i].floor=(char)oggpack_read(opb,8);
113 if(info->submaplist[i].floor>=ci->floors)goto err_out;
114 info->submaplist[i].residue=(char)oggpack_read(opb,8);
115 if(info->submaplist[i].residue>=ci->residues)goto err_out;
121 mapping_clear_info(info);
125 int mapping_inverse(vorbis_dsp_state *vd,vorbis_info_mapping *info){
146 if(info->submaps>1)
147 submap=info->chmuxlist[i];
148 floorno=info->submaplist[submap].floor;
170 for(i=0;i<info->coupling_steps;i++){
171 if(nonzero[info->coupling[i].mag] ||
172 nonzero[info->coupling[i].ang]){
173 nonzero[info->coupling[i].mag]=1;
174 nonzero[info->coupling[i].ang]=1;
179 for(i=0;i<info->submaps;i++){
182 if(!info->chmuxlist || info->chmuxlist[j]==i){
191 res_inverse(vd,ci->residue_param+info->submaplist[i].residue,
199 for(i=info->coupling_steps-1;i>=0;i--){
200 ogg_int32_t *pcmM=vd->work[info->coupling[i].mag];
201 ogg_int32_t *pcmA=vd->work[info->coupling[i].ang];
235 if(info->submaps>1)
236 submap=info->chmuxlist[i];
237 floorno=info->submaplist[submap].floor;