Lines Matching defs:res_setup
707 vorbis_residue *res_setup = &vc->residues[i];
711 res_setup->type = get_bits(gb, 16);
713 ff_dlog(NULL, " %u. residue type %d\n", i, res_setup->type);
715 res_setup->begin = get_bits(gb, 24);
716 res_setup->end = get_bits(gb, 24);
717 res_setup->partition_size = get_bits(gb, 24) + 1;
719 if (res_setup->begin>res_setup->end ||
720 (res_setup->end-res_setup->begin) / res_setup->partition_size > FFMIN(V_MAX_PARTITIONS, 65535)) {
723 res_setup->type, res_setup->begin, res_setup->end,
724 res_setup->partition_size, vc->blocksize[1] / 2);
728 res_setup->classifications = get_bits(gb, 6) + 1;
729 GET_VALIDATED_INDEX(res_setup->classbook, 8, vc->codebook_count)
731 res_setup->ptns_to_read =
732 (res_setup->end - res_setup->begin) / res_setup->partition_size;
733 res_setup->classifs = av_malloc_array(res_setup->ptns_to_read,
735 sizeof(*res_setup->classifs));
736 if (!res_setup->classifs)
740 res_setup->begin, res_setup->end, res_setup->partition_size,
741 res_setup->classifications, res_setup->classbook);
743 for (j = 0; j < res_setup->classifications; ++j) {
753 res_setup->maxpass = 0;
754 for (j = 0; j < res_setup->classifications; ++j) {
757 GET_VALIDATED_INDEX(res_setup->books[j][k], 8, vc->codebook_count)
760 j, k, res_setup->books[j][k]);
762 if (k>res_setup->maxpass)
763 res_setup->maxpass = k;
765 res_setup->books[j][k] = -1;