[FFmpeg-devel] [PATCH] swscale_unscaled: fix DITHER_COPY macro, use it only for dst_depth == 8

Hendrik Leppkes h.leppkes at gmail.com
Wed Sep 27 13:39:49 EEST 2017


On Wed, Sep 27, 2017 at 12:04 PM, Mateusz <mateuszb at poczta.onet.pl> wrote:
>
> OK, so this fight with possible overflow is even more needed.
>

Luckily x86 SIMD has saturating instructions which don't overflow, so
if we device a way to properly optimize this in yasm/nasm assembly,
then this should be pretty simple to do.

- Hendrik


More information about the ffmpeg-devel mailing list