Lines Matching refs:mapping_setup
754 vorbis_mapping *mapping_setup = &vc->mappings[i];
761 mapping_setup->submaps = get_bits(gb, 4) + 1;
763 mapping_setup->submaps = 1;
767 mapping_setup->coupling_steps = get_bits(gb, 8) + 1;
768 mapping_setup->magnitude = av_mallocz(mapping_setup->coupling_steps *
769 sizeof(*mapping_setup->magnitude));
770 mapping_setup->angle = av_mallocz(mapping_setup->coupling_steps *
771 sizeof(*mapping_setup->angle));
772 for (j = 0; j < mapping_setup->coupling_steps; ++j) {
773 GET_VALIDATED_INDEX(mapping_setup->magnitude[j], ilog(vc->audio_channels - 1), vc->audio_channels)
774 GET_VALIDATED_INDEX(mapping_setup->angle[j], ilog(vc->audio_channels - 1), vc->audio_channels)
777 mapping_setup->coupling_steps = 0;
781 i, mapping_setup->coupling_steps);
788 if (mapping_setup->submaps>1) {
789 mapping_setup->mux = av_mallocz(vc->audio_channels *
790 sizeof(*mapping_setup->mux));
792 mapping_setup->mux[j] = get_bits(gb, 4);
795 for (j = 0; j < mapping_setup->submaps; ++j) {
797 GET_VALIDATED_INDEX(mapping_setup->submap_floor[j], 8, vc->floor_count)
798 GET_VALIDATED_INDEX(mapping_setup->submap_residue[j], 8, vc->residue_count)
801 mapping_setup->submap_floor[j],
802 mapping_setup->submap_residue[j]);