Lines Matching defs:vr
1288 vorbis_residue *vr,
1297 unsigned c_p_c = vc->codebooks[vr->classbook].dimensions;
1298 unsigned ptns_to_read = vr->ptns_to_read;
1299 uint8_t *classifs = vr->classifs;
1309 max_output += vr->end / ch;
1312 max_output += vr->end;
1322 for (pass = 0; pass <= vr->maxpass; ++pass) { // FIXME OPTIMIZE?
1325 voffset = vr->begin;
1328 unsigned inverse_class = ff_inverse[vr->classifications];
1331 unsigned temp = get_vlc2(gb, vc->codebooks[vr->classbook].vlc.table,
1332 vc->codebooks[vr->classbook].nb_bits, 3);
1336 assert(vr->classifications > 1 && temp <= 65536); //needed for inverse[]
1342 classifs[j_times_ptns_to_read + partition_count + c_p_c - 1 - i] = temp - temp2 * vr->classifications;
1355 int vqbook = vr->books[vqclass][pass];
1360 unsigned step = dim == 1 ? vr->partition_size
1361 : FASTDIV(vr->partition_size, dim);
1434 voffset += vr->partition_size;
1441 static inline int vorbis_residue_decode(vorbis_context *vc, vorbis_residue *vr,
1447 if (vr->type == 2)
1448 return vorbis_residue_decode_internal(vc, vr, ch, do_not_decode, vec, vlen, ch_left, 2);
1449 else if (vr->type == 1)
1450 return vorbis_residue_decode_internal(vc, vr, ch, do_not_decode, vec, vlen, ch_left, 1);
1451 else if (vr->type == 0)
1452 return vorbis_residue_decode_internal(vc, vr, ch, do_not_decode, vec, vlen, ch_left, 0);