Lines Matching refs:vr
1344 vorbis_residue *vr,
1351 vorbis_codebook *codebook = vc->codebooks + vr->classbook;
1354 unsigned inverse_class = ff_inverse[vr->classifications];
1371 if (vr->classifications == 1) {
1374 vr->classifs[p + i] = 0;
1381 vr->classifs[p + i] = temp - temp2 * vr->classifications;
1393 vorbis_residue *vr,
1402 unsigned c_p_c = vc->codebooks[vr->classbook].dimensions;
1403 uint8_t *classifs = vr->classifs;
1406 int ptns_to_read = vr->ptns_to_read;
1415 max_output += vr->end / ch;
1418 max_output += vr->end;
1422 if (max_output <= ch_left * vlen + vr->partition_size*ch_used/ch) {
1433 for (pass = 0; pass <= vr->maxpass; ++pass) { // FIXME OPTIMIZE?
1436 voffset = vr->begin;
1439 int ret = setup_classifs(vc, vr, do_not_decode, ch_used, partition_count, ptns_to_read);
1449 int vqbook = vr->books[vqclass][pass];
1454 unsigned step = FASTDIV(vr->partition_size << 1, dim << 1);
1552 voffset += vr->partition_size;
1558 get_vlc2(&vc->gb, vc->codebooks[vr->classbook].vlc.table,
1559 vc->codebooks[vr->classbook].nb_bits, 3);
1567 static inline int vorbis_residue_decode(vorbis_context *vc, vorbis_residue *vr,
1573 if (vr->type == 2)
1574 return vorbis_residue_decode_internal(vc, vr, ch, do_not_decode, vec, vlen, ch_left, 2);
1575 else if (vr->type == 1)
1576 return vorbis_residue_decode_internal(vc, vr, ch, do_not_decode, vec, vlen, ch_left, 1);
1577 else if (vr->type == 0)
1578 return vorbis_residue_decode_internal(vc, vr, ch, do_not_decode, vec, vlen, ch_left, 0);