ffmpeg/tests
Claudio Freire ca203e9985 AAC encoder: improve SF range utilization
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
2015-12-02 07:47:37 -03:00
..
api fate: add FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM tests 2015-11-26 17:05:54 +01:00
checkasm Add pixblockdsp checkasm tests 2015-11-07 18:46:55 -08:00
fate AAC encoder: improve SF range utilization 2015-12-02 07:47:37 -03:00
filtergraphs
ref Merge commit '823fa7004571cb8404ca5785f9fa6e85f0f9f3d3' 2015-11-29 16:00:54 +01:00
Makefile fate: add concat demuxer tests 2015-11-15 19:22:46 +01:00
audiogen.c
base64.c
copycooker.sh
extended.ffconcat fate: add concat demuxer tests 2015-11-15 19:22:46 +01:00
fate-run.sh fate-run: Fix indentation 2015-11-25 21:03:14 -08:00
fate-valgrind.supp
fate.sh
ffserver-regression.sh
ffserver.conf
ffserver.regression.ref
lavf-regression.sh
md5.sh
reference.pnm
regression-funcs.sh
rotozoom.c
simple1.ffconcat fate: add concat demuxer tests 2015-11-15 19:22:46 +01:00
simple2.ffconcat fate: add concat demuxer tests 2015-11-15 19:22:46 +01:00
test.ffmeta
tiny_psnr.c
tiny_ssim.c tests/tiny_ssim: replace #define by typedef 2015-11-20 08:25:23 -05:00
utils.c
videogen.c