Lines Matching defs:res
188 int i, j, k, ch, cnt, res, t;
200 if ((res = init_get_bits8(gb, buf, buf_size)) < 0)
201 return res;
230 bands[i].res[ch] = last[ch];
238 if(bands[i].res[0] || bands[i].res[1])
243 if(bands[i].res[0] || bands[i].res[1]){
250 bands[i].res[0] = bands[i].res[1] = 0;
258 if(bands[i].res[0] || bands[i].res[1]){
259 cnt = !!bands[i].res[0] + !!bands[i].res[1] - 1;
262 if(bands[i].res[0]) bands[i].scfi[0] = t >> (2 * cnt);
263 if(bands[i].res[1]) bands[i].scfi[1] = t & 3;
270 if(!bands[i].res[ch]) continue;
296 res = bands[i].res[ch];
297 switch(res){
314 cnt = 6;//2*mpc8_thres[res]
326 t = get_vlc2(gb, q3_vlc[res - 3].table, MPC8_Q3_BITS, 2);
335 cnt = 2 * mpc8_thres[res];
337 const VLC *vlc = &quant_vlc[res - 5][cnt > mpc8_thres[res]];
345 if(res != 9){
346 c->Q[ch][off + j] <<= res - 9;
347 c->Q[ch][off + j] |= get_bits(gb, res - 9);
349 c->Q[ch][off + j] -= (1 << (res - 2)) - 1;
356 if ((res = ff_get_buffer(avctx, frame, 0)) < 0)
357 return res;