Lines Matching refs:choice
83 int choice=rint(bm->avgfloat);
84 long this_bits=oggpack_bytes(vbi->packetblob[choice])*8;
119 while(choice>0 && this_bits>avg_target_bits &&
121 choice--;
122 this_bits=oggpack_bytes(vbi->packetblob[choice])*8;
125 while(choice+1<PACKETBLOBS && this_bits<avg_target_bits &&
127 choice++;
128 this_bits=oggpack_bytes(vbi->packetblob[choice])*8;
132 slew=rint(choice-bm->avgfloat)/samples*vi->rate;
135 choice=rint(bm->avgfloat+= slew/vi->rate*samples);
136 this_bits=oggpack_bytes(vbi->packetblob[choice])*8;
146 choice++;
147 if(choice>=PACKETBLOBS)break;
148 this_bits=oggpack_bytes(vbi->packetblob[choice])*8;
158 choice--;
159 if(choice<0)break;
160 this_bits=oggpack_bytes(vbi->packetblob[choice])*8;
165 /* Choice of packetblobs now made based on floater, and min/max
168 if(choice<0){
172 bm->choice=choice=0;
174 if(oggpack_bytes(vbi->packetblob[choice])>maxsize){
176 oggpack_writetrunc(vbi->packetblob[choice],maxsize*8);
177 this_bits=oggpack_bytes(vbi->packetblob[choice])*8;
181 if(choice>=PACKETBLOBS)
182 choice=PACKETBLOBS-1;
184 bm->choice=choice;
187 minsize-=oggpack_bytes(vbi->packetblob[choice]);
188 while(minsize-->0)oggpack_write(vbi->packetblob[choice],0,8);
189 this_bits=oggpack_bytes(vbi->packetblob[choice])*8;
234 int choice=PACKETBLOBS/2;
241 choice=bm->choice;
243 op->packet=oggpack_get_buffer(vbi->packetblob[choice]);
244 op->bytes=oggpack_bytes(vbi->packetblob[choice]);