• Claudio Freire's avatar
    AAC encoder: improve SF range utilization · ca203e99
    Claudio Freire authored
    This patch does 4 things, all of which interact and thus it
    woudln't be possible to commit them separately without causing
    either quality regressions or assertion failures.
    
    Fate comparison targets don't all reflect improvements in
    quality, yet listening tests show substantially improved quality
    and stability.
    
    1. Increase SF range utilization.
    
    The spec requires SF delta values to be constrained within the
    range -60..60. The previous code was applying that range to
    the whole SF array and not only the deltas of consecutive values,
    because doing so requires smarter code: zeroing or otherwise
    skipping a band may invalidate lots of SF choices.
    
    This patch implements that logic to allow the coders to utilize
    the full dynamic range of scalefactors, increasing quality quite
    considerably, and fixing delta-SF-related assertion failures,
    since now the limitation is enforced rather than asserted.
    
    2. PNS tweaks
    
    The previous modification makes big improvements in twoloop's
    efficiency, and every time that happens PNS logic needs to be
    tweaked accordingly to avoid it from stepping all over twoloop's
    decisions. This patch includes modifications of the sort.
    
    3. Account for lowpass cutoff during PSY analysis
    
    The closer PSY's allocation is to final allocation the better
    the quality is, and given these modifications, twoloop is now
    very efficient at avoiding holes. Thus, to compute accurate
    thresholds, PSY needs to account for the lowpass applied
    implicitly during twoloop (by zeroing high bands).
    
    This patch makes twoloop set the cutoff in psymodel's context
    the first time it runs, and makes PSY account for it during
    threshold computation, making PE and threshold computations
    closer to the final allocation and thus achieving better
    subjective quality.
    
    4. Tweaks to RC lambda tracking loop in relation to PNS
    
    Without this tweak some corner cases cause quality regressions.
    Basically, lambda needs to react faster to overall bitrate
    efficiency changes since now PNS can be quite successful in
    enforcing maximum bitrates, when PSY allocates too many bits
    to the lower bands, suppressing the signals RC logic uses to
    lower lambda in those cases and causing aggressive PNS.
    
    This tweak makes PNS much less aggressive, though it can still
    use some further tweaks.
    
    Also update MIPS specializations and adjust fuzz
    
    Also in lavc/mips/aacpsy_mips.h: remove trailing whitespace
    ca203e99
Name
Last commit
Last update
..
Makefile Loading commit data...
aaccoder_mips.c Loading commit data...
aacdec_mips.c Loading commit data...
aacdec_mips.h Loading commit data...
aacpsdsp_mips.c Loading commit data...
aacpsy_mips.h Loading commit data...
aacsbr_mips.c Loading commit data...
aacsbr_mips.h Loading commit data...
ac3dsp_mips.c Loading commit data...
acelp_filters_mips.c Loading commit data...
acelp_vectors_mips.c Loading commit data...
amrwbdec_mips.c Loading commit data...
amrwbdec_mips.h Loading commit data...
blockdsp_init_mips.c Loading commit data...
blockdsp_mips.h Loading commit data...
blockdsp_mmi.c Loading commit data...
blockdsp_msa.c Loading commit data...
celp_filters_mips.c Loading commit data...
celp_math_mips.c Loading commit data...
compute_antialias_fixed.h Loading commit data...
compute_antialias_float.h Loading commit data...
constants.c Loading commit data...
constants.h Loading commit data...
fft_mips.c Loading commit data...
fmtconvert_mips.c Loading commit data...
h263dsp_init_mips.c Loading commit data...
h263dsp_mips.h Loading commit data...
h263dsp_msa.c Loading commit data...
h264chroma_init_mips.c Loading commit data...
h264chroma_mips.h Loading commit data...
h264chroma_mmi.c Loading commit data...
h264chroma_msa.c Loading commit data...
h264dsp_init_mips.c Loading commit data...
h264dsp_mips.h Loading commit data...
h264dsp_mmi.c Loading commit data...
h264dsp_msa.c Loading commit data...
h264idct_msa.c Loading commit data...
h264pred_init_mips.c Loading commit data...
h264pred_mips.h Loading commit data...
h264pred_mmi.c Loading commit data...
h264pred_msa.c Loading commit data...
h264qpel_init_mips.c Loading commit data...
h264qpel_mmi.c Loading commit data...
h264qpel_msa.c Loading commit data...
hevc_idct_msa.c Loading commit data...
hevc_lpf_sao_msa.c Loading commit data...
hevc_macros_msa.h Loading commit data...
hevc_mc_bi_msa.c Loading commit data...
hevc_mc_biw_msa.c Loading commit data...
hevc_mc_uni_msa.c Loading commit data...
hevc_mc_uniw_msa.c Loading commit data...
hevcdsp_init_mips.c Loading commit data...
hevcdsp_mips.h Loading commit data...
hevcdsp_msa.c Loading commit data...
hevcpred_init_mips.c Loading commit data...
hevcpred_mips.h Loading commit data...
hevcpred_msa.c Loading commit data...
hpeldsp_init_mips.c Loading commit data...
hpeldsp_mips.h Loading commit data...
hpeldsp_msa.c Loading commit data...
idctdsp_init_mips.c Loading commit data...
idctdsp_mips.h Loading commit data...
idctdsp_mmi.c Loading commit data...
idctdsp_msa.c Loading commit data...
iirfilter_mips.c Loading commit data...
lsp_mips.h Loading commit data...
mathops.h Loading commit data...
me_cmp_init_mips.c Loading commit data...
me_cmp_mips.h Loading commit data...
me_cmp_msa.c Loading commit data...
mpegaudiodsp_mips_fixed.c Loading commit data...
mpegaudiodsp_mips_float.c Loading commit data...
mpegvideo_init_mips.c Loading commit data...
mpegvideo_mips.h Loading commit data...
mpegvideo_mmi.c Loading commit data...
mpegvideo_msa.c Loading commit data...
mpegvideoencdsp_init_mips.c Loading commit data...
mpegvideoencdsp_msa.c Loading commit data...
pixblockdsp_init_mips.c Loading commit data...
pixblockdsp_mips.h Loading commit data...
pixblockdsp_mmi.c Loading commit data...
pixblockdsp_msa.c Loading commit data...
qpeldsp_init_mips.c Loading commit data...
qpeldsp_mips.h Loading commit data...
qpeldsp_msa.c Loading commit data...
sbrdsp_mips.c Loading commit data...
simple_idct_mmi.c Loading commit data...
simple_idct_msa.c Loading commit data...
vp8_idct_msa.c Loading commit data...
vp8_lpf_msa.c Loading commit data...
vp8_mc_msa.c Loading commit data...
vp8dsp_init_mips.c Loading commit data...
vp8dsp_mips.h Loading commit data...
vp9_idct_msa.c Loading commit data...
vp9_intra_msa.c Loading commit data...
vp9_lpf_msa.c Loading commit data...
vp9_mc_msa.c Loading commit data...
vp9dsp_init_mips.c Loading commit data...
vp9dsp_mips.h Loading commit data...
xvid_idct_mmi.c Loading commit data...
xvididct_init_mips.c Loading commit data...
xvididct_mips.h Loading commit data...