Lines Matching defs:look

81     vorbis_look_residue0 *look=(vorbis_look_residue0 *)i;
86 for(j=0;j<look->parts;j++){
89 if(look->training_data[k][j]){
92 codebook *statebook=look->partbooks[j][k];
95 sprintf(buffer,"res_sub%d_part%d_pass%d.vqd",look->submap,j,k);
99 fprintf(of,"%d:%ld\n",l,look->training_data[k][j][l]);
104 look->training_min[k][j],look->training_max[k][j]);*/
106 _ogg_free(look->training_data[k][j]);
107 look->training_data[k][j]=NULL;
112 fprintf(stderr,"min/max residue: %g::%g\n",look->tmin,look->tmax);
115 (float)look->phrasebits/look->frames,
116 (float)look->postbits/look->frames,
117 (float)(look->postbits+look->phrasebits)/look->frames);*/
121 /*vorbis_info_residue0 *info=look->info;
125 "(%g/frame) \n",look->frames,look->phrasebits,
126 look->resbitsflat,
127 (look->phrasebits+look->resbitsflat)/(float)look->frames);
129 for(j=0;j<look->parts;j++){
132 for(k=0;k<look->stages;k++)
134 fprintf(stderr,"%ld,",look->resbits[j][k]);
135 acc+=look->resbits[j][k];
138 fprintf(stderr,":: (%ld vals) %1.2fbits/sample\n",look->resvals[j],
139 acc?(float)acc/(look->resvals[j]*info->grouping):0);
143 for(j=0;j<look->parts;j++)
144 if(look->partbooks[j])_ogg_free(look->partbooks[j]);
145 _ogg_free(look->partbooks);
146 for(j=0;j<look->partvals;j++)
147 _ogg_free(look->decodemap[j]);
148 _ogg_free(look->decodemap);
150 memset(look,0,sizeof(*look));
151 _ogg_free(look);
270 vorbis_look_residue0 *look=_ogg_calloc(1,sizeof(*look));
276 look->info=info;
278 look->parts=info->partitions;
279 look->fullbooks=ci->fullbooks;
280 look->phrasebook=ci->fullbooks+info->groupbook;
281 dim=look->phrasebook->dim;
283 look->partbooks=_ogg_calloc(look->parts,sizeof(*look->partbooks));
285 for(j=0;j<look->parts;j++){
289 look->partbooks[j]=_ogg_calloc(stages,sizeof(*look->partbooks[j]));
292 look->partbooks[j][k]=ci->fullbooks+info->booklist[acc++];
294 look->training_data[k][j]=_ogg_calloc(look->partbooks[j][k]->entries,
295 sizeof(***look->training_data));
301 look->partvals=1;
303 look->partvals*=look->parts;
305 look->stages=maxstage;
306 look->decodemap=_ogg_malloc(look->partvals*sizeof(*look->decodemap));
307 for(j=0;j<look->partvals;j++){
309 long mult=look->partvals/look->parts;
310 look->decodemap[j]=_ogg_malloc(dim*sizeof(*look->decodemap[j]));
314 mult/=look->parts;
315 look->decodemap[j][k]=deco;
321 look->train_seq=train_seq++;
324 return(look);
416 vorbis_look_residue0 *look=(vorbis_look_residue0 *)vl;
417 vorbis_info_residue0 *info=look->info;
463 sprintf(buffer,"resaux_%d.vqd",look->train_seq);
472 look->frames++;
483 vorbis_look_residue0 *look=(vorbis_look_residue0 *)vl;
484 vorbis_info_residue0 *info=look->info;
522 sprintf(buffer,"resaux_%d.vqd",look->train_seq);
530 look->frames++;
543 vorbis_look_residue0 *look=(vorbis_look_residue0 *)vl;
544 vorbis_info_residue0 *info=look->info;
547 look->submap=submap;
553 int partitions_per_word=look->phrasebook->dim;
563 if(in[i][j]>look->tmax)look->tmax=in[i][j];
564 if(in[i][j]<look->tmin)look->tmin=in[i][j];
576 for(s=0;s<look->stages;s++){
591 if(val<look->phrasebook->entries)
592 look->phrasebits+=vorbis_book_encode(look->phrasebook,val,opb);
608 codebook *statebook=look->partbooks[partword[j][i]][s];
614 accumulator=look->training_data[s][partword[j][i]];
619 if(samples[l]<look->training_min[s][partword[j][i]])
620 look->training_min[s][partword[j][i]]=samples[l];
621 if(samples[l]>look->training_max[s][partword[j][i]])
622 look->training_max[s][partword[j][i]]=samples[l];
630 look->postbits+=ret;
662 vorbis_look_residue0 *look=(vorbis_look_residue0 *)vl;
663 vorbis_info_residue0 *info=look->info;
667 int partitions_per_word=look->phrasebook->dim;
680 for(s=0;s<look->stages;s++){
688 int temp=vorbis_book_decode(look->phrasebook,&vb->opb);
691 partword[j][l]=look->decodemap[temp];
701 codebook *stagebook=look->partbooks[partword[j][l][k]][s];
807 vorbis_look_residue0 *look=(vorbis_look_residue0 *)vl;
808 vorbis_info_residue0 *info=look->info;
812 int partitions_per_word=look->phrasebook->dim;
825 for(s=0;s<look->stages;s++){
830 int temp=vorbis_book_decode(look->phrasebook,&vb->opb);
832 partword[l]=look->decodemap[temp];
839 codebook *stagebook=look->partbooks[partword[l][k]][s];