• Steinar H. Gunderson's avatar
    speedhq: fix decoding artifacts · e3c14eaa
    Steinar H. Gunderson authored
    The quantization table is stored in the natural order, but when we
    access it, we use an index that's in zigzag order, causing us to read
    the wrong value. This causes artifacts, especially in areas with
    horizontal or vertical edges. The artifacts look a lot like the
    DCT ringing artifacts you'd expect to see from a low-bitrate file,
    but when comparing to NewTek's own decoder, it's obvious they're not
    supposed to be there.
    
    Fix by simply storing the scaled quantization table in zigzag order.
    Performance is unchanged.
    Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
    Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    e3c14eaa
speedhq.c 23 KB