diracdec: rewrite HQ slice decoding

Multimedia / FFmpeg - Rostislav Pehlivanov [ob-encoder.com] - 11 July 2016 17:38 UTC

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.

c43485f diracdec: rewrite HQ slice decoding
libavcodec/diracdec.c | 126 +++++++++++++++++++++++++++++++++++++++++++------
1 file changed, 111 insertions(+), 15 deletions(-)

  • Share