Lines Matching refs:res_setup
702 vorbis_residue *res_setup = &vc->residues[i]; in vorbis_parse_setup_hdr_residues() local
706 res_setup->type = get_bits(gb, 16); in vorbis_parse_setup_hdr_residues()
708 ff_dlog(NULL, " %u. residue type %d\n", i, res_setup->type); in vorbis_parse_setup_hdr_residues()
710 res_setup->begin = get_bits(gb, 24); in vorbis_parse_setup_hdr_residues()
711 res_setup->end = get_bits(gb, 24); in vorbis_parse_setup_hdr_residues()
712 res_setup->partition_size = get_bits(gb, 24) + 1; in vorbis_parse_setup_hdr_residues()
714 if (res_setup->begin>res_setup->end || in vorbis_parse_setup_hdr_residues()
715 … (res_setup->end-res_setup->begin) / res_setup->partition_size > FFMIN(V_MAX_PARTITIONS, 65535)) { in vorbis_parse_setup_hdr_residues()
718 res_setup->type, res_setup->begin, res_setup->end, in vorbis_parse_setup_hdr_residues()
719 res_setup->partition_size, vc->blocksize[1] / 2); in vorbis_parse_setup_hdr_residues()
723 res_setup->classifications = get_bits(gb, 6) + 1; in vorbis_parse_setup_hdr_residues()
724 GET_VALIDATED_INDEX(res_setup->classbook, 8, vc->codebook_count) in vorbis_parse_setup_hdr_residues()
726 res_setup->ptns_to_read = in vorbis_parse_setup_hdr_residues()
727 (res_setup->end - res_setup->begin) / res_setup->partition_size; in vorbis_parse_setup_hdr_residues()
728 res_setup->classifs = av_malloc_array(res_setup->ptns_to_read, in vorbis_parse_setup_hdr_residues()
730 sizeof(*res_setup->classifs)); in vorbis_parse_setup_hdr_residues()
731 if (!res_setup->classifs) in vorbis_parse_setup_hdr_residues()
735 res_setup->begin, res_setup->end, res_setup->partition_size, in vorbis_parse_setup_hdr_residues()
736 res_setup->classifications, res_setup->classbook); in vorbis_parse_setup_hdr_residues()
738 for (j = 0; j < res_setup->classifications; ++j) { in vorbis_parse_setup_hdr_residues()
748 res_setup->maxpass = 0; in vorbis_parse_setup_hdr_residues()
749 for (j = 0; j < res_setup->classifications; ++j) { in vorbis_parse_setup_hdr_residues()
752 GET_VALIDATED_INDEX(res_setup->books[j][k], 8, vc->codebook_count) in vorbis_parse_setup_hdr_residues()
755 j, k, res_setup->books[j][k]); in vorbis_parse_setup_hdr_residues()
757 if (k>res_setup->maxpass) in vorbis_parse_setup_hdr_residues()
758 res_setup->maxpass = k; in vorbis_parse_setup_hdr_residues()
760 res_setup->books[j][k] = -1; in vorbis_parse_setup_hdr_residues()