Lines Matching refs:mapping_setup
772 vorbis_mapping *mapping_setup = &vc->mappings[i];
779 mapping_setup->submaps = get_bits(gb, 4) + 1;
781 mapping_setup->submaps = 1;
785 mapping_setup->coupling_steps = get_bits(gb, 8) + 1;
786 mapping_setup->magnitude = av_mallocz(mapping_setup->coupling_steps *
787 sizeof(*mapping_setup->magnitude));
788 mapping_setup->angle = av_mallocz(mapping_setup->coupling_steps *
789 sizeof(*mapping_setup->angle));
790 if (!mapping_setup->angle || !mapping_setup->magnitude)
793 for (j = 0; j < mapping_setup->coupling_steps; ++j) {
794 GET_VALIDATED_INDEX(mapping_setup->magnitude[j], ilog(vc->audio_channels - 1), vc->audio_channels)
795 GET_VALIDATED_INDEX(mapping_setup->angle[j], ilog(vc->audio_channels - 1), vc->audio_channels)
798 mapping_setup->coupling_steps = 0;
802 i, mapping_setup->coupling_steps);
809 if (mapping_setup->submaps>1) {
810 mapping_setup->mux = av_mallocz_array(vc->audio_channels,
811 sizeof(*mapping_setup->mux));
812 if (!mapping_setup->mux)
816 mapping_setup->mux[j] = get_bits(gb, 4);
819 for (j = 0; j < mapping_setup->submaps; ++j) {
821 GET_VALIDATED_INDEX(mapping_setup->submap_floor[j], 8, vc->floor_count)
822 GET_VALIDATED_INDEX(mapping_setup->submap_residue[j], 8, vc->residue_count)
825 mapping_setup->submap_floor[j],
826 mapping_setup->submap_residue[j]);