Skip to content
Snippets Groups Projects
aaccoder.c 40 KiB
Newer Older
  • Learn to ignore specific revisions
  •                                                 lambda / band0->threshold, INFINITY, NULL);
                        dist1 += quantize_band_cost(s, sce1->coeffs + start + w2*128,
                                                    R34,
                                                    sce1->ics.swb_sizes[g],
                                                    sce1->sf_idx[(w+w2)*16+g],
                                                    sce1->band_type[(w+w2)*16+g],
                                                    lambda / band1->threshold, INFINITY, NULL);
                        dist2 += quantize_band_cost(s, M,
                                                    M34,
                                                    sce0->ics.swb_sizes[g],
                                                    sce0->sf_idx[(w+w2)*16+g],
                                                    sce0->band_type[(w+w2)*16+g],
                                                    lambda / maxthr, INFINITY, NULL);
                        dist2 += quantize_band_cost(s, S,
                                                    S34,
                                                    sce1->ics.swb_sizes[g],
                                                    sce1->sf_idx[(w+w2)*16+g],
                                                    sce1->band_type[(w+w2)*16+g],
                                                    lambda / minthr, INFINITY, NULL);
                    }
                    cpe->ms_mask[w*16+g] = dist2 < dist1;
                }
                start += sce0->ics.swb_sizes[g];
            }
        }
    }
    
    AACCoefficientsEncoder ff_aac_coders[] = {
        {
            search_for_quantizers_faac,
    
    Alex Converse's avatar
    Alex Converse committed
            encode_window_bands_info,
    
        },
        {
            search_for_quantizers_anmr,
            encode_window_bands_info,
            quantize_and_encode_band,
    
        },
        {
            search_for_quantizers_fast,
            encode_window_bands_info,
            quantize_and_encode_band,