diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-09-07 12:39:04 +0100 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-09-07 12:44:09 +0100 |
commit | b6cc8ec7ecc3bea2a84fe65fa278e22fbb26a48c (patch) | |
tree | 71f3803f41c53a5c7fee317d39101ff0f5a07832 /libavcodec/aacsbr_fixed_tablegen.c | |
parent | 0c511eb272e007b5998fa0b4741618274b78b4df (diff) | |
download | ffmpeg-b6cc8ec7ecc3bea2a84fe65fa278e22fbb26a48c.tar.gz |
aaccoder: add frequency scaling and quantization correction for PNS
This commit once again improves the PNS implementation by scaling the
thresholds with frequency. The thresholds get looser as the frequency
increases since higher frequencies are basically noise to human ears.
Also, this introduces quantization error correction for PNS. Should
the error be too much, no PNS will be used. The energy_ratio is used
to regulate the actual encoded PNS energy: if the generated PNS
energy is higher than the energy from the psy system, energy_ratio
is used to correct it so that hopefully once requantized and
transmitted the value in the decoder will be closer to what the
encoder has.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/aacsbr_fixed_tablegen.c')
0 files changed, 0 insertions, 0 deletions