]> git.sesse.net Git - ffmpeg/commit
diracdec: rewrite HQ slice decoding
authorRostislav Pehlivanov <rpehlivanov@ob-encoder.com>
Thu, 23 Jun 2016 17:07:00 +0000 (18:07 +0100)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Mon, 11 Jul 2016 22:38:45 +0000 (23:38 +0100)
commitc43485f70765cb488bfdf95dc783bb9b14eb1179
tree329688ba1391b0030a8b8825b9f59626eebc7daa
parent09d89d940635e34b0f61266d66fbb9802b18564c
diracdec: rewrite HQ slice decoding

Now coefficients are written to a buffer and are then dequantized by the
new SIMD dequantization functions. For the lower bands without enough
coefficients to fill a register (and hence they overwrite) the C version
of the dequantization function is used.

The buffer is per-thread and will be realloc'd if anything changes.
This prevents regressions and having to limit slice size.

Signed-off-by: Rostislav Pehlivanov <rpehlivanov@obe.tv>
libavcodec/diracdec.c