diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2016-02-26 14:47:06 +0000 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2016-02-26 14:47:06 +0000 |
commit | 2b811e4605ebd570c647f8a4ed0e021b64fc4208 (patch) | |
tree | c0bf96455cb6a9471d9b328764ae0e53504bf938 /libavcodec/vc2enc_dwt.h | |
parent | 7db2e757c5944c8a6a4a947b88a84ec2d7a52dd6 (diff) | |
download | ffmpeg-2b811e4605ebd570c647f8a4ed0e021b64fc4208.tar.gz |
vc2enc: halve allocated table size, refactor and optimize quantization
Since coefficients differ only in the last bit when writing to the
bitstream it was possible to remove the sign from the tables, thus
halving them. Also now all quantization is done in the unsigned domain
as the sign is completely separate, which gets rid of the need to do
quantization on 32 bit signed integers.
Overall, this slightly speeds up the encoder depending on the machine.
The commit still generates bit-identical files as before the commit.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/vc2enc_dwt.h')
-rw-r--r-- | libavcodec/vc2enc_dwt.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/vc2enc_dwt.h b/libavcodec/vc2enc_dwt.h index 8e1b61498e..a39a1cd4bb 100644 --- a/libavcodec/vc2enc_dwt.h +++ b/libavcodec/vc2enc_dwt.h @@ -26,7 +26,6 @@ #include <stdint.h> typedef int16_t dwtcoef; -typedef int32_t qcoef; /* Quantization needs more precision */ /* Only Deslauriers-Dubuc (9,7) and LeGall (5,3) supported! */ |