Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] swscale/options: use accurate rounding and full chroma by default
@ 2025-06-08 23:52 rcombs via ffmpeg-devel
  2025-06-09 12:17 ` Michael Niedermayer
  0 siblings, 1 reply; 5+ messages in thread
From: rcombs via ffmpeg-devel @ 2025-06-08 23:52 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: rcombs

[-- Attachment #1: Type: message/rfc822, Size: 302316 bytes --]

From: rcombs <rcombs@rcombs.me>
To: ffmpeg-devel@ffmpeg.org
Subject: [PATCH] swscale/options: use accurate rounding and full chroma by default
Date: Sun,  8 Jun 2025 16:52:35 -0700
Message-ID: <20250608235236.13672-1-rcombs@rcombs.me>

This has been causing quality degradation for people since the dawn of sws,
and the performance concerns that originally led to this default have been
soundly defeated by the march of time.
---
 doc/APIchanges                                |   3 +
 libswscale/options.c                          |   4 +-
 libswscale/version.h                          |   2 +-
 tests/ref/fate/copy-apng                      |  54 +++---
 tests/ref/fate/cover-art-aiff-id3v2-remux     |   8 +-
 tests/ref/fate/ffmpeg-filter_colorkey         |  20 +-
 .../fate/filter-alphaextract_alphamerge_rgb   | 100 +++++-----
 tests/ref/fate/filter-colorbalance            |   6 +-
 tests/ref/fate/filter-colorbalance-rgba64     |   6 +-
 tests/ref/fate/filter-colorchannelmixer       | 100 +++++-----
 tests/ref/fate/filter-colorlevels             | 100 +++++-----
 tests/ref/fate/filter-colorlevels-16          | 100 +++++-----
 tests/ref/fate/filter-lavd-scalenorm          |  20 +-
 tests/ref/fate/filter-overlay-dvdsub-2397     | 176 +++++++++---------
 tests/ref/fate/filter-overlay_rgb             | 100 +++++-----
 tests/ref/fate/filter-overlay_yuv420_yuva420  |   2 +-
 tests/ref/fate/filter-overlay_yuv422_yuva422  |   2 +-
 tests/ref/fate/filter-overlay_yuva420_yuva420 |   2 +-
 tests/ref/fate/filter-overlay_yuva422_yuva422 |   2 +-
 tests/ref/fate/filter-pixdesc-0bgr            |   2 +-
 tests/ref/fate/filter-pixdesc-0rgb            |   2 +-
 tests/ref/fate/filter-pixdesc-abgr            |   2 +-
 tests/ref/fate/filter-pixdesc-argb            |   2 +-
 tests/ref/fate/filter-pixdesc-bgr0            |   2 +-
 tests/ref/fate/filter-pixdesc-bgr24           |   2 +-
 tests/ref/fate/filter-pixdesc-bgr48be         |   2 +-
 tests/ref/fate/filter-pixdesc-bgr48le         |   2 +-
 tests/ref/fate/filter-pixdesc-bgr4_byte       |   2 +-
 tests/ref/fate/filter-pixdesc-bgr8            |   2 +-
 tests/ref/fate/filter-pixdesc-bgra            |   2 +-
 tests/ref/fate/filter-pixdesc-bgra64be        |   2 +-
 tests/ref/fate/filter-pixdesc-bgra64le        |   2 +-
 tests/ref/fate/filter-pixdesc-rgb0            |   2 +-
 tests/ref/fate/filter-pixdesc-rgb24           |   2 +-
 tests/ref/fate/filter-pixdesc-rgb48be         |   2 +-
 tests/ref/fate/filter-pixdesc-rgb48le         |   2 +-
 tests/ref/fate/filter-pixdesc-rgb4_byte       |   2 +-
 tests/ref/fate/filter-pixdesc-rgb8            |   2 +-
 tests/ref/fate/filter-pixdesc-rgba            |   2 +-
 tests/ref/fate/filter-pixdesc-rgba64be        |   2 +-
 tests/ref/fate/filter-pixdesc-rgba64le        |   2 +-
 tests/ref/fate/filter-pixdesc-x2bgr10le       |   2 +-
 tests/ref/fate/filter-pixdesc-x2rgb10le       |   2 +-
 tests/ref/fate/filter-pixdesc-xyz12be         |   2 +-
 tests/ref/fate/filter-pixdesc-xyz12le         |   2 +-
 tests/ref/fate/filter-pixfmts-copy            |  54 +++---
 tests/ref/fate/filter-pixfmts-crop            |  54 +++---
 tests/ref/fate/filter-pixfmts-field           |  54 +++---
 tests/ref/fate/filter-pixfmts-fieldorder      |  52 +++---
 tests/ref/fate/filter-pixfmts-hflip           |  54 +++---
 tests/ref/fate/filter-pixfmts-il              |  52 +++---
 tests/ref/fate/filter-pixfmts-kerndeint       |  16 +-
 tests/ref/fate/filter-pixfmts-lut             |  16 +-
 tests/ref/fate/filter-pixfmts-null            |  54 +++---
 tests/ref/fate/filter-pixfmts-pad             |  24 +--
 tests/ref/fate/filter-pixfmts-rotate          |  20 +-
 tests/ref/fate/filter-pixfmts-scale           |  78 ++++----
 tests/ref/fate/filter-pixfmts-super2xsai      |  12 +-
 tests/ref/fate/filter-pixfmts-transpose       |  52 +++---
 tests/ref/fate/filter-pixfmts-vflip           |  54 +++---
 tests/ref/fate/filter-scale2ref_keep_aspect   |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-agmc      |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-agmd      |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-agmg      |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-agmh      |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-arbg      |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-arcc      |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-arcd      |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-arcg      |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-arch      |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-argg      |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-aybc      |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-aybd      |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-aybg      |  10 +-
 tests/ref/fate/filter-stereo3d-sbsl-aybh      |  10 +-
 tests/ref/fate/flv-add_keyframe_index         |  12 +-
 tests/ref/fate/png-mdcv                       |   6 +-
 tests/ref/fate/sub2video                      | 132 ++++++-------
 tests/ref/fate/sws-yuv-colorspace             |   2 +-
 tests/ref/lavf/apng                           |   6 +-
 tests/ref/lavf/apng.png                       |   6 +-
 tests/ref/lavf/bmp                            |   4 +-
 tests/ref/lavf/dpx                            |   4 +-
 tests/ref/lavf/flm                            |   4 +-
 tests/ref/lavf/gif                            |   6 +-
 tests/ref/lavf/pam                            |   4 +-
 tests/ref/lavf/pcx                            |   6 +-
 tests/ref/lavf/png                            |   6 +-
 tests/ref/lavf/ppm                            |   4 +-
 tests/ref/lavf/ppmpipe                        |   4 +-
 tests/ref/lavf/qoi                            |   6 +-
 tests/ref/lavf/qoipipe                        |   6 +-
 tests/ref/lavf/rgb48be.pam                    |   4 +-
 tests/ref/lavf/rgb48be.png                    |   6 +-
 tests/ref/lavf/rgb48le.dpx                    |   4 +-
 tests/ref/lavf/rgb48le_10.dpx                 |   4 +-
 tests/ref/lavf/rgb4_byte.xwd                  |   4 +-
 tests/ref/lavf/rgb8.xwd                       |   4 +-
 tests/ref/lavf/rgba.pam                       |   4 +-
 tests/ref/lavf/rgba.xwd                       |   4 +-
 tests/ref/lavf/rgba64le.dpx                   |   4 +-
 tests/ref/lavf/sgi                            |   6 +-
 tests/ref/lavf/sun                            |   6 +-
 tests/ref/lavf/tga                            |   4 +-
 tests/ref/lavf/tiff                           |   6 +-
 tests/ref/lavf/xwd                            |   4 +-
 tests/ref/lavf/xwdpipe                        |   4 +-
 tests/ref/pixfmt/bgr24                        |   2 +-
 tests/ref/pixfmt/gbrp-nv12                    |   2 +-
 tests/ref/pixfmt/gbrp-nv16                    |   2 +-
 tests/ref/pixfmt/gbrp-p010be                  |   2 +-
 tests/ref/pixfmt/gbrp-p010le                  |   2 +-
 tests/ref/pixfmt/gbrp-p012be                  |   2 +-
 tests/ref/pixfmt/gbrp-p012le                  |   2 +-
 tests/ref/pixfmt/gbrp-p016be                  |   2 +-
 tests/ref/pixfmt/gbrp-p016le                  |   2 +-
 tests/ref/pixfmt/gbrp-p210be                  |   2 +-
 tests/ref/pixfmt/gbrp-p210le                  |   2 +-
 tests/ref/pixfmt/gbrp-rgb555                  |   2 +-
 tests/ref/pixfmt/gbrp-rgb565                  |   2 +-
 tests/ref/pixfmt/gbrp-uyvy422                 |   2 +-
 tests/ref/pixfmt/gbrp-y210le                  |   2 +-
 tests/ref/pixfmt/gbrp-yuv410p                 |   2 +-
 tests/ref/pixfmt/gbrp-yuv411p                 |   2 +-
 tests/ref/pixfmt/gbrp-yuv420p                 |   2 +-
 tests/ref/pixfmt/gbrp-yuv420p10be             |   2 +-
 tests/ref/pixfmt/gbrp-yuv420p10le             |   2 +-
 tests/ref/pixfmt/gbrp-yuv420p12be             |   2 +-
 tests/ref/pixfmt/gbrp-yuv420p12le             |   2 +-
 tests/ref/pixfmt/gbrp-yuv420p16be             |   2 +-
 tests/ref/pixfmt/gbrp-yuv420p16le             |   2 +-
 tests/ref/pixfmt/gbrp-yuv422p                 |   2 +-
 tests/ref/pixfmt/gbrp-yuv422p10be             |   2 +-
 tests/ref/pixfmt/gbrp-yuv422p10le             |   2 +-
 tests/ref/pixfmt/gbrp-yuvj420p                |   2 +-
 tests/ref/pixfmt/gbrp-yuvj422p                |   2 +-
 tests/ref/pixfmt/gbrp-yuyv422                 |   2 +-
 tests/ref/pixfmt/gbrp-yvyu422                 |   2 +-
 tests/ref/pixfmt/rgb24                        |   2 +-
 tests/ref/pixfmt/rgb24-nv12                   |   2 +-
 tests/ref/pixfmt/rgb24-nv16                   |   2 +-
 tests/ref/pixfmt/rgb24-p010be                 |   2 +-
 tests/ref/pixfmt/rgb24-p010le                 |   2 +-
 tests/ref/pixfmt/rgb24-p012be                 |   2 +-
 tests/ref/pixfmt/rgb24-p012le                 |   2 +-
 tests/ref/pixfmt/rgb24-p016be                 |   2 +-
 tests/ref/pixfmt/rgb24-p016le                 |   2 +-
 tests/ref/pixfmt/rgb24-p210be                 |   2 +-
 tests/ref/pixfmt/rgb24-p210le                 |   2 +-
 tests/ref/pixfmt/rgb24-p212be                 |   2 +-
 tests/ref/pixfmt/rgb24-p212le                 |   2 +-
 tests/ref/pixfmt/rgb24-p216be                 |   2 +-
 tests/ref/pixfmt/rgb24-p216le                 |   2 +-
 tests/ref/pixfmt/rgb24-rgb555                 |   2 +-
 tests/ref/pixfmt/rgb24-rgb565                 |   2 +-
 tests/ref/pixfmt/rgb24-uyvy422                |   2 +-
 tests/ref/pixfmt/rgb24-y210le                 |   2 +-
 tests/ref/pixfmt/rgb24-y212le                 |   2 +-
 tests/ref/pixfmt/rgb24-y216le                 |   2 +-
 tests/ref/pixfmt/rgb24-yuv410p                |   2 +-
 tests/ref/pixfmt/rgb24-yuv411p                |   2 +-
 tests/ref/pixfmt/rgb24-yuv420p                |   2 +-
 tests/ref/pixfmt/rgb24-yuv420p10be            |   2 +-
 tests/ref/pixfmt/rgb24-yuv420p10le            |   2 +-
 tests/ref/pixfmt/rgb24-yuv420p12be            |   2 +-
 tests/ref/pixfmt/rgb24-yuv420p12le            |   2 +-
 tests/ref/pixfmt/rgb24-yuv420p16be            |   2 +-
 tests/ref/pixfmt/rgb24-yuv420p16le            |   2 +-
 tests/ref/pixfmt/rgb24-yuv422p                |   2 +-
 tests/ref/pixfmt/rgb24-yuv422p10be            |   2 +-
 tests/ref/pixfmt/rgb24-yuv422p10le            |   2 +-
 tests/ref/pixfmt/rgb24-yuv422p12be            |   2 +-
 tests/ref/pixfmt/rgb24-yuv422p12le            |   2 +-
 tests/ref/pixfmt/rgb24-yuv422p16be            |   2 +-
 tests/ref/pixfmt/rgb24-yuv422p16le            |   2 +-
 tests/ref/pixfmt/rgb24-yuv440p                |   2 +-
 tests/ref/pixfmt/rgb24-yuv440p10be            |   2 +-
 tests/ref/pixfmt/rgb24-yuv440p10le            |   2 +-
 tests/ref/pixfmt/rgb24-yuv440p12be            |   2 +-
 tests/ref/pixfmt/rgb24-yuv440p12le            |   2 +-
 tests/ref/pixfmt/rgb24-yuvj420p               |   2 +-
 tests/ref/pixfmt/rgb24-yuvj422p               |   2 +-
 tests/ref/pixfmt/rgb24-yuvj440p               |   2 +-
 tests/ref/pixfmt/rgb24-yuyv422                |   2 +-
 tests/ref/pixfmt/rgb24-yvyu422                |   2 +-
 tests/ref/pixfmt/rgb32                        |   2 +-
 tests/ref/pixfmt/rgb48-nv12                   |   2 +-
 tests/ref/pixfmt/rgb48-nv16                   |   2 +-
 tests/ref/pixfmt/rgb48-p010be                 |   2 +-
 tests/ref/pixfmt/rgb48-p010le                 |   2 +-
 tests/ref/pixfmt/rgb48-p012be                 |   2 +-
 tests/ref/pixfmt/rgb48-p012le                 |   2 +-
 tests/ref/pixfmt/rgb48-p016be                 |   2 +-
 tests/ref/pixfmt/rgb48-p016le                 |   2 +-
 tests/ref/pixfmt/rgb48-p210be                 |   2 +-
 tests/ref/pixfmt/rgb48-p210le                 |   2 +-
 tests/ref/pixfmt/rgb48-p212be                 |   2 +-
 tests/ref/pixfmt/rgb48-p212le                 |   2 +-
 tests/ref/pixfmt/rgb48-p216be                 |   2 +-
 tests/ref/pixfmt/rgb48-p216le                 |   2 +-
 tests/ref/pixfmt/rgb48-uyvy422                |   2 +-
 tests/ref/pixfmt/rgb48-y210le                 |   2 +-
 tests/ref/pixfmt/rgb48-y212le                 |   2 +-
 tests/ref/pixfmt/rgb48-y216le                 |   2 +-
 tests/ref/pixfmt/rgb48-yuv410p                |   2 +-
 tests/ref/pixfmt/rgb48-yuv411p                |   2 +-
 tests/ref/pixfmt/rgb48-yuv420p                |   2 +-
 tests/ref/pixfmt/rgb48-yuv420p10be            |   2 +-
 tests/ref/pixfmt/rgb48-yuv420p10le            |   2 +-
 tests/ref/pixfmt/rgb48-yuv420p12be            |   2 +-
 tests/ref/pixfmt/rgb48-yuv420p12le            |   2 +-
 tests/ref/pixfmt/rgb48-yuv420p16be            |   2 +-
 tests/ref/pixfmt/rgb48-yuv420p16le            |   2 +-
 tests/ref/pixfmt/rgb48-yuv422p                |   2 +-
 tests/ref/pixfmt/rgb48-yuv422p10be            |   2 +-
 tests/ref/pixfmt/rgb48-yuv422p10le            |   2 +-
 tests/ref/pixfmt/rgb48-yuv422p12be            |   2 +-
 tests/ref/pixfmt/rgb48-yuv422p12le            |   2 +-
 tests/ref/pixfmt/rgb48-yuv422p16be            |   2 +-
 tests/ref/pixfmt/rgb48-yuv422p16le            |   2 +-
 tests/ref/pixfmt/rgb48-yuv440p                |   2 +-
 tests/ref/pixfmt/rgb48-yuv440p10be            |   2 +-
 tests/ref/pixfmt/rgb48-yuv440p10le            |   2 +-
 tests/ref/pixfmt/rgb48-yuv440p12be            |   2 +-
 tests/ref/pixfmt/rgb48-yuv440p12le            |   2 +-
 tests/ref/pixfmt/rgb48-yuvj420p               |   2 +-
 tests/ref/pixfmt/rgb48-yuvj422p               |   2 +-
 tests/ref/pixfmt/rgb48-yuvj440p               |   2 +-
 tests/ref/pixfmt/rgb48-yuyv422                |   2 +-
 tests/ref/pixfmt/rgb48-yvyu422                |   2 +-
 tests/ref/pixfmt/xyz12le                      |   2 +-
 tests/ref/seek/lavf-gif                       |  28 +--
 tests/ref/seek/lavf-pcx                       |   8 +-
 tests/ref/seek/lavf-sgi                       |   8 +-
 tests/ref/seek/lavf-tiff                      |   8 +-
 tests/ref/vsynth/vsynth1-bpp15                |   4 +-
 tests/ref/vsynth/vsynth1-cinepak              |   8 +-
 tests/ref/vsynth/vsynth1-jpeg2000             |   8 +-
 tests/ref/vsynth/vsynth1-jpeg2000-97          |   8 +-
 tests/ref/vsynth/vsynth1-jpeg2000-gbrp12      |   4 +-
 tests/ref/vsynth/vsynth1-mov-bgr24            |   6 +-
 tests/ref/vsynth/vsynth1-mov-bpp15            |   4 +-
 tests/ref/vsynth/vsynth1-mov-bpp16            |   4 +-
 tests/ref/vsynth/vsynth1-mpng                 |   8 +-
 tests/ref/vsynth/vsynth1-msrle                |   8 +-
 tests/ref/vsynth/vsynth1-msvideo1             |   4 +-
 tests/ref/vsynth/vsynth1-qtrle                |   8 +-
 tests/ref/vsynth/vsynth1-rgb                  |   6 +-
 tests/ref/vsynth/vsynth1-rpza                 |   4 +-
 tests/ref/vsynth/vsynth1-smc                  |   8 +-
 tests/ref/vsynth/vsynth1-zlib                 |   8 +-
 tests/ref/vsynth/vsynth2-bpp15                |   4 +-
 tests/ref/vsynth/vsynth2-cinepak              |   8 +-
 tests/ref/vsynth/vsynth2-jpeg2000             |   8 +-
 tests/ref/vsynth/vsynth2-jpeg2000-97          |   8 +-
 tests/ref/vsynth/vsynth2-jpeg2000-gbrp12      |   4 +-
 tests/ref/vsynth/vsynth2-mov-bgr24            |   6 +-
 tests/ref/vsynth/vsynth2-mov-bpp15            |   4 +-
 tests/ref/vsynth/vsynth2-mov-bpp16            |   4 +-
 tests/ref/vsynth/vsynth2-mpng                 |   8 +-
 tests/ref/vsynth/vsynth2-msrle                |   8 +-
 tests/ref/vsynth/vsynth2-msvideo1             |   4 +-
 tests/ref/vsynth/vsynth2-qtrle                |   8 +-
 tests/ref/vsynth/vsynth2-rgb                  |   6 +-
 tests/ref/vsynth/vsynth2-rpza                 |   4 +-
 tests/ref/vsynth/vsynth2-smc                  |   8 +-
 tests/ref/vsynth/vsynth2-zlib                 |   8 +-
 tests/ref/vsynth/vsynth3-bpp15                |   4 +-
 tests/ref/vsynth/vsynth3-jpeg2000             |   8 +-
 tests/ref/vsynth/vsynth3-jpeg2000-97          |   8 +-
 tests/ref/vsynth/vsynth3-jpeg2000-gbrp12      |   4 +-
 tests/ref/vsynth/vsynth3-mov-bgr24            |   6 +-
 tests/ref/vsynth/vsynth3-mov-bpp15            |   4 +-
 tests/ref/vsynth/vsynth3-mov-bpp16            |   4 +-
 tests/ref/vsynth/vsynth3-mpng                 |   8 +-
 tests/ref/vsynth/vsynth3-msrle                |   8 +-
 tests/ref/vsynth/vsynth3-qtrle                |   8 +-
 tests/ref/vsynth/vsynth3-rgb                  |   6 +-
 tests/ref/vsynth/vsynth3-rpza                 |   4 +-
 tests/ref/vsynth/vsynth3-smc                  |   8 +-
 tests/ref/vsynth/vsynth3-zlib                 |   8 +-
 tests/ref/vsynth/vsynth_lena-bpp15            |   4 +-
 tests/ref/vsynth/vsynth_lena-cinepak          |   8 +-
 tests/ref/vsynth/vsynth_lena-jpeg2000         |   8 +-
 tests/ref/vsynth/vsynth_lena-jpeg2000-97      |   8 +-
 tests/ref/vsynth/vsynth_lena-jpeg2000-gbrp12  |   4 +-
 tests/ref/vsynth/vsynth_lena-mov-bgr24        |   6 +-
 tests/ref/vsynth/vsynth_lena-mov-bpp15        |   4 +-
 tests/ref/vsynth/vsynth_lena-mov-bpp16        |   4 +-
 tests/ref/vsynth/vsynth_lena-mpng             |   8 +-
 tests/ref/vsynth/vsynth_lena-msrle            |   8 +-
 tests/ref/vsynth/vsynth_lena-msvideo1         |   4 +-
 tests/ref/vsynth/vsynth_lena-qtrle            |   8 +-
 tests/ref/vsynth/vsynth_lena-rgb              |   6 +-
 tests/ref/vsynth/vsynth_lena-rpza             |   4 +-
 tests/ref/vsynth/vsynth_lena-smc              |   8 +-
 tests/ref/vsynth/vsynth_lena-zlib             |   8 +-
 297 files changed, 1317 insertions(+), 1312 deletions(-)

diff --git a/doc/APIchanges b/doc/APIchanges
index 91710bb27d..6d81048e48 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2025-03-28
 
 API changes, most recent first:
 
+2024-12-xx - xxxxxxxxxx - lsws 9.0.101 - swscale.h
+  Use accurate rounding and full chroma by default.
+
 2025-05-21 - xxxxxxxxxx - lavu 60.3.100 - avassert.h
   Add av_unreachable() and av_assume() macros.
 
diff --git a/libswscale/options.c b/libswscale/options.c
index feecae8c89..7d29a416cb 100644
--- a/libswscale/options.c
+++ b/libswscale/options.c
@@ -31,8 +31,10 @@ static const char *sws_context_to_name(void *ptr)
 #define DEFAULT 0
 #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 
+#define DEFAULT_FLAGS SWS_BICUBIC | SWS_ACCURATE_RND | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP
+
 static const AVOption swscale_options[] = {
-    { "sws_flags",           "swscale flags",     OFFSET(flags),  AV_OPT_TYPE_FLAGS, { .i64 = SWS_BICUBIC        }, .flags = VE, .unit = "sws_flags", .max = UINT_MAX },
+    { "sws_flags",           "swscale flags",     OFFSET(flags),  AV_OPT_TYPE_FLAGS, { .i64 = DEFAULT_FLAGS      }, .flags = VE, .unit = "sws_flags", .max = UINT_MAX },
         { "fast_bilinear",   "fast bilinear",                 0,  AV_OPT_TYPE_CONST, { .i64 = SWS_FAST_BILINEAR  }, .flags = VE, .unit = "sws_flags" },
         { "bilinear",        "bilinear",                      0,  AV_OPT_TYPE_CONST, { .i64 = SWS_BILINEAR       }, .flags = VE, .unit = "sws_flags" },
         { "bicubic",         "bicubic",                       0,  AV_OPT_TYPE_CONST, { .i64 = SWS_BICUBIC        }, .flags = VE, .unit = "sws_flags" },
diff --git a/libswscale/version.h b/libswscale/version.h
index 148efd83eb..02baedad5b 100644
--- a/libswscale/version.h
+++ b/libswscale/version.h
@@ -29,7 +29,7 @@
 #include "version_major.h"
 
 #define LIBSWSCALE_VERSION_MINOR   0
-#define LIBSWSCALE_VERSION_MICRO 100
+#define LIBSWSCALE_VERSION_MICRO 101
 
 #define LIBSWSCALE_VERSION_INT  AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
                                                LIBSWSCALE_VERSION_MINOR, \
diff --git a/tests/ref/fate/copy-apng b/tests/ref/fate/copy-apng
index 659cec3d6e..23c7d5b754 100644
--- a/tests/ref/fate/copy-apng
+++ b/tests/ref/fate/copy-apng
@@ -1,32 +1,32 @@
-963d078c8702a77b362c5b7c508fa447 *tests/data/fate/copy-apng.apng
-3911913 tests/data/fate/copy-apng.apng
+7928e7b8fc14533ff9d9b7644ff4e76b *tests/data/fate/copy-apng.apng
+4060153 tests/data/fate/copy-apng.apng
 #tb 0: 1/25
 #media_type 0: video
 #codec_id 0: rawvideo
 #dimensions 0: 352x288
 #sar 0: 0/1
-0,          0,          0,        1,   304128, 0x348bb7a0
-0,          1,          1,        1,   304128, 0xaf9634d7
-0,          2,          2,        1,   304128, 0x81161fd3
-0,          3,          3,        1,   304128, 0x6839b383
-0,          4,          4,        1,   304128, 0xa55299b8
-0,          5,          5,        1,   304128, 0x66fb65b3
-0,          6,          6,        1,   304128, 0xe6be2a99
-0,          7,          7,        1,   304128, 0xfb33cb55
-0,          8,          8,        1,   304128, 0x51ab3d74
-0,          9,          9,        1,   304128, 0x67dc44ee
-0,         10,         10,        1,   304128, 0x2eac3b50
-0,         11,         11,        1,   304128, 0xd4a4c377
-0,         12,         12,        1,   304128, 0x1eefe29c
-0,         13,         13,        1,   304128, 0x3a84d488
-0,         14,         14,        1,   304128, 0x70d3b165
-0,         15,         15,        1,   304128, 0x578e58d4
-0,         16,         16,        1,   304128, 0x08bba87e
-0,         17,         17,        1,   304128, 0xccc86c47
-0,         18,         18,        1,   304128, 0x70bf9aa2
-0,         19,         19,        1,   304128, 0x3fc3d5b5
-0,         20,         20,        1,   304128, 0xef52590b
-0,         21,         21,        1,   304128, 0x4f7adde0
-0,         22,         22,        1,   304128, 0xc076ef54
-0,         23,         23,        1,   304128, 0xed2bba2d
-0,         24,         24,        1,   304128, 0x6fce6367
+0,          0,          0,        1,   304128, 0x8b061324
+0,          1,          1,        1,   304128, 0x2e257fca
+0,          2,          2,        1,   304128, 0xb7d37651
+0,          3,          3,        1,   304128, 0x76730c42
+0,          4,          4,        1,   304128, 0x6023efee
+0,          5,          5,        1,   304128, 0x4dfbb3d5
+0,          6,          6,        1,   304128, 0xfd17809a
+0,          7,          7,        1,   304128, 0x7b9e1b7c
+0,          8,          8,        1,   304128, 0xd8a09d56
+0,          9,          9,        1,   304128, 0xc8459aa4
+0,         10,         10,        1,   304128, 0x9f56a4d4
+0,         11,         11,        1,   304128, 0x227032e0
+0,         12,         12,        1,   304128, 0xc2163b17
+0,         13,         13,        1,   304128, 0xbbe040d0
+0,         14,         14,        1,   304128, 0x8e6d07ac
+0,         15,         15,        1,   304128, 0x3462a2b4
+0,         16,         16,        1,   304128, 0x3cdbff41
+0,         17,         17,        1,   304128, 0xc75dce87
+0,         18,         18,        1,   304128, 0x7bf2e7a2
+0,         19,         19,        1,   304128, 0x041f240d
+0,         20,         20,        1,   304128, 0xfe18a75a
+0,         21,         21,        1,   304128, 0x307e3d35
+0,         22,         22,        1,   304128, 0x6b044e91
+0,         23,         23,        1,   304128, 0x7bbb0f85
+0,         24,         24,        1,   304128, 0x719db44d
diff --git a/tests/ref/fate/cover-art-aiff-id3v2-remux b/tests/ref/fate/cover-art-aiff-id3v2-remux
index 578b8dad9d..ab8e87e55a 100644
--- a/tests/ref/fate/cover-art-aiff-id3v2-remux
+++ b/tests/ref/fate/cover-art-aiff-id3v2-remux
@@ -1,5 +1,5 @@
-85e67f867e9f3123dacb26535dfdc89e *tests/data/fate/cover-art-aiff-id3v2-remux.aiff
-558518 tests/data/fate/cover-art-aiff-id3v2-remux.aiff
+6e5cc0df78628dfe2c2a26a6306105f1 *tests/data/fate/cover-art-aiff-id3v2-remux.aiff
+566884 tests/data/fate/cover-art-aiff-id3v2-remux.aiff
 #tb 0: 1/44100
 #media_type 0: audio
 #codec_id 0: pcm_s16be
@@ -27,8 +27,8 @@
 #sar 4: 1/1
 0,          0,          0,     1024,     4096, 0xdac4695d
 1,          0,          0,        0,    19650, 0xd5662610
-2,          0,          0,        0,   134100, 0x804dcb53
-3,          0,          0,        0,   368254, 0xfa7f4bd8
+2,          0,          0,        0,   142466, 0xebea38e9
+3,          0,          0,        0,   368254, 0xdb0a3f8f
 4,          0,          0,        0,    19650, 0xd5662610
 0,       1024,       1024,     1024,     4096, 0xad05c909
 0,       2048,       2048,     1024,     4096, 0x97e3b8f8
diff --git a/tests/ref/fate/ffmpeg-filter_colorkey b/tests/ref/fate/ffmpeg-filter_colorkey
index 25c3fc0912..ce974e616f 100644
--- a/tests/ref/fate/ffmpeg-filter_colorkey
+++ b/tests/ref/fate/ffmpeg-filter_colorkey
@@ -3,13 +3,13 @@
 #codec_id 0: rawvideo
 #dimensions 0: 720x576
 #sar 0: 0/1
-0,          0,          0,        1,   622080, 0x5775bb12
-0,          1,          1,        1,   622080, 0x84d8395a
-0,          2,          2,        1,   622080, 0x599d3a6b
-0,          3,          3,        1,   622080, 0x1df1e9dc
-0,          4,          4,        1,   622080, 0xf3255836
-0,          5,          5,        1,   622080, 0xf46bc26e
-0,          6,          6,        1,   622080, 0x76d491da
-0,          7,          7,        1,   622080, 0x2c9f3ca6
-0,          8,          8,        1,   622080, 0x5713e203
-0,          9,          9,        1,   622080, 0x47776493
+0,          0,          0,        1,   622080, 0x58f9ba90
+0,          1,          1,        1,   622080, 0x315b38df
+0,          2,          2,        1,   622080, 0xcd5439ee
+0,          3,          3,        1,   622080, 0x09dee95c
+0,          4,          4,        1,   622080, 0x6dbd57a4
+0,          5,          5,        1,   622080, 0x5df5c1e7
+0,          6,          6,        1,   622080, 0xf980916c
+0,          7,          7,        1,   622080, 0x7f6e3bfc
+0,          8,          8,        1,   622080, 0x4c02e173
+0,          9,          9,        1,   622080, 0x97876413
diff --git a/tests/ref/fate/filter-alphaextract_alphamerge_rgb b/tests/ref/fate/filter-alphaextract_alphamerge_rgb
index b3c3448210..e85b9f0cb7 100644
--- a/tests/ref/fate/filter-alphaextract_alphamerge_rgb
+++ b/tests/ref/fate/filter-alphaextract_alphamerge_rgb
@@ -3,53 +3,53 @@
 #codec_id 0: rawvideo
 #dimensions 0: 352x288
 #sar 0: 0/1
-0,          0,          0,        1,   405504, 0x91b5634d
-0,          1,          1,        1,   405504, 0x16b3b6c6
-0,          2,          2,        1,   405504, 0x94660b56
-0,          3,          3,        1,   405504, 0x99098f0b
-0,          4,          4,        1,   405504, 0x2a9edda5
-0,          5,          5,        1,   405504, 0xe59d4392
-0,          6,          6,        1,   405504, 0x3172fb02
-0,          7,          7,        1,   405504, 0xa735ccd3
-0,          8,          8,        1,   405504, 0xb0440d78
-0,          9,          9,        1,   405504, 0xa5aac67c
-0,         10,         10,        1,   405504, 0x73d06232
-0,         11,         11,        1,   405504, 0x84f19818
-0,         12,         12,        1,   405504, 0xdf0c0dce
-0,         13,         13,        1,   405504, 0xdf82e624
-0,         14,         14,        1,   405504, 0xf2737cd2
-0,         15,         15,        1,   405504, 0xaa8d8bac
-0,         16,         16,        1,   405504, 0x90695fdb
-0,         17,         17,        1,   405504, 0xb5875106
-0,         18,         18,        1,   405504, 0x6af5929e
-0,         19,         19,        1,   405504, 0x7dff8ef2
-0,         20,         20,        1,   405504, 0x3b28d388
-0,         21,         21,        1,   405504, 0x902aa4d2
-0,         22,         22,        1,   405504, 0x940c869f
-0,         23,         23,        1,   405504, 0xef4c9017
-0,         24,         24,        1,   405504, 0xdb110019
-0,         25,         25,        1,   405504, 0x54b96612
-0,         26,         26,        1,   405504, 0x50de446d
-0,         27,         27,        1,   405504, 0xfb31a27b
-0,         28,         28,        1,   405504, 0xdc678a45
-0,         29,         29,        1,   405504, 0xc4263483
-0,         30,         30,        1,   405504, 0x87a288b1
-0,         31,         31,        1,   405504, 0xb34d5878
-0,         32,         32,        1,   405504, 0xaa69c04c
-0,         33,         33,        1,   405504, 0x625ea9f3
-0,         34,         34,        1,   405504, 0xa56f806d
-0,         35,         35,        1,   405504, 0xcbe0f58d
-0,         36,         36,        1,   405504, 0xeba003e1
-0,         37,         37,        1,   405504, 0x5e22a00c
-0,         38,         38,        1,   405504, 0x4160446c
-0,         39,         39,        1,   405504, 0xee35793d
-0,         40,         40,        1,   405504, 0x604d854c
-0,         41,         41,        1,   405504, 0x6a1ca614
-0,         42,         42,        1,   405504, 0x28cf7f5d
-0,         43,         43,        1,   405504, 0xa1654ff2
-0,         44,         44,        1,   405504, 0xbbbf88d7
-0,         45,         45,        1,   405504, 0x7d8e16d3
-0,         46,         46,        1,   405504, 0x149c286c
-0,         47,         47,        1,   405504, 0x023b1202
-0,         48,         48,        1,   405504, 0xfb37ac74
-0,         49,         49,        1,   405504, 0xb03837d4
+0,          0,          0,        1,   405504, 0x15ebbf2f
+0,          1,          1,        1,   405504, 0xe70afa01
+0,          2,          2,        1,   405504, 0x1b3360bd
+0,          3,          3,        1,   405504, 0xde4de50a
+0,          4,          4,        1,   405504, 0x69a331a6
+0,          5,          5,        1,   405504, 0xd67e8ca8
+0,          6,          6,        1,   405504, 0x23344d21
+0,          7,          7,        1,   405504, 0x96c016ad
+0,          8,          8,        1,   405504, 0x67d26e68
+0,          9,          9,        1,   405504, 0xf77d19d4
+0,         10,         10,        1,   405504, 0x7f47d051
+0,         11,         11,        1,   405504, 0xfd7a0bc1
+0,         12,         12,        1,   405504, 0xd43166a5
+0,         13,         13,        1,   405504, 0x26fa5480
+0,         14,         14,        1,   405504, 0x09f9d11e
+0,         15,         15,        1,   405504, 0x6751cd41
+0,         16,         16,        1,   405504, 0x3b14af91
+0,         17,         17,        1,   405504, 0x3a6eb329
+0,         18,         18,        1,   405504, 0x5186d911
+0,         19,         19,        1,   405504, 0x50f6d812
+0,         20,         20,        1,   405504, 0xd64c1cbd
+0,         21,         21,        1,   405504, 0xf4ec0541
+0,         22,         22,        1,   405504, 0xeb3be71e
+0,         23,         23,        1,   405504, 0x67ace182
+0,         24,         24,        1,   405504, 0x2e9c4b58
+0,         25,         25,        1,   405504, 0x1a63b8d7
+0,         26,         26,        1,   405504, 0xf750a122
+0,         27,         27,        1,   405504, 0x95d9f43a
+0,         28,         28,        1,   405504, 0xa4f3ebbe
+0,         29,         29,        1,   405504, 0x6e538037
+0,         30,         30,        1,   405504, 0x47d6e7d8
+0,         31,         31,        1,   405504, 0x804fb669
+0,         32,         32,        1,   405504, 0x11f315b8
+0,         33,         33,        1,   405504, 0x17a5f737
+0,         34,         34,        1,   405504, 0x6bf6f1ae
+0,         35,         35,        1,   405504, 0xa70e4454
+0,         36,         36,        1,   405504, 0x819e4d6c
+0,         37,         37,        1,   405504, 0xdafef355
+0,         38,         38,        1,   405504, 0x837d964c
+0,         39,         39,        1,   405504, 0xe646d38e
+0,         40,         40,        1,   405504, 0x4fecde52
+0,         41,         41,        1,   405504, 0xecc71056
+0,         42,         42,        1,   405504, 0xb646d1d0
+0,         43,         43,        1,   405504, 0x686babdf
+0,         44,         44,        1,   405504, 0xc69bdcd6
+0,         45,         45,        1,   405504, 0xfd646c77
+0,         46,         46,        1,   405504, 0xc3686d55
+0,         47,         47,        1,   405504, 0xdbae5ace
+0,         48,         48,        1,   405504, 0x04ac0ffb
+0,         49,         49,        1,   405504, 0x848b9300
diff --git a/tests/ref/fate/filter-colorbalance b/tests/ref/fate/filter-colorbalance
index 15491fe671..7fa47f86fd 100644
--- a/tests/ref/fate/filter-colorbalance
+++ b/tests/ref/fate/filter-colorbalance
@@ -3,6 +3,6 @@
 #codec_id 0: rawvideo
 #dimensions 0: 352x288
 #sar 0: 0/1
-0,          0,          0,        1,   304128, 0xf68fadfd
-0,          1,          1,        1,   304128, 0xa6302d9a
-0,          2,          2,        1,   304128, 0x758d165a
+0,          0,          0,        1,   304128, 0x18a5ec1c
+0,          1,          1,        1,   304128, 0x2ad056bf
+0,          2,          2,        1,   304128, 0x1b9749ee
diff --git a/tests/ref/fate/filter-colorbalance-rgba64 b/tests/ref/fate/filter-colorbalance-rgba64
index 605860dee5..0fa376b65c 100644
--- a/tests/ref/fate/filter-colorbalance-rgba64
+++ b/tests/ref/fate/filter-colorbalance-rgba64
@@ -3,6 +3,6 @@
 #codec_id 0: rawvideo
 #dimensions 0: 352x288
 #sar 0: 0/1
-0,          0,          0,        1,   811008, 0xc5f7e6ba
-0,          1,          1,        1,   811008, 0x266955bf
-0,          2,          2,        1,   811008, 0x55360c6e
+0,          0,          0,        1,   811008, 0x74e8cbc4
+0,          1,          1,        1,   811008, 0xc107eef1
+0,          2,          2,        1,   811008, 0x73fa3335
diff --git a/tests/ref/fate/filter-colorchannelmixer b/tests/ref/fate/filter-colorchannelmixer
index 93f9a39e61..30a50e22c0 100644
--- a/tests/ref/fate/filter-colorchannelmixer
+++ b/tests/ref/fate/filter-colorchannelmixer
@@ -3,53 +3,53 @@
 #codec_id 0: rawvideo
 #dimensions 0: 352x288
 #sar 0: 0/1
-0,          0,          0,        1,   304128, 0x42900c13
-0,          1,          1,        1,   304128, 0xfb0439bc
-0,          2,          2,        1,   304128, 0x967b9f0d
-0,          3,          3,        1,   304128, 0xc2c92489
-0,          4,          4,        1,   304128, 0x024499b1
-0,          5,          5,        1,   304128, 0x66144785
-0,          6,          6,        1,   304128, 0x0e505bcd
-0,          7,          7,        1,   304128, 0xc8b26ed2
-0,          8,          8,        1,   304128, 0x14b5717b
-0,          9,          9,        1,   304128, 0x2ba3144a
-0,         10,         10,        1,   304128, 0x1185992b
-0,         11,         11,        1,   304128, 0xd55b289a
-0,         12,         12,        1,   304128, 0x59f2f3be
-0,         13,         13,        1,   304128, 0xfe4d6adf
-0,         14,         14,        1,   304128, 0x630806cc
-0,         15,         15,        1,   304128, 0x2deb2f19
-0,         16,         16,        1,   304128, 0xfbffa923
-0,         17,         17,        1,   304128, 0xb7770d46
-0,         18,         18,        1,   304128, 0xda09bd0e
-0,         19,         19,        1,   304128, 0x17a422d2
-0,         20,         20,        1,   304128, 0xbb6172f5
-0,         21,         21,        1,   304128, 0xcf639456
-0,         22,         22,        1,   304128, 0xdb0ae1ac
-0,         23,         23,        1,   304128, 0x850d6a68
-0,         24,         24,        1,   304128, 0xdc8409fb
-0,         25,         25,        1,   304128, 0x26216c51
-0,         26,         26,        1,   304128, 0x1d0004de
-0,         27,         27,        1,   304128, 0xed019a70
-0,         28,         28,        1,   304128, 0xb1abd985
-0,         29,         29,        1,   304128, 0xec1c14b2
-0,         30,         30,        1,   304128, 0x046db068
-0,         31,         31,        1,   304128, 0xa4fb1029
-0,         32,         32,        1,   304128, 0x49e05e61
-0,         33,         33,        1,   304128, 0x7668d6d1
-0,         34,         34,        1,   304128, 0x6dd0ce9d
-0,         35,         35,        1,   304128, 0x87983f5e
-0,         36,         36,        1,   304128, 0xb98278cf
-0,         37,         37,        1,   304128, 0x55186244
-0,         38,         38,        1,   304128, 0x3135e7ea
-0,         39,         39,        1,   304128, 0xdbf59a2c
-0,         40,         40,        1,   304128, 0x944cdc92
-0,         41,         41,        1,   304128, 0x5849dfe8
-0,         42,         42,        1,   304128, 0xaf9075ba
-0,         43,         43,        1,   304128, 0xb4f01118
-0,         44,         44,        1,   304128, 0x4dfb711f
-0,         45,         45,        1,   304128, 0xb558e732
-0,         46,         46,        1,   304128, 0xb23a171e
-0,         47,         47,        1,   304128, 0xb5c68065
-0,         48,         48,        1,   304128, 0xcf1b122e
-0,         49,         49,        1,   304128, 0x1e2d38e5
+0,          0,          0,        1,   304128, 0x2b3d5870
+0,          1,          1,        1,   304128, 0x424b73e4
+0,          2,          2,        1,   304128, 0x6533e873
+0,          3,          3,        1,   304128, 0x2b1b672f
+0,          4,          4,        1,   304128, 0xeb29ded9
+0,          5,          5,        1,   304128, 0x1321852e
+0,          6,          6,        1,   304128, 0x1b6aa309
+0,          7,          7,        1,   304128, 0x9e59a5a9
+0,          8,          8,        1,   304128, 0x9340c17b
+0,          9,          9,        1,   304128, 0x95b459d2
+0,         10,         10,        1,   304128, 0xc324ee65
+0,         11,         11,        1,   304128, 0x3aba8321
+0,         12,         12,        1,   304128, 0xe06b42c9
+0,         13,         13,        1,   304128, 0x0159c1ed
+0,         14,         14,        1,   304128, 0x13b54e08
+0,         15,         15,        1,   304128, 0x4d896eeb
+0,         16,         16,        1,   304128, 0x8c20ebfe
+0,         17,         17,        1,   304128, 0x343b5f8c
+0,         18,         18,        1,   304128, 0x5332f7da
+0,         19,         19,        1,   304128, 0x6a676163
+0,         20,         20,        1,   304128, 0x36bdaaf1
+0,         21,         21,        1,   304128, 0x376adf2d
+0,         22,         22,        1,   304128, 0xda4b2f8b
+0,         23,         23,        1,   304128, 0x950dad17
+0,         24,         24,        1,   304128, 0x2aae480a
+0,         25,         25,        1,   304128, 0x6302ade9
+0,         26,         26,        1,   304128, 0x3f5250d9
+0,         27,         27,        1,   304128, 0x5aacdc6d
+0,         28,         28,        1,   304128, 0x38ce2a05
+0,         29,         29,        1,   304128, 0x6ecc4efe
+0,         30,         30,        1,   304128, 0x2090fc3f
+0,         31,         31,        1,   304128, 0xac135b26
+0,         32,         32,        1,   304128, 0xc2e2a77c
+0,         33,         33,        1,   304128, 0x9a291860
+0,         34,         34,        1,   304128, 0x44fa2903
+0,         35,         35,        1,   304128, 0x070f7a3c
+0,         36,         36,        1,   304128, 0xdd8cb360
+0,         37,         37,        1,   304128, 0xe15fa42e
+0,         38,         38,        1,   304128, 0xf1f22da5
+0,         39,         39,        1,   304128, 0xafece418
+0,         40,         40,        1,   304128, 0x2e7b228f
+0,         41,         41,        1,   304128, 0xba10381b
+0,         42,         42,        1,   304128, 0x28e9b466
+0,         43,         43,        1,   304128, 0x41e55c19
+0,         44,         44,        1,   304128, 0xce50b50b
+0,         45,         45,        1,   304128, 0xd2643201
+0,         46,         46,        1,   304128, 0x4bbb58d3
+0,         47,         47,        1,   304128, 0xa34ebf0d
+0,         48,         48,        1,   304128, 0x77896960
+0,         49,         49,        1,   304128, 0x9b78853f
diff --git a/tests/ref/fate/filter-colorlevels b/tests/ref/fate/filter-colorlevels
index ceb8cb2127..ceb4f2225d 100644
--- a/tests/ref/fate/filter-colorlevels
+++ b/tests/ref/fate/filter-colorlevels
@@ -3,53 +3,53 @@
 #codec_id 0: rawvideo
 #dimensions 0: 352x288
 #sar 0: 0/1
-0,          0,          0,        1,   304128, 0x348bb7a0
-0,          1,          1,        1,   304128, 0xaf9634d7
-0,          2,          2,        1,   304128, 0x81161fd3
-0,          3,          3,        1,   304128, 0x6839b383
-0,          4,          4,        1,   304128, 0xa55299b8
-0,          5,          5,        1,   304128, 0x66fb65b3
-0,          6,          6,        1,   304128, 0xe6be2a99
-0,          7,          7,        1,   304128, 0xfb33cb55
-0,          8,          8,        1,   304128, 0x51ab3d74
-0,          9,          9,        1,   304128, 0x67dc44ee
-0,         10,         10,        1,   304128, 0x2eac3b50
-0,         11,         11,        1,   304128, 0xd4a4c377
-0,         12,         12,        1,   304128, 0x1eefe29c
-0,         13,         13,        1,   304128, 0x3a84d488
-0,         14,         14,        1,   304128, 0x70d3b165
-0,         15,         15,        1,   304128, 0x578e58d4
-0,         16,         16,        1,   304128, 0x08bba87e
-0,         17,         17,        1,   304128, 0xccc86c47
-0,         18,         18,        1,   304128, 0x70bf9aa2
-0,         19,         19,        1,   304128, 0x3fc3d5b5
-0,         20,         20,        1,   304128, 0xef52590b
-0,         21,         21,        1,   304128, 0x4f7adde0
-0,         22,         22,        1,   304128, 0xc076ef54
-0,         23,         23,        1,   304128, 0xed2bba2d
-0,         24,         24,        1,   304128, 0x6fce6367
-0,         25,         25,        1,   304128, 0x71fe3c07
-0,         26,         26,        1,   304128, 0x6395fc7c
-0,         27,         27,        1,   304128, 0xa800ea2c
-0,         28,         28,        1,   304128, 0x758dfa57
-0,         29,         29,        1,   304128, 0x7fbba7c6
-0,         30,         30,        1,   304128, 0x2842e2a7
-0,         31,         31,        1,   304128, 0xafc2787c
-0,         32,         32,        1,   304128, 0x01e9a76b
-0,         33,         33,        1,   304128, 0x32a2377b
-0,         34,         34,        1,   304128, 0x10e0af2f
-0,         35,         35,        1,   304128, 0x8ab789ca
-0,         36,         36,        1,   304128, 0x3a3a5c1d
-0,         37,         37,        1,   304128, 0xeecb3f50
-0,         38,         38,        1,   304128, 0x317f8a3f
-0,         39,         39,        1,   304128, 0x0b90ba72
-0,         40,         40,        1,   304128, 0x1d6a509e
-0,         41,         41,        1,   304128, 0x11416b22
-0,         42,         42,        1,   304128, 0x325014ed
-0,         43,         43,        1,   304128, 0xb36a830c
-0,         44,         44,        1,   304128, 0xf67fd957
-0,         45,         45,        1,   304128, 0x091ad040
-0,         46,         46,        1,   304128, 0xd6b4b00e
-0,         47,         47,        1,   304128, 0x440b3f2a
-0,         48,         48,        1,   304128, 0x7c329040
-0,         49,         49,        1,   304128, 0xf6619a69
+0,          0,          0,        1,   304128, 0x8b061324
+0,          1,          1,        1,   304128, 0x2e257fca
+0,          2,          2,        1,   304128, 0xb7d37651
+0,          3,          3,        1,   304128, 0x76730c42
+0,          4,          4,        1,   304128, 0x6023efee
+0,          5,          5,        1,   304128, 0x4dfbb3d5
+0,          6,          6,        1,   304128, 0xfd17809a
+0,          7,          7,        1,   304128, 0x7b9e1b7c
+0,          8,          8,        1,   304128, 0xd8a09d56
+0,          9,          9,        1,   304128, 0xc8459aa4
+0,         10,         10,        1,   304128, 0x9f56a4d4
+0,         11,         11,        1,   304128, 0x227032e0
+0,         12,         12,        1,   304128, 0xc2163b17
+0,         13,         13,        1,   304128, 0xbbe040d0
+0,         14,         14,        1,   304128, 0x8e6d07ac
+0,         15,         15,        1,   304128, 0x3462a2b4
+0,         16,         16,        1,   304128, 0x3cdbff41
+0,         17,         17,        1,   304128, 0xc75dce87
+0,         18,         18,        1,   304128, 0x7bf2e7a2
+0,         19,         19,        1,   304128, 0x041f240d
+0,         20,         20,        1,   304128, 0xfe18a75a
+0,         21,         21,        1,   304128, 0x307e3d35
+0,         22,         22,        1,   304128, 0x6b044e91
+0,         23,         23,        1,   304128, 0x7bbb0f85
+0,         24,         24,        1,   304128, 0x719db44d
+0,         25,         25,        1,   304128, 0x2655924d
+0,         26,         26,        1,   304128, 0xe6275963
+0,         27,         27,        1,   304128, 0xc1a7407c
+0,         28,         28,        1,   304128, 0x47705a4d
+0,         29,         29,        1,   304128, 0x2974f987
+0,         30,         30,        1,   304128, 0x9b2c4242
+0,         31,         31,        1,   304128, 0x33b3d6fe
+0,         32,         32,        1,   304128, 0x30acfd44
+0,         33,         33,        1,   304128, 0x1f6d8986
+0,         34,         34,        1,   304128, 0xca921c37
+0,         35,         35,        1,   304128, 0xc7b3dc18
+0,         36,         36,        1,   304128, 0xfb3eac0f
+0,         37,         37,        1,   304128, 0x581b9607
+0,         38,         38,        1,   304128, 0x0695dff2
+0,         39,         39,        1,   304128, 0xb1321436
+0,         40,         40,        1,   304128, 0xd160a84c
+0,         41,         41,        1,   304128, 0x8fd3d2c8
+0,         42,         42,        1,   304128, 0x0ff76bbf
+0,         43,         43,        1,   304128, 0xebe4df73
+0,         44,         44,        1,   304128, 0x75532fa3
+0,         45,         45,        1,   304128, 0x439b272b
+0,         46,         46,        1,   304128, 0x854cfc58
+0,         47,         47,        1,   304128, 0xe43a8ca9
+0,         48,         48,        1,   304128, 0xa25bf153
+0,         49,         49,        1,   304128, 0xed6bf4ea
diff --git a/tests/ref/fate/filter-colorlevels-16 b/tests/ref/fate/filter-colorlevels-16
index eb948a9d46..0acd1662e7 100644
--- a/tests/ref/fate/filter-colorlevels-16
+++ b/tests/ref/fate/filter-colorlevels-16
@@ -3,53 +3,53 @@
 #codec_id 0: rawvideo
 #dimensions 0: 352x288
 #sar 0: 0/1
-0,          0,          0,        1,   608256, 0x60865484
-0,          1,          1,        1,   608256, 0x3c9bad01
-0,          2,          2,        1,   608256, 0x809b6b5d
-0,          3,          3,        1,   608256, 0x4d873004
-0,          4,          4,        1,   608256, 0xff1651c8
-0,          5,          5,        1,   608256, 0x48fd0353
-0,          6,          6,        1,   608256, 0x184ce147
-0,          7,          7,        1,   608256, 0x9802722f
-0,          8,          8,        1,   608256, 0x9413376e
-0,          9,          9,        1,   608256, 0xfbb733e9
-0,         10,         10,        1,   608256, 0x573ae5a4
-0,         11,         11,        1,   608256, 0x8697c4a4
-0,         12,         12,        1,   608256, 0xc7b364c1
-0,         13,         13,        1,   608256, 0x512770ec
-0,         14,         14,        1,   608256, 0x2adee98f
-0,         15,         15,        1,   608256, 0xcfb7d642
-0,         16,         16,        1,   608256, 0xc303accb
-0,         17,         17,        1,   608256, 0xc738fee1
-0,         18,         18,        1,   608256, 0xd28c5669
-0,         19,         19,        1,   608256, 0xd3ce495a
-0,         20,         20,        1,   608256, 0x34fe368d
-0,         21,         21,        1,   608256, 0xbafe49a4
-0,         22,         22,        1,   608256, 0x68da4a93
-0,         23,         23,        1,   608256, 0xfd632bde
-0,         24,         24,        1,   608256, 0x92275713
-0,         25,         25,        1,   608256, 0xcb569e86
-0,         26,         26,        1,   608256, 0x84674f8a
-0,         27,         27,        1,   608256, 0xd8b7f0d5
-0,         28,         28,        1,   608256, 0xe3e6f966
-0,         29,         29,        1,   608256, 0x084d3d4c
-0,         30,         30,        1,   608256, 0x6e9c5c63
-0,         31,         31,        1,   608256, 0x71c71484
-0,         32,         32,        1,   608256, 0xa89dedd1
-0,         33,         33,        1,   608256, 0x4c481ca6
-0,         34,         34,        1,   608256, 0xa52bc63b
-0,         35,         35,        1,   608256, 0x59f0efa5
-0,         36,         36,        1,   608256, 0xafb82d42
-0,         37,         37,        1,   608256, 0x887b8458
-0,         38,         38,        1,   608256, 0x8a2c6984
-0,         39,         39,        1,   608256, 0xe75e4737
-0,         40,         40,        1,   608256, 0xe41ed81c
-0,         41,         41,        1,   608256, 0xbf816b8d
-0,         42,         42,        1,   608256, 0x8cd1af16
-0,         43,         43,        1,   608256, 0x31883468
-0,         44,         44,        1,   608256, 0x380c2bf8
-0,         45,         45,        1,   608256, 0x25e7483e
-0,         46,         46,        1,   608256, 0xe73edd67
-0,         47,         47,        1,   608256, 0x3e9670ef
-0,         48,         48,        1,   608256, 0xd5b871fd
-0,         49,         49,        1,   608256, 0xe075789f
+0,          0,          0,        1,   608256, 0xd9e6fc6f
+0,          1,          1,        1,   608256, 0x9ae01112
+0,          2,          2,        1,   608256, 0xda158e71
+0,          3,          3,        1,   608256, 0x7ca89aa8
+0,          4,          4,        1,   608256, 0xe0e4d8dc
+0,          5,          5,        1,   608256, 0x8b2ccd75
+0,          6,          6,        1,   608256, 0x94d1825f
+0,          7,          7,        1,   608256, 0x2efad48b
+0,          8,          8,        1,   608256, 0x513f6640
+0,          9,          9,        1,   608256, 0x73a34ec1
+0,         10,         10,        1,   608256, 0x4b6536bc
+0,         11,         11,        1,   608256, 0x0acdec2e
+0,         12,         12,        1,   608256, 0x9c5e0cb9
+0,         13,         13,        1,   608256, 0x5e79546d
+0,         14,         14,        1,   608256, 0xd17e48bc
+0,         15,         15,        1,   608256, 0x9d2ff467
+0,         16,         16,        1,   608256, 0x5452b620
+0,         17,         17,        1,   608256, 0x116c3473
+0,         18,         18,        1,   608256, 0x780ccc2d
+0,         19,         19,        1,   608256, 0xb08da0b1
+0,         20,         20,        1,   608256, 0x335a0b2c
+0,         21,         21,        1,   608256, 0x8a1937d9
+0,         22,         22,        1,   608256, 0x1ee02c6d
+0,         23,         23,        1,   608256, 0x62141ea0
+0,         24,         24,        1,   608256, 0xef2d6af9
+0,         25,         25,        1,   608256, 0xe81e40ae
+0,         26,         26,        1,   608256, 0xcb5a82dc
+0,         27,         27,        1,   608256, 0xab20c844
+0,         28,         28,        1,   608256, 0xda4ea154
+0,         29,         29,        1,   608256, 0xf560f394
+0,         30,         30,        1,   608256, 0xdc5370e0
+0,         31,         31,        1,   608256, 0xdd3216e4
+0,         32,         32,        1,   608256, 0x67699bcc
+0,         33,         33,        1,   608256, 0x34ae2569
+0,         34,         34,        1,   608256, 0x2c6fd3d3
+0,         35,         35,        1,   608256, 0x46e77fc4
+0,         36,         36,        1,   608256, 0x1edfb5a4
+0,         37,         37,        1,   608256, 0x636c346a
+0,         38,         38,        1,   608256, 0xb941563b
+0,         39,         39,        1,   608256, 0x0842e3b9
+0,         40,         40,        1,   608256, 0x9bcd9f2d
+0,         41,         41,        1,   608256, 0xaea83eb4
+0,         42,         42,        1,   608256, 0x4d8cb92a
+0,         43,         43,        1,   608256, 0x6d1b7674
+0,         44,         44,        1,   608256, 0x8016e077
+0,         45,         45,        1,   608256, 0xde957068
+0,         46,         46,        1,   608256, 0xbef2ac55
+0,         47,         47,        1,   608256, 0xeb340ada
+0,         48,         48,        1,   608256, 0xc8d7e1d3
+0,         49,         49,        1,   608256, 0x1930ab52
diff --git a/tests/ref/fate/filter-lavd-scalenorm b/tests/ref/fate/filter-lavd-scalenorm
index 7b9a60aa68..dbfdd8ec5f 100644
--- a/tests/ref/fate/filter-lavd-scalenorm
+++ b/tests/ref/fate/filter-lavd-scalenorm
@@ -3,13 +3,13 @@
 #codec_id 0: rawvideo
 #dimensions 0: 128x96
 #sar 0: 1/1
-0,          0,          0,        1,    18432, 0xac484db5
-0,          1,          1,        1,    18432, 0x94734db6
-0,          2,          2,        1,    18432, 0x3fac4db3
-0,          3,          3,        1,    18432, 0x37a94dcd
-0,          4,          4,        1,    18432, 0x2b3e4dbb
-0,          5,          5,        1,    18432, 0xd23a67bf
-0,          6,          6,        1,    18432, 0x898368e1
-0,          7,          7,        1,    18432, 0x79466438
-0,          8,          8,        1,    18432, 0x458c5d95
-0,          9,          9,        1,    18432, 0x9d9a56ee
+0,          0,          0,        1,    18432, 0xa8c84dc5
+0,          1,          1,        1,    18432, 0xd7ef4daf
+0,          2,          2,        1,    18432, 0xe28d4dba
+0,          3,          3,        1,    18432, 0x27b34dd4
+0,          4,          4,        1,    18432, 0x6b1f4dd0
+0,          5,          5,        1,    18432, 0xf7fe67c2
+0,          6,          6,        1,    18432, 0x432d68e2
+0,          7,          7,        1,    18432, 0x6156642a
+0,          8,          8,        1,    18432, 0xa63f5d90
+0,          9,          9,        1,    18432, 0x64455701
diff --git a/tests/ref/fate/filter-overlay-dvdsub-2397 b/tests/ref/fate/filter-overlay-dvdsub-2397
index 45c026f540..c353a6e01d 100644
--- a/tests/ref/fate/filter-overlay-dvdsub-2397
+++ b/tests/ref/fate/filter-overlay-dvdsub-2397
@@ -497,360 +497,360 @@
 0,        118,        118,        1,   518400, 0xa47de755
 1,       3952,       3952,       10,     2013, 0x0e5db67e
 1,       3962,       3962,       10,     2013, 0xfc9baf97
-0,        119,        119,        1,   518400, 0x588534fc
+0,        119,        119,        1,   518400, 0x4780350f
 1,       3972,       3972,       10,     2013, 0x8e02a1b1
 1,       3982,       3982,       10,     2013, 0x6eecaac8
 1,       3992,       3992,       10,     2013, 0xf5558f0c
 1,       4002,       4002,       10,     2013, 0x512ba99b
-0,        120,        120,        1,   518400, 0x2145ebc1
+0,        120,        120,        1,   518400, 0xf54debdb
 1,       4012,       4012,       10,     2013, 0x932b9932
 1,       4022,       4022,       10,     2013, 0xc01ea987
-0,        121,        121,        1,   518400, 0x28bca595
+0,        121,        121,        1,   518400, 0x1cb9a5a6
 1,       4038,       4038,       10,     2013, 0x10879cf7
 1,       4048,       4048,       10,     2013, 0x90679338
 1,       4058,       4058,       10,     2013, 0x077d8a9e
 1,       4068,       4068,       10,     2013, 0x969fa57c
-0,        122,        122,        1,   518400, 0x77dc951e
+0,        122,        122,        1,   518400, 0xb6c89535
 1,       4078,       4078,       10,     2013, 0xe049ab07
 1,       4088,       4088,       10,     2013, 0xf535b3b3
 1,       4098,       4098,       10,     2013, 0xfe76bd37
-0,        123,        123,        1,   518400, 0xe8924c17
+0,        123,        123,        1,   518400, 0xe3844c1f
 1,       4108,       4108,       10,     2013, 0xde79ad8c
 1,       4123,       4123,       10,     2013, 0xe89b9c47
 1,       4133,       4133,       10,     2013, 0xc570b0f0
-0,        124,        124,        1,   518400, 0xadb4cccc
+0,        124,        124,        1,   518400, 0x7866cce9
 1,       4143,       4143,       10,     2013, 0xee709cd9
 1,       4153,       4153,       10,     2013, 0xcfe5afab
 1,       4163,       4163,       10,     2013, 0x98ff8ce4
-0,        125,        125,        1,   518400, 0x1d7b56ac
+0,        125,        125,        1,   518400, 0x741c56c7
 1,       4173,       4173,       10,     2013, 0x9d19b44c
 1,       4183,       4183,       10,     2013, 0x4349917a
 1,       4193,       4193,       10,     2013, 0xbf54a59a
-0,        126,        126,        1,   518400, 0xad5739a4
+0,        126,        126,        1,   518400, 0x36d439bd
 1,       4208,       4208,       10,     2013, 0xc4a399e0
 1,       4218,       4218,       10,     2013, 0x1bf58ff0
 1,       4228,       4228,       10,     2013, 0x3518ac56
-0,        127,        127,        1,   518400, 0x2733d35a
+0,        127,        127,        1,   518400, 0x02ddd374
 1,       4238,       4238,       10,     2013, 0xcd38c1de
 1,       4248,       4248,       10,     2013, 0xbe7d9c4d
 1,       4258,       4258,       10,     2013, 0xe113a306
 1,       4268,       4268,       10,     2013, 0x083197ea
-0,        128,        128,        1,   518400, 0x78e76da2
+0,        128,        128,        1,   518400, 0x0f986da7
 1,       4278,       4278,       10,     2013, 0x1929b1eb
 1,       4294,       4294,       10,     2013, 0x5d6ea5af
 1,       4304,       4304,       10,     2013, 0x05519d53
-0,        129,        129,        1,   518400, 0x6c076013
+0,        129,        129,        1,   518400, 0x4dbb6029
 1,       4314,       4314,       10,     2013, 0x5773b380
 1,       4324,       4324,       10,     2013, 0xaa70a8f5
 1,       4334,       4334,       10,     2013, 0x990db0ec
-0,        130,        130,        1,   518400, 0x7854f2b1
+0,        130,        130,        1,   518400, 0x7470f2ce
 1,       4344,       4344,       10,     2013, 0x91d3a623
 1,       4354,       4354,       10,     2013, 0xc91f9824
 1,       4364,       4364,       10,     2013, 0x1d058abf
-0,        131,        131,        1,   518400, 0xd2ae1ecd
+0,        131,        131,        1,   518400, 0x78041ee9
 1,       4379,       4379,       10,     2013, 0x8de1b8d5
 1,       4389,       4389,       10,     2013, 0x7872b06b
 1,       4399,       4399,       10,     2013, 0xa084c203
-0,        132,        132,        1,   518400, 0xf5eab38d
+0,        132,        132,        1,   518400, 0x93bbb3ae
 1,       4409,       4409,       10,     2013, 0xff90ae8d
 1,       4419,       4419,       10,     2013, 0x61dead8e
 1,       4429,       4429,       10,     2013, 0xee76b284
-0,        133,        133,        1,   518400, 0x994d3e9c
+0,        133,        133,        1,   518400, 0x6dbf3eaf
 1,       4439,       4439,       10,     2013, 0xe888af7f
 1,       4449,       4449,       10,     2013, 0x5d57b115
 1,       4464,       4464,       10,     2013, 0xcdbfb1d0
-0,        134,        134,        1,   518400, 0x95ab705a
+0,        134,        134,        1,   518400, 0x663f708d
 1,       4474,       4474,       10,     2013, 0x2e28a952
 1,       4484,       4484,       10,     2013, 0x4795a994
 1,       4494,       4494,       10,     2013, 0x7e7ea304
 1,       4504,       4504,       10,     2013, 0x9502c1e1
-0,        135,        135,        1,   518400, 0x3c83c5ce
+0,        135,        135,        1,   518400, 0x3776c5f3
 1,       4514,       4514,       10,     2013, 0xf7c78ab2
 1,       4524,       4524,       10,     2013, 0x24049816
 1,       4534,       4534,       10,     2013, 0x52089dcf
-0,        136,        136,        1,   518400, 0xfa22c508
+0,        136,        136,        1,   518400, 0x48cec524
 1,       4550,       4550,       10,     2013, 0x2150a0b1
 1,       4560,       4560,       10,     2013, 0x3c2e9b93
 1,       4570,       4570,       10,     2013, 0x491f932b
-0,        137,        137,        1,   518400, 0xddda1712
+0,        137,        137,        1,   518400, 0x38331727
 1,       4580,       4580,       10,     2013, 0x31359cf8
 1,       4590,       4590,       10,     2013, 0x1b00ac3f
 1,       4600,       4600,       10,     2013, 0x8d7ab3cb
-0,        138,        138,        1,   518400, 0x985a3b93
+0,        138,        138,        1,   518400, 0x489d3ba3
 1,       4610,       4610,       10,     2013, 0xb2c2a4de
 1,       4620,       4620,       10,     2013, 0x80a4abf2
 1,       4635,       4635,       10,     2013, 0x0701a4ee
-0,        139,        139,        1,   518400, 0xea63c5e7
+0,        139,        139,        1,   518400, 0x2a1cc60a
 1,       4645,       4645,       10,     2013, 0xdc1ba5bc
 1,       4655,       4655,       10,     2013, 0x6083a8a4
 1,       4665,       4665,       10,     2013, 0x6226ad45
-0,        140,        140,        1,   518400, 0xef64983d
+0,        140,        140,        1,   518400, 0xd5bc9860
 1,       4675,       4675,       10,     2013, 0x2732a205
 1,       4685,       4685,       10,     2013, 0x0f62a0d3
 1,       4695,       4695,       10,     2013, 0xc1799249
-0,        141,        141,        1,   518400, 0x747bb193
+0,        141,        141,        1,   518400, 0xd55bb1b6
 1,       4705,       4705,       10,     2013, 0xbccfa9c8
 1,       4720,       4720,       10,     2013, 0xded096e7
 1,       4730,       4730,       10,     2013, 0x7f0daf43
-0,        142,        142,        1,   518400, 0xb8748862
+0,        142,        142,        1,   518400, 0x35d9887b
 1,       4740,       4740,       10,     2013, 0xc47ea682
 1,       4750,       4750,       10,     2013, 0x5a72b07a
 1,       4760,       4760,       10,     2013, 0x386faa8c
 1,       4770,       4770,       10,     2013, 0xf9919a91
-0,        143,        143,        1,   518400, 0xaab55a5f
+0,        143,        143,        1,   518400, 0x62e15a74
 1,       4780,       4780,       10,     2013, 0x4908897e
 1,       4790,       4790,       10,     2013, 0x4882b594
-0,        144,        144,        1,   518400, 0x7b468add
+0,        144,        144,        1,   518400, 0x65508af8
 1,       4806,       4806,       10,     2013, 0x113e98d1
 1,       4816,       4816,       10,     2013, 0x5098b30d
 1,       4826,       4826,       10,     2013, 0x0ef7b857
 1,       4836,       4836,       10,     2013, 0x216ea176
-0,        145,        145,        1,   518400, 0xf2078707
+0,        145,        145,        1,   518400, 0x4688871c
 1,       4846,       4846,       10,     2013, 0xf906944a
 1,       4856,       4856,       10,     2013, 0xee9b92fb
 1,       4866,       4866,       10,     2013, 0xd6029209
-0,        146,        146,        1,   518400, 0x6a2d931e
+0,        146,        146,        1,   518400, 0x0b099338
 1,       4876,       4876,       10,     2013, 0x2256a12e
 1,       4891,       4891,       10,     2013, 0x89de8e4a
 1,       4901,       4901,       10,     2013, 0x0bf0a584
-0,        147,        147,        1,   518400, 0xbbe3c417
+0,        147,        147,        1,   518400, 0x1144c430
 1,       4911,       4911,       10,     2013, 0x6a5ebd58
 1,       4921,       4921,       10,     2013, 0x3edd9aa4
 1,       4931,       4931,       10,     2013, 0xbd66ac26
-0,        148,        148,        1,   518400, 0x6294e449
+0,        148,        148,        1,   518400, 0x05dae461
 1,       4941,       4941,       10,     2013, 0x313896ea
 1,       4951,       4951,       10,     2013, 0x6b83a6a0
 1,       4961,       4961,       10,     2013, 0x9aafb109
-0,        149,        149,        1,   518400, 0xa05721e7
+0,        149,        149,        1,   518400, 0xdc7b21f8
 1,       4976,       4976,       10,     2013, 0x5192a85a
 1,       4986,       4986,       10,     2013, 0x1f919f79
 1,       4996,       4996,       10,     2013, 0xc0799c40
-0,        150,        150,        1,   518400, 0x37749183
+0,        150,        150,        1,   518400, 0x143c91a7
 1,       5006,       5006,       10,     2013, 0x2988bcd8
 1,       5016,       5016,       10,     2013, 0x1482913a
 1,       5026,       5026,       10,     2013, 0x74da9a94
 1,       5036,       5036,       10,     2013, 0x763eb709
-0,        151,        151,        1,   518400, 0xf9d9dca0
+0,        151,        151,        1,   518400, 0x7280dcc7
 1,       5046,       5046,       10,     2013, 0x1285b405
 1,       5062,       5062,       10,     2013, 0xb6ab9dfc
-0,        152,        152,        1,   518400, 0x5f8ccf08
+0,        152,        152,        1,   518400, 0x2dfccf2b
 1,       5072,       5072,       10,     2013, 0xe4c8bf19
 1,       5082,       5082,       10,     2013, 0xabbbade8
 1,       5092,       5092,       10,     2013, 0xf8b69d89
 1,       5102,       5102,       10,     2013, 0xce04a866
-0,        153,        153,        1,   518400, 0x7303f77b
+0,        153,        153,        1,   518400, 0x5074f798
 1,       5112,       5112,       10,     2013, 0x07528abf
 1,       5122,       5122,       10,     2013, 0x74fb98bf
 1,       5132,       5132,       10,     2013, 0x579fb1c9
-0,        154,        154,        1,   518400, 0x22b0513f
+0,        154,        154,        1,   518400, 0x034b514e
 1,       5147,       5147,       10,     2013, 0x7ddea2ed
 1,       5157,       5157,       10,     2013, 0x296caa2c
 1,       5167,       5167,       10,     2013, 0x346d9c4f
-0,        155,        155,        1,   518400, 0x330485d2
+0,        155,        155,        1,   518400, 0xc90185cf
 1,       5177,       5177,       10,     2013, 0x3e1fba15
 1,       5187,       5187,       10,     2013, 0x48a2908f
 1,       5197,       5197,       10,     2013, 0xc1938d09
-0,        156,        156,        1,   518400, 0x7f83daea
+0,        156,        156,        1,   518400, 0x1dcfdae9
 1,       5207,       5207,       10,     2013, 0x0e96a060
 1,       5217,       5217,       10,     2013, 0x7b6a9e06
 1,       5232,       5232,       10,     2013, 0x5b779d28
-0,        157,        157,        1,   518400, 0xee19f2df
+0,        157,        157,        1,   518400, 0x9a32f2de
 1,       5242,       5242,       10,     2013, 0xf600aca1
 1,       5252,       5252,       10,     2013, 0x3a6c9e68
 1,       5262,       5262,       10,     2013, 0x0c8dc1b0
-0,        158,        158,        1,   518400, 0xb71b1c77
+0,        158,        158,        1,   518400, 0x9ea61c7e
 1,       5272,       5272,       10,     2013, 0x26beb245
 1,       5282,       5282,       10,     2013, 0x2bc09557
 1,       5292,       5292,       10,     2013, 0x27fc8845
 1,       5302,       5302,       10,     2013, 0x1025aa47
-0,        159,        159,        1,   518400, 0xbffc1856
+0,        159,        159,        1,   518400, 0x5333185f
 1,       5318,       5318,       10,     2013, 0xc2e69baa
 1,       5328,       5328,       10,     2013, 0xdb249b92
 1,       5338,       5338,       10,     2013, 0x6ccda29e
-0,        160,        160,        1,   518400, 0xabc125aa
+0,        160,        160,        1,   518400, 0xd2e825b8
 1,       5348,       5348,       10,     2013, 0xeaf6a1cf
 1,       5358,       5358,       10,     2013, 0x509ba397
 1,       5368,       5368,       10,     2013, 0xfaf8a2df
-0,        161,        161,        1,   518400, 0x5ee467f8
+0,        161,        161,        1,   518400, 0x711767ff
 1,       5378,       5378,       10,     2013, 0x41388f28
 1,       5388,       5388,       10,     2013, 0xfe5eab39
 1,       5403,       5403,       10,     2013, 0xd5ffa066
-0,        162,        162,        1,   518400, 0x6c2cf168
+0,        162,        162,        1,   518400, 0x5363f16e
 1,       5413,       5413,       10,     2013, 0x6813a30a
 1,       5423,       5423,       10,     2013, 0x9be89718
 1,       5433,       5433,       10,     2013, 0xaec3a27b
-0,        163,        163,        1,   518400, 0x63996b26
+0,        163,        163,        1,   518400, 0x36ab6b29
 1,       5446,       5446,       10,     2013, 0x579a983e
 1,       5456,       5456,       10,     2013, 0x98cea21f
 1,       5466,       5466,       10,     2013, 0xca77a58a
-0,        164,        164,        1,   518400, 0xb34d789a
+0,        164,        164,        1,   518400, 0x978a78a4
 1,       5476,       5476,       10,     2013, 0xcbc3b1ee
 1,       5486,       5486,       10,     2013, 0xf3bb8f07
 1,       5496,       5496,       10,     2013, 0x6aeebd92
-0,        165,        165,        1,   518400, 0xf49c030f
+0,        165,        165,        1,   518400, 0x5cc80322
 1,       5506,       5506,       10,     2013, 0xe955a449
 1,       5516,       5516,       10,     2013, 0x9436aa5b
 1,       5531,       5531,       10,     2013, 0x4f0a8f9f
-0,        166,        166,        1,   518400, 0x092dc41a
+0,        166,        166,        1,   518400, 0x612cc42f
 1,       5541,       5541,       10,     2013, 0x3551b22d
 1,       5551,       5551,       10,     2013, 0x0959a3d4
 1,       5561,       5561,       10,     2013, 0x2ed5a11b
 1,       5571,       5571,       10,     2013, 0x8f52a5c3
-0,        167,        167,        1,   518400, 0x4134c577
+0,        167,        167,        1,   518400, 0x0d10c576
 1,       5581,       5581,       10,     2013, 0x6552978d
 1,       5591,       5591,       10,     2013, 0x7dcca0c1
 1,       5601,       5601,       10,     2013, 0xbcd4a3c9
-0,        168,        168,        1,   518400, 0x261de1ed
+0,        168,        168,        1,   518400, 0x612ee1fc
 1,       5616,       5616,       10,     2013, 0xfe41a8d8
 1,       5626,       5626,       10,     2013, 0xc85aae14
 1,       5636,       5636,       10,     2013, 0x1185b346
-0,        169,        169,        1,   518400, 0xcbc8566a
+0,        169,        169,        1,   518400, 0x61245671
 1,       5646,       5646,       10,     2013, 0xf7429a0d
 1,       5656,       5656,       10,     2013, 0x48c2a160
 1,       5666,       5666,       10,     2013, 0x9d85a85d
-0,        170,        170,        1,   518400, 0x407a5c76
+0,        170,        170,        1,   518400, 0x8fe65c7c
 1,       5676,       5676,       10,     2013, 0xbbe89fe9
 1,       5686,       5686,       10,     2013, 0xea429fe2
 1,       5702,       5702,       10,     2013, 0x221ca1d4
-0,        171,        171,        1,   518400, 0x1ed73bb2
+0,        171,        171,        1,   518400, 0xa40a3bbd
 1,       5712,       5712,       10,     2013, 0x394b925b
 1,       5722,       5722,       10,     2013, 0x556dc26f
 1,       5732,       5732,       10,     2013, 0xce21a5e1
-0,        172,        172,        1,   518400, 0x8467ddb5
+0,        172,        172,        1,   518400, 0x8443ddc0
 1,       5742,       5742,       10,     2013, 0xbc87c0a8
 1,       5752,       5752,       10,     2013, 0xbac4ac07
 1,       5762,       5762,       10,     2013, 0xdeefa4aa
 1,       5772,       5772,       10,     2013, 0x1f15b362
-0,        173,        173,        1,   518400, 0x0523dc73
+0,        173,        173,        1,   518400, 0x800bdc77
 1,       5787,       5787,       10,     2013, 0x6406b7b2
 1,       5797,       5797,       10,     2013, 0x8030a03d
-0,        174,        174,        1,   518400, 0x81f5e895
+0,        174,        174,        1,   518400, 0xff59e8a0
 1,       5807,       5807,       10,     2013, 0x0373a5b1
 1,       5817,       5817,       10,     2013, 0x34ef93da
 1,       5827,       5827,       10,     2013, 0x94c198fe
 1,       5837,       5837,       10,     2013, 0xfefcabad
-0,        175,        175,        1,   518400, 0xfc74608d
+0,        175,        175,        1,   518400, 0xc907608f
 1,       5847,       5847,       10,     2013, 0x8755b3ec
 1,       5857,       5857,       10,     2013, 0xe436a6fd
 1,       5872,       5872,       10,     2013, 0x9cf5a11e
-0,        176,        176,        1,   518400, 0xc4e0dae0
+0,        176,        176,        1,   518400, 0x0641dae8
 1,       5882,       5882,       10,     2013, 0x03b8a98c
 1,       5892,       5892,       10,     2013, 0x6216a138
 1,       5902,       5902,       10,     2013, 0xd87b9f12
-0,        177,        177,        1,   518400, 0x98367f5b
+0,        177,        177,        1,   518400, 0xd0237f59
 1,       5912,       5912,       10,     2013, 0x4ce99653
 1,       5922,       5922,       10,     2013, 0x6c2ea9e2
 1,       5932,       5932,       10,     2013, 0x918cae4c
-0,        178,        178,        1,   518400, 0x0f1a869d
+0,        178,        178,        1,   518400, 0x5dcd8697
 1,       5942,       5942,       10,     2013, 0xd19fa5f2
 1,       5958,       5958,       10,     2013, 0x0bdda7c6
 1,       5968,       5968,       10,     2013, 0x0f9ab0ca
-0,        179,        179,        1,   518400, 0x45b6ccf2
+0,        179,        179,        1,   518400, 0x779cccfb
 1,       5978,       5978,       10,     2013, 0x410a92b1
 1,       5988,       5988,       10,     2013, 0xcfbe9d1c
 1,       5998,       5998,       10,     2013, 0x59ed9d15
-0,        180,        180,        1,   518400, 0x5f9ccb77
+0,        180,        180,        1,   518400, 0xb088cb77
 1,       6008,       6008,       10,     2013, 0x4e129e27
 1,       6018,       6018,       10,     2013, 0x7bb9ac0a
 1,       6028,       6028,       10,     2013, 0x826ca82b
-0,        181,        181,        1,   518400, 0x5f15ea31
+0,        181,        181,        1,   518400, 0x9f73ea27
 1,       6043,       6043,       10,     2013, 0x9ad5a74b
 1,       6053,       6053,       10,     2013, 0x6c5f969a
 1,       6063,       6063,       10,     2013, 0x8479a0e5
-0,        182,        182,        1,   518400, 0x86369f27
+0,        182,        182,        1,   518400, 0x54149f26
 1,       6073,       6073,       10,     2013, 0x165298ef
 1,       6083,       6083,       10,     2013, 0xdcadb4a1
 1,       6093,       6093,       10,     2013, 0xa90e987c
 1,       6103,       6103,       10,     2013, 0x1ac5b510
-0,        183,        183,        1,   518400, 0x2e27f9fa
+0,        183,        183,        1,   518400, 0xbf57f9f4
 1,       6113,       6113,       10,     2013, 0x66728d85
 1,       6128,       6128,       10,     2013, 0xe4859fc5
 1,       6138,       6138,       10,     2013, 0x9901786e
-0,        184,        184,        1,   518400, 0xc029a44d
+0,        184,        184,        1,   518400, 0x9b07a446
 1,       6148,       6148,       10,     2013, 0x6aebb406
 1,       6158,       6158,       10,     2013, 0x7d13a2cc
 1,       6168,       6168,       10,     2013, 0x99b7a8cc
-0,        185,        185,        1,   518400, 0xebee33b0
+0,        185,        185,        1,   518400, 0x4c2233ba
 1,       6178,       6178,       10,     2013, 0x80b8a624
 1,       6188,       6188,       10,     2013, 0xbb6aa271
 1,       6198,       6198,       10,     2013, 0x17af9e4a
-0,        186,        186,        1,   518400, 0x19e5494f
+0,        186,        186,        1,   518400, 0x90394951
 1,       6214,       6214,       10,     2013, 0xfaf0a8f1
 1,       6224,       6224,       10,     2013, 0xd6849b93
 1,       6234,       6234,       10,     2013, 0xe9829669
-0,        187,        187,        1,   518400, 0xf697bd7c
+0,        187,        187,        1,   518400, 0x420ebd7e
 1,       6244,       6244,       10,     2013, 0x7ec98944
 1,       6254,       6254,       10,     2013, 0x2b2099a4
 1,       6264,       6264,       10,     2013, 0x1033a82f
-0,        188,        188,        1,   518400, 0x82569002
+0,        188,        188,        1,   518400, 0x76c5900b
 1,       6274,       6274,       10,     2013, 0x5ec88990
 1,       6284,       6284,       10,     2013, 0xd2a19b3d
 1,       6299,       6299,       10,     2013, 0xa377b268
-0,        189,        189,        1,   518400, 0xfcb6d707
+0,        189,        189,        1,   518400, 0xb952d717
 1,       6309,       6309,       10,     2013, 0xfa859901
 1,       6319,       6319,       10,     2013, 0x1713955a
 1,       6329,       6329,       10,     2013, 0x70aab0da
 1,       6339,       6339,       10,     2013, 0xcdaea422
-0,        190,        190,        1,   518400, 0x82a9662b
+0,        190,        190,        1,   518400, 0x7f446643
 1,       6349,       6349,       10,     2013, 0x65c3bf80
 1,       6359,       6359,       10,     2013, 0x1d75a55f
 1,       6369,       6369,       10,     2013, 0xa5bea4de
-0,        191,        191,        1,   518400, 0x212e16ee
+0,        191,        191,        1,   518400, 0x4b6b16f2
 1,       6384,       6384,       10,     2013, 0x184db71c
 1,       6394,       6394,       10,     2013, 0x99858ec8
 1,       6404,       6404,       10,     2013, 0xb8f2aee5
-0,        192,        192,        1,   518400, 0x2ca34dca
+0,        192,        192,        1,   518400, 0xc6ce4dd0
 1,       6414,       6414,       10,     2013, 0x4435b2ef
 1,       6424,       6424,       10,     2013, 0x8acfa6c7
 1,       6434,       6434,       10,     2013, 0x42b4c01f
-0,        193,        193,        1,   518400, 0xe9ebe0a5
+0,        193,        193,        1,   518400, 0x3010e0ba
 1,       6444,       6444,       10,     2013, 0x6e308c13
 1,       6454,       6454,       10,     2013, 0x8227a0f6
 1,       6470,       6470,       10,     2013, 0x6f12a7a2
-0,        194,        194,        1,   518400, 0x4e6b6917
+0,        194,        194,        1,   518400, 0x5ad5692b
 1,       6480,       6480,       10,     2013, 0x785392be
 1,       6490,       6490,       10,     2013, 0x81849c2b
 1,       6500,       6500,       10,     2013, 0x5cf2af65
-0,        195,        195,        1,   518400, 0x7dcf20ab
+0,        195,        195,        1,   518400, 0x8bae20b1
 1,       6510,       6510,       10,     2013, 0x0c6ca6b4
 1,       6520,       6520,       10,     2013, 0x412fab9f
 1,       6530,       6530,       10,     2013, 0x08e792b4
-0,        196,        196,        1,   518400, 0xf30fac97
+0,        196,        196,        1,   518400, 0x5ed5ac98
 1,       6540,       6540,       10,     2013, 0x407aace3
 1,       6555,       6555,       10,     2013, 0xd26bac16
 1,       6565,       6565,       10,     2013, 0xac8bb295
-0,        197,        197,        1,   518400, 0xcb9fc692
+0,        197,        197,        1,   518400, 0x11efc6a3
 1,       6575,       6575,       10,     2013, 0xddd1949c
 1,       6585,       6585,       10,     2013, 0x6b26b868
 1,       6595,       6595,       10,     2013, 0x5eaba587
 1,       6605,       6605,       10,     2013, 0xef0793b9
-0,        198,        198,        1,   518400, 0x5d05601e
+0,        198,        198,        1,   518400, 0x2eb36031
 1,       6615,       6615,       10,     2013, 0xdef19bd6
 1,       6625,       6625,       10,     2013, 0xca98a635
-0,        199,        199,        1,   518400, 0x456c1417
+0,        199,        199,        1,   518400, 0x04651411
 1,       6640,       6640,       10,     2013, 0x06269a5a
 1,       6650,       6650,       10,     2013, 0x32cb9952
 1,       6660,       6660,       10,     2013, 0xf01fa95a
 1,       6670,       6670,       10,     2013, 0xefab9e55
-0,        200,        200,        1,   518400, 0x9a0fd1ad
+0,        200,        200,        1,   518400, 0x6c87d1bd
 1,       6680,       6680,       10,     2013, 0x55a3b63a
 1,       6690,       6690,       10,     2013, 0xcd36a553
 1,       6700,       6700,       10,     2013, 0x2ec19877
-0,        201,        201,        1,   518400, 0x55db9716
+0,        201,        201,        1,   518400, 0xf83c9722
 1,       6710,       6710,       10,     2013, 0xc18b924c
 1,       6726,       6726,       10,     2013, 0xf132b04c
 1,       6736,       6736,       10,     2013, 0x7975a44d
-0,        202,        202,        1,   518400, 0x1f0d40d6
+0,        202,        202,        1,   518400, 0x636340d7
 1,       6746,       6746,       10,     2013, 0x2aaf94cb
 1,       6756,       6756,       10,     2013, 0x58cfa60f
 1,       6766,       6766,       10,     2013, 0x9757a658
-0,        203,        203,        1,   518400, 0x73695c82
+0,        203,        203,        1,   518400, 0x70795c8b
 1,       6776,       6776,       10,     2013, 0x67ebc0d5
 1,       6786,       6786,       10,     2013, 0x3c50a70e
 1,       6796,       6796,       10,     2013, 0x9c5799c6
-0,        204,        204,        1,   518400, 0xb0f10812
+0,        204,        204,        1,   518400, 0xe1d9082a
 1,       6811,       6811,       10,     2013, 0x018d85b2
 1,       6821,       6821,       10,     2013, 0x5367a956
-0,        205,        205,        1,   518400, 0xdec18505
-0,        208,        208,        1,   518400, 0xb147b947
+0,        205,        205,        1,   518400, 0x044f8513
+0,        208,        208,        1,   518400, 0x30ebb95b
 0,        240,        240,        1,   518400, 0x9d2e3977
diff --git a/tests/ref/fate/filter-overlay_rgb b/tests/ref/fate/filter-overlay_rgb
index 89a0177ada..2d97f20612 100644
--- a/tests/ref/fate/filter-overlay_rgb
+++ b/tests/ref/fate/filter-overlay_rgb
@@ -3,53 +3,53 @@
 #codec_id 0: rawvideo
 #dimensions 0: 352x288
 #sar 0: 0/1
-0,          0,          0,        1,   304128, 0x027e34c6
-0,          1,          1,        1,   304128, 0xc436b3d2
-0,          2,          2,        1,   304128, 0x86b77f58
-0,          3,          3,        1,   304128, 0x94e279e1
-0,          4,          4,        1,   304128, 0x658da060
-0,          5,          5,        1,   304128, 0x2005ffb7
-0,          6,          6,        1,   304128, 0x4730c6b1
-0,          7,          7,        1,   304128, 0x9e29fbca
-0,          8,          8,        1,   304128, 0xfcbe105a
-0,          9,          9,        1,   304128, 0x96b6af91
-0,         10,         10,        1,   304128, 0xe1a4ecd5
-0,         11,         11,        1,   304128, 0x53f42f84
-0,         12,         12,        1,   304128, 0xa5221a14
-0,         13,         13,        1,   304128, 0xaf7d2ab4
-0,         14,         14,        1,   304128, 0x1bc8208f
-0,         15,         15,        1,   304128, 0x5e090d01
-0,         16,         16,        1,   304128, 0xf01de68a
-0,         17,         17,        1,   304128, 0x33ad5467
-0,         18,         18,        1,   304128, 0x3b37d722
-0,         19,         19,        1,   304128, 0x410f0872
-0,         20,         20,        1,   304128, 0xc110db2a
-0,         21,         21,        1,   304128, 0x2023e6e2
-0,         22,         22,        1,   304128, 0xf63fa6fc
-0,         23,         23,        1,   304128, 0x25f10ab0
-0,         24,         24,        1,   304128, 0x0efe0a9b
-0,         25,         25,        1,   304128, 0x5779e963
-0,         26,         26,        1,   304128, 0xa43226da
-0,         27,         27,        1,   304128, 0xc6d4e99d
-0,         28,         28,        1,   304128, 0x39c5e32d
-0,         29,         29,        1,   304128, 0x78dd509b
-0,         30,         30,        1,   304128, 0x496f07af
-0,         31,         31,        1,   304128, 0xb878805c
-0,         32,         32,        1,   304128, 0xc62e4825
-0,         33,         33,        1,   304128, 0x8e7a2787
-0,         34,         34,        1,   304128, 0xebee121d
-0,         35,         35,        1,   304128, 0x12f6fd57
-0,         36,         36,        1,   304128, 0x08b05d8d
-0,         37,         37,        1,   304128, 0x57e02088
-0,         38,         38,        1,   304128, 0x6ff1dd89
-0,         39,         39,        1,   304128, 0xa5b0e20f
-0,         40,         40,        1,   304128, 0x4e9c0cf7
-0,         41,         41,        1,   304128, 0x64c93f20
-0,         42,         42,        1,   304128, 0x4264e490
-0,         43,         43,        1,   304128, 0xd7a3d763
-0,         44,         44,        1,   304128, 0x0fecf186
-0,         45,         45,        1,   304128, 0x3b87dd16
-0,         46,         46,        1,   304128, 0x7f46b1cd
-0,         47,         47,        1,   304128, 0xc635aca4
-0,         48,         48,        1,   304128, 0xfbaebb8d
-0,         49,         49,        1,   304128, 0x73976bb4
+0,          0,          0,        1,   304128, 0xe0f082e5
+0,          1,          1,        1,   304128, 0xad2ced4c
+0,          2,          2,        1,   304128, 0x065bc0b4
+0,          3,          3,        1,   304128, 0x42b3be87
+0,          4,          4,        1,   304128, 0x77cce69e
+0,          5,          5,        1,   304128, 0x63663cf5
+0,          6,          6,        1,   304128, 0xc5f710f6
+0,          7,          7,        1,   304128, 0x47653f00
+0,          8,          8,        1,   304128, 0xb7a45e8d
+0,          9,          9,        1,   304128, 0xa61cea87
+0,         10,         10,        1,   304128, 0xb782434a
+0,         11,         11,        1,   304128, 0xf77291fb
+0,         12,         12,        1,   304128, 0x655365af
+0,         13,         13,        1,   304128, 0x05f488e1
+0,         14,         14,        1,   304128, 0xfe736926
+0,         15,         15,        1,   304128, 0x1b4f4bab
+0,         16,         16,        1,   304128, 0x82f12e17
+0,         17,         17,        1,   304128, 0x696aa959
+0,         18,         18,        1,   304128, 0xb17f18af
+0,         19,         19,        1,   304128, 0x934e4a81
+0,         20,         20,        1,   304128, 0x049c1b00
+0,         21,         21,        1,   304128, 0xd4d33b66
+0,         22,         22,        1,   304128, 0x79f5f67f
+0,         23,         23,        1,   304128, 0xb3614c4e
+0,         24,         24,        1,   304128, 0x21754098
+0,         25,         25,        1,   304128, 0x696226b9
+0,         26,         26,        1,   304128, 0xb3776a93
+0,         27,         27,        1,   304128, 0x7aa12848
+0,         28,         28,        1,   304128, 0x97b93147
+0,         29,         29,        1,   304128, 0x54c995e1
+0,         30,         30,        1,   304128, 0x56d5565d
+0,         31,         31,        1,   304128, 0x95acd126
+0,         32,         32,        1,   304128, 0xe2b78eee
+0,         33,         33,        1,   304128, 0x951a614c
+0,         34,         34,        1,   304128, 0xb3cf6ad5
+0,         35,         35,        1,   304128, 0x4d7b3eee
+0,         36,         36,        1,   304128, 0xf410a09d
+0,         37,         37,        1,   304128, 0x48856e58
+0,         38,         38,        1,   304128, 0x1d3f28ba
+0,         39,         39,        1,   304128, 0x71c23050
+0,         40,         40,        1,   304128, 0xd15d511a
+0,         41,         41,        1,   304128, 0xf11c8f27
+0,         42,         42,        1,   304128, 0x90ba303f
+0,         43,         43,        1,   304128, 0x739f25f7
+0,         44,         44,        1,   304128, 0x28c138bc
+0,         45,         45,        1,   304128, 0x3b9d22c1
+0,         46,         46,        1,   304128, 0xfb95ef79
+0,         47,         47,        1,   304128, 0xab38eafe
+0,         48,         48,        1,   304128, 0x3931085c
+0,         49,         49,        1,   304128, 0xa7e9b100
diff --git a/tests/ref/fate/filter-overlay_yuv420_yuva420 b/tests/ref/fate/filter-overlay_yuv420_yuva420
index dffd135638..21ba5def0c 100644
--- a/tests/ref/fate/filter-overlay_yuv420_yuva420
+++ b/tests/ref/fate/filter-overlay_yuv420_yuva420
@@ -3,4 +3,4 @@
 #codec_id 0: rawvideo
 #dimensions 0: 128x128
 #sar 0: 1/1
-0,          0,          0,        1,    24576, 0xf104fedd
+0,          0,          0,        1,    24576, 0x3be2fef5
diff --git a/tests/ref/fate/filter-overlay_yuv422_yuva422 b/tests/ref/fate/filter-overlay_yuv422_yuva422
index de0a9d13cf..1e626f5d33 100644
--- a/tests/ref/fate/filter-overlay_yuv422_yuva422
+++ b/tests/ref/fate/filter-overlay_yuv422_yuva422
@@ -3,4 +3,4 @@
 #codec_id 0: rawvideo
 #dimensions 0: 128x128
 #sar 0: 1/1
-0,          0,          0,        1,    32768, 0x180ac096
+0,          0,          0,        1,    32768, 0x0c7cc081
diff --git a/tests/ref/fate/filter-overlay_yuva420_yuva420 b/tests/ref/fate/filter-overlay_yuva420_yuva420
index fac08a16e1..b38018271e 100644
--- a/tests/ref/fate/filter-overlay_yuva420_yuva420
+++ b/tests/ref/fate/filter-overlay_yuva420_yuva420
@@ -3,4 +3,4 @@
 #codec_id 0: rawvideo
 #dimensions 0: 128x128
 #sar 0: 1/1
-0,          0,          0,        1,    40960, 0x5de1c29d
+0,          0,          0,        1,    40960, 0xa90ac2b5
diff --git a/tests/ref/fate/filter-overlay_yuva422_yuva422 b/tests/ref/fate/filter-overlay_yuva422_yuva422
index 2e65399d17..805dcec366 100644
--- a/tests/ref/fate/filter-overlay_yuva422_yuva422
+++ b/tests/ref/fate/filter-overlay_yuva422_yuva422
@@ -3,4 +3,4 @@
 #codec_id 0: rawvideo
 #dimensions 0: 128x128
 #sar 0: 1/1
-0,          0,          0,        1,    49152, 0xdb3b8456
+0,          0,          0,        1,    49152, 0x8f628441
diff --git a/tests/ref/fate/filter-pixdesc-0bgr b/tests/ref/fate/filter-pixdesc-0bgr
index 9592dc66c8..746272cde1 100644
--- a/tests/ref/fate/filter-pixdesc-0bgr
+++ b/tests/ref/fate/filter-pixdesc-0bgr
@@ -1 +1 @@
-pixdesc-0bgr        f8b4f2a30d477709e6f414039c8d9602
+pixdesc-0bgr        5fff744fc6a8409319b8eab0f7e7cc24
diff --git a/tests/ref/fate/filter-pixdesc-0rgb b/tests/ref/fate/filter-pixdesc-0rgb
index ed27ccfe3a..cb77f6b4d8 100644
--- a/tests/ref/fate/filter-pixdesc-0rgb
+++ b/tests/ref/fate/filter-pixdesc-0rgb
@@ -1 +1 @@
-pixdesc-0rgb        f38dad4f69a806881b4cc3f9953e0a15
+pixdesc-0rgb        709b957939af1cc267fb95ca37c5b528
diff --git a/tests/ref/fate/filter-pixdesc-abgr b/tests/ref/fate/filter-pixdesc-abgr
index 194819e431..b90850f1a9 100644
--- a/tests/ref/fate/filter-pixdesc-abgr
+++ b/tests/ref/fate/filter-pixdesc-abgr
@@ -1 +1 @@
-pixdesc-abgr        ded06f35fe57b74f6cdbba9e356cd02d
+pixdesc-abgr        a3af726aaf486ecfa66eec8fc170b593
diff --git a/tests/ref/fate/filter-pixdesc-argb b/tests/ref/fate/filter-pixdesc-argb
index a21a87a64b..75cf11ce53 100644
--- a/tests/ref/fate/filter-pixdesc-argb
+++ b/tests/ref/fate/filter-pixdesc-argb
@@ -1 +1 @@
-pixdesc-argb        f983e1f44ce61c3c2bfac3cb55d3cdd8
+pixdesc-argb        cf1bf0b98caf33766847352739864a07
diff --git a/tests/ref/fate/filter-pixdesc-bgr0 b/tests/ref/fate/filter-pixdesc-bgr0
index e060914264..65737ab92e 100644
--- a/tests/ref/fate/filter-pixdesc-bgr0
+++ b/tests/ref/fate/filter-pixdesc-bgr0
@@ -1 +1 @@
-pixdesc-bgr0        62400c257204fe1ddf61a7bc3a405531
+pixdesc-bgr0        e0d7a8e09f73aa1e80b87b033b1d902d
diff --git a/tests/ref/fate/filter-pixdesc-bgr24 b/tests/ref/fate/filter-pixdesc-bgr24
index c63da5812f..e2581dda9e 100644
--- a/tests/ref/fate/filter-pixdesc-bgr24
+++ b/tests/ref/fate/filter-pixdesc-bgr24
@@ -1 +1 @@
-pixdesc-bgr24       30134c7e6c9298df1d830398edca22b9
+pixdesc-bgr24       32bc017e2521d095369b3d98085ce4e8
diff --git a/tests/ref/fate/filter-pixdesc-bgr48be b/tests/ref/fate/filter-pixdesc-bgr48be
index 72e2df7fe0..8073edcc47 100644
--- a/tests/ref/fate/filter-pixdesc-bgr48be
+++ b/tests/ref/fate/filter-pixdesc-bgr48be
@@ -1 +1 @@
-pixdesc-bgr48be     c0ddbd8b786877336e725ec3c150b17e
+pixdesc-bgr48be     b7398448e7130a400af961e362d47d8a
diff --git a/tests/ref/fate/filter-pixdesc-bgr48le b/tests/ref/fate/filter-pixdesc-bgr48le
index dad2d06474..e173ec5f42 100644
--- a/tests/ref/fate/filter-pixdesc-bgr48le
+++ b/tests/ref/fate/filter-pixdesc-bgr48le
@@ -1 +1 @@
-pixdesc-bgr48le     0d7a6d9d46fec1e701f34c2d5e2c6918
+pixdesc-bgr48le     7417837207e7c394bff755ad94c5cdef
diff --git a/tests/ref/fate/filter-pixdesc-bgr4_byte b/tests/ref/fate/filter-pixdesc-bgr4_byte
index e71fec2317..903c477dd6 100644
--- a/tests/ref/fate/filter-pixdesc-bgr4_byte
+++ b/tests/ref/fate/filter-pixdesc-bgr4_byte
@@ -1 +1 @@
-pixdesc-bgr4_byte   68d51f7d88311efcb4661ffb5ff9582e
+pixdesc-bgr4_byte   93ed034b2ca9a34cc75c3ef036266cb9
diff --git a/tests/ref/fate/filter-pixdesc-bgr8 b/tests/ref/fate/filter-pixdesc-bgr8
index 299665e52a..4c26b513e7 100644
--- a/tests/ref/fate/filter-pixdesc-bgr8
+++ b/tests/ref/fate/filter-pixdesc-bgr8
@@ -1 +1 @@
-pixdesc-bgr8        0abb130e5224af5e2e10149f1680fa2e
+pixdesc-bgr8        ed4651ae721f13c97849d93e4c28a4a4
diff --git a/tests/ref/fate/filter-pixdesc-bgra b/tests/ref/fate/filter-pixdesc-bgra
index abdedbe48c..2a4a6a46a8 100644
--- a/tests/ref/fate/filter-pixdesc-bgra
+++ b/tests/ref/fate/filter-pixdesc-bgra
@@ -1 +1 @@
-pixdesc-bgra        0bb08da9936d2efd20351ab4a88e9b10
+pixdesc-bgra        2c336f27b6cfeeff7bb6c55087cfd822
diff --git a/tests/ref/fate/filter-pixdesc-bgra64be b/tests/ref/fate/filter-pixdesc-bgra64be
index 4459e24999..935a6c6f13 100644
--- a/tests/ref/fate/filter-pixdesc-bgra64be
+++ b/tests/ref/fate/filter-pixdesc-bgra64be
@@ -1 +1 @@
-pixdesc-bgra64be    c524aa7e4c02dbca57035bb548afc1ec
+pixdesc-bgra64be    6bb8dd117597054db0757c461e382be9
diff --git a/tests/ref/fate/filter-pixdesc-bgra64le b/tests/ref/fate/filter-pixdesc-bgra64le
index 82f2a5479e..8acbefaa8a 100644
--- a/tests/ref/fate/filter-pixdesc-bgra64le
+++ b/tests/ref/fate/filter-pixdesc-bgra64le
@@ -1 +1 @@
-pixdesc-bgra64le    df3a79d47b9dcf3ed2c252afd80e062c
+pixdesc-bgra64le    e482769ece53f423cddf9a96b8455e95
diff --git a/tests/ref/fate/filter-pixdesc-rgb0 b/tests/ref/fate/filter-pixdesc-rgb0
index 6e043b1036..8d9dc47a05 100644
--- a/tests/ref/fate/filter-pixdesc-rgb0
+++ b/tests/ref/fate/filter-pixdesc-rgb0
@@ -1 +1 @@
-pixdesc-rgb0        eb2182d10f034e3c791598726744f20e
+pixdesc-rgb0        c1205c2aa13326a58f0bd7be0d5ee257
diff --git a/tests/ref/fate/filter-pixdesc-rgb24 b/tests/ref/fate/filter-pixdesc-rgb24
index 67d92d8e18..9baa52f583 100644
--- a/tests/ref/fate/filter-pixdesc-rgb24
+++ b/tests/ref/fate/filter-pixdesc-rgb24
@@ -1 +1 @@
-pixdesc-rgb24       6fa2d8a2a57d1cb1a30354851e8dfd82
+pixdesc-rgb24       6a9dde4cee086f615eccf9914cb540cf
diff --git a/tests/ref/fate/filter-pixdesc-rgb48be b/tests/ref/fate/filter-pixdesc-rgb48be
index 43b4b3c12c..cd5f9dae45 100644
--- a/tests/ref/fate/filter-pixdesc-rgb48be
+++ b/tests/ref/fate/filter-pixdesc-rgb48be
@@ -1 +1 @@
-pixdesc-rgb48be     464a81ce147465017b7edb71f806f434
+pixdesc-rgb48be     ff47fae00842ccafb5a2b819ab378064
diff --git a/tests/ref/fate/filter-pixdesc-rgb48le b/tests/ref/fate/filter-pixdesc-rgb48le
index 614f1648af..fe281952b4 100644
--- a/tests/ref/fate/filter-pixdesc-rgb48le
+++ b/tests/ref/fate/filter-pixdesc-rgb48le
@@ -1 +1 @@
-pixdesc-rgb48le     e05c1d73c722b93735ec2d5f8109e1f3
+pixdesc-rgb48le     00c1aed196632b00aa23e9e0d2cfcf14
diff --git a/tests/ref/fate/filter-pixdesc-rgb4_byte b/tests/ref/fate/filter-pixdesc-rgb4_byte
index 99fce381f7..ede7a3b015 100644
--- a/tests/ref/fate/filter-pixdesc-rgb4_byte
+++ b/tests/ref/fate/filter-pixdesc-rgb4_byte
@@ -1 +1 @@
-pixdesc-rgb4_byte   0d4f7b0112d0e942527f168a651a6f8c
+pixdesc-rgb4_byte   73056329002639e1e7cd1b861653c06d
diff --git a/tests/ref/fate/filter-pixdesc-rgb8 b/tests/ref/fate/filter-pixdesc-rgb8
index d9c4c6298a..df0aab74f0 100644
--- a/tests/ref/fate/filter-pixdesc-rgb8
+++ b/tests/ref/fate/filter-pixdesc-rgb8
@@ -1 +1 @@
-pixdesc-rgb8        2ce87991241972bea465f41e4d82d27a
+pixdesc-rgb8        a3a5ec66a98f7b02b1570d25512ebe50
diff --git a/tests/ref/fate/filter-pixdesc-rgba b/tests/ref/fate/filter-pixdesc-rgba
index ff98607c0c..f838deb546 100644
--- a/tests/ref/fate/filter-pixdesc-rgba
+++ b/tests/ref/fate/filter-pixdesc-rgba
@@ -1 +1 @@
-pixdesc-rgba        f55378fcaad1b471faaa4068be30104c
+pixdesc-rgba        682a4d1bda90d75384be2ed11c4830ad
diff --git a/tests/ref/fate/filter-pixdesc-rgba64be b/tests/ref/fate/filter-pixdesc-rgba64be
index 0c999db22c..1ec87f6056 100644
--- a/tests/ref/fate/filter-pixdesc-rgba64be
+++ b/tests/ref/fate/filter-pixdesc-rgba64be
@@ -1 +1 @@
-pixdesc-rgba64be    8d5aea96a7c90aad9d97b06533ad291c
+pixdesc-rgba64be    501f6c6ef37bc117cc59ee47b8660b70
diff --git a/tests/ref/fate/filter-pixdesc-rgba64le b/tests/ref/fate/filter-pixdesc-rgba64le
index 6534cc2f94..bfe54df12d 100644
--- a/tests/ref/fate/filter-pixdesc-rgba64le
+++ b/tests/ref/fate/filter-pixdesc-rgba64le
@@ -1 +1 @@
-pixdesc-rgba64le    2c757090db978d11718bae97027f3a56
+pixdesc-rgba64le    ff4ff8430fdb4ddcd11db0e70daf0eec
diff --git a/tests/ref/fate/filter-pixdesc-x2bgr10le b/tests/ref/fate/filter-pixdesc-x2bgr10le
index 2d63ace190..4dd00e36b0 100644
--- a/tests/ref/fate/filter-pixdesc-x2bgr10le
+++ b/tests/ref/fate/filter-pixdesc-x2bgr10le
@@ -1 +1 @@
-pixdesc-x2bgr10le   0ea287ba7ea42330714e7020f2fde7d0
+pixdesc-x2bgr10le   c068f94b1556b200e84a747318d34b9f
diff --git a/tests/ref/fate/filter-pixdesc-x2rgb10le b/tests/ref/fate/filter-pixdesc-x2rgb10le
index aec5ccee9f..81874ed9a9 100644
--- a/tests/ref/fate/filter-pixdesc-x2rgb10le
+++ b/tests/ref/fate/filter-pixdesc-x2rgb10le
@@ -1 +1 @@
-pixdesc-x2rgb10le   d34a932222b55f4041742b95837b272e
+pixdesc-x2rgb10le   a92cb1b639dfdaa74cccc4c376490ec7
diff --git a/tests/ref/fate/filter-pixdesc-xyz12be b/tests/ref/fate/filter-pixdesc-xyz12be
index 6610444e76..45091c20e5 100644
--- a/tests/ref/fate/filter-pixdesc-xyz12be
+++ b/tests/ref/fate/filter-pixdesc-xyz12be
@@ -1 +1 @@
-pixdesc-xyz12be     1508a33dea936c45d9ee13f7743af00d
+pixdesc-xyz12be     ffd614f0fc0119cabcbba09cbc7bec02
diff --git a/tests/ref/fate/filter-pixdesc-xyz12le b/tests/ref/fate/filter-pixdesc-xyz12le
index 41b4907923..feadb48b4f 100644
--- a/tests/ref/fate/filter-pixdesc-xyz12le
+++ b/tests/ref/fate/filter-pixdesc-xyz12le
@@ -1 +1 @@
-pixdesc-xyz12le     da2d1326fa5747a7f6ce5ac1e1494aea
+pixdesc-xyz12le     c31e11c28289699a51834c2b58cd16a7
diff --git a/tests/ref/fate/filter-pixfmts-copy b/tests/ref/fate/filter-pixfmts-copy
index cbedb4d894..94ff7155e0 100644
--- a/tests/ref/fate/filter-pixfmts-copy
+++ b/tests/ref/fate/filter-pixfmts-copy
@@ -1,25 +1,25 @@
-0bgr                4060279c35dd8810a2f55a021b836557
-0rgb                527ef3d164c8fd0700493733959689c2
-abgr                023ecf6396d324edb113e4a483b79ba2
-argb                f003b555ef429222005d33844cca9325
+0bgr                25bd3d5a5dddc31a0a43736e9ad33672
+0rgb                d6de573611608f12d91a5ca4cda15879
+abgr                fcc5830da8f62bb193e311b3ca3d41a2
+argb                1aa8b1e25a3bccc6faf435d71a633f16
 ayuv                631859cdc018cd9671482e435a87becc
 ayuv64be            553477ffeeaf59d54fa12012ff13c783
 ayuv64le            07b9c969dfbe4add4c0626773b151d4f
-bgr0                6fcd67c8e6cec723dab21c70cf53dc16
-bgr24               4cff3814819f02ecf5824edfd768d2b1
+bgr0                9879894001606a5a155deb0fab3013d3
+bgr24               5b3c28d551398d7c10767fdc827c56c0
 bgr444be            1cd47c1555f947dfcba99192e3429d20
 bgr444le            e1832fdc9b118d4440ba03cea6e30428
-bgr48be             51477f029592ddb6b912980fdf2df7f1
-bgr48le             b34faf404b33c74cd25f5f912ca3274c
-bgr4_byte           7ca99bc8a1c7c831cb955806ac05cb72
+bgr48be             0a33f269723fe1ce32d90310fdb2266e
+bgr48le             24a456e5118e9070dd8215c21c0a04e4
+bgr4_byte           23b8ebf77c759e6d42cc8e497dd588ec
 bgr555be            6d32031ad4f52723023e547058a62c71
 bgr555le            823a3b2f2585e537da5cb76c8ce30cf4
 bgr565be            438b0f18fd754280d5dc2f421c376ffb
 bgr565le            acab2b65c0fe5f9618c90f77f70ab3be
-bgr8                898a66734bda0572dfab1edd8239f6a2
-bgra                3934fb81a602dfa7d29420b1a66f0fd8
-bgra64be            c8d3217bf58d34f080ac88c0b0012c77
-bgra64le            b71d75a928aac14cb768403e6f6a9910
+bgr8                ee156559d119a8339c4208fc3284de8d
+bgra                7c37d0b9df35c240c5383c4825795abb
+bgra64be            605717f3a0d786d7024b0ac00fc93ccc
+bgra64le            c3fa646c33e6327621b81f7937764d15
 gbrap               98d30987407c51e5620921e11d40a4ff
 gbrap10be           edcffb185e44b6dae5c2ead5505b7125
 gbrap10le           2a7392e14b21b1f9457526a071236a6d
@@ -84,37 +84,37 @@ p412be              d3055624d596c30deb633f24761d6888
 p412le              1f19a675b00d8c9df499200fd80bcc10
 p416be              fd828e966d45ae908f5d2d4b3349b816
 p416le              983064bfd506be1e26cd57bafc14ae50
-pal8                ff5929f5b42075793b2c34cb441bede5
-rgb0                0de71e5a1f97f81fb51397a0435bfa72
-rgb24               f4438057d046e6d98ade4e45294b21be
+pal8                1ad0058bc23d1a3080be13be2c5ed770
+rgb0                e7914fb0e8056cb41408dde9d04f8a31
+rgb24               ac8c6beb8794390e73fc22a2bd7cf3a0
 rgb444be            115e5259b91f4a416546b09570347633
 rgb444le            f3f66689cb4c810563fba7665c526800
-rgb48be             18127d8ec64aa21619ada80b93514906
-rgb48le             60d0ba0e5a429c947aaa736be54aca87
-rgb4_byte           7d68393a3de6f392cf2ed05ffaec6259
+rgb48be             f9afdf63b33bf83ea424eb393afcbe14
+rgb48le             593db90b35b318119e70844b0d6133ac
+rgb4_byte           3928f544586876b4f20841952f05835f
 rgb555be            f76c8109974636b54bd0cb4c36bb883d
 rgb555le            21daf4d05999ccf3eef7d492e73c4d5b
 rgb565be            85711f35f71340ba23e553a07d246656
 rgb565le            e04771e79a8ee8a51e9a325540e6215e
-rgb8                7ac6008c84d622c2fc50581706e17576
-rgba                b6e1b441c365e03b5ffdf9b7b68d9a0c
-rgba64be            ae2ae04b5efedca3505f47c4dd6ea6ea
-rgba64le            b91e1d77f799eb92241a2d2d28437b15
+rgb8                ae44ee271d3e99bee7eb30fa68c4cdf5
+rgba                e7602cde2648ecac5a1fe796034b4bcc
+rgba64be            9ac324d66de9ac58cd3967a297c896ca
+rgba64le            63397007a712bba3898e2d317d14ec36
 uyva                8896d7525f12de08818a01a5d5cf84f1
 uyvy422             3bcf3c80047592f2211fae3260b1b65d
 v30xle              44503e6d78bc474c1b72c5ceb1779539
 vuya                3d5e934651cae1ce334001cb1829ad22
 vuyx                0af13a42f9d0932c5a9bb6a8a5d1c5ee
 vyu444              93912234400a4373b1a6b5c4e4b1a4ef
-x2bgr10le           550c0d190cf695afa4eaacb644db6b75
-x2rgb10le           c1e3ac21be04a16bb157b22784524520
+x2bgr10le           34f84d56ac46be303f4285b6c656501b
+x2rgb10le           76a64e524851f1932007b6688544db75
 xv30le              7dfdd664a9792bb06a19a63353828da0
 xv36be              9f556ee59a672fd8725f0bb36ce3e4b0
 xv36le              e08dcbde02f1c28a3554f372ad1278e2
 xv48be              ce34993b4b4411bba1d852b9b86aa39e
 xv48le              df913a7e61b162aa98303e5393e60c63
-xyz12be             f257f86373207af8aed0a1a05171df3b
-xyz12le             7922f99edc44a2c26a25becbea9914cc
+xyz12be             f0ac3e7cffb5745e4759c577e6bab60e
+xyz12le             9a072850c9b52a676bf4f4c38bb35740
 y210le              04e9487b6cce38e7531437e946cdd586
 y212le              825768be8fe92708ae80be84855066ed
 y216le              0e99aeddfee304e72d525d72998d9e9b
diff --git a/tests/ref/fate/filter-pixfmts-crop b/tests/ref/fate/filter-pixfmts-crop
index d4bffda7dc..d48c208c20 100644
--- a/tests/ref/fate/filter-pixfmts-crop
+++ b/tests/ref/fate/filter-pixfmts-crop
@@ -1,25 +1,25 @@
-0bgr                8a83998de96327cb334538d7a265304e
-0rgb                974833c777e6abe6d84dc59af2ca5625
-abgr                1d21f5b8a20186ac9dd54459c986a2a7
-argb                8b822972049a1e207000763f2564d6e0
+0bgr                cb286bf6b1dc0e8c3c39274a9f16180c
+0rgb                6d108907184f6b1c3a93cb3976275716
+abgr                6e70c18397c11369131f6c21d5c04bc4
+argb                b2311ea9a077dea37c9dbb96d015b0df
 ayuv                fb7bdb9f775c47099892c0588f5be426
 ayuv64be            aec88528e34e99fb8baa22ad58c97210
 ayuv64le            ab2f7bc8f150af47c42c778e3ea28bce
-bgr0                38a84849a9198667c348c686802e3b52
-bgr24               1dacd8e04bf0eff163e82250d01a9cc7
+bgr0                dc5aa4de40fed2c1c51827de14fbe29f
+bgr24               03b70ab77009290c4889217693f43c60
 bgr444be            e2d2b864dfa528e77684ddc117f2d974
 bgr444le            5f48e6dc70fdbf4ef6d651081f104a2f
-bgr48be             61b6a1a7c6d523b7e594f63790c7f032
-bgr48le             2b158ebcd483e03abea86c32abd21642
-bgr4_byte           441c4d66a344babfbbd3e4767413893b
+bgr48be             eb5e6ab97c2d9528b4c96f3139717775
+bgr48le             a59f58626ccafddce1911e751d0ae2dd
+bgr4_byte           3ddd0568115c907edfc23e91d9f808a3
 bgr555be            c5480b08d681d33ae29148054762bcfb
 bgr555le            500a2ed02aa57f7635125e6c983702db
 bgr565be            2d4a32d7e3d994b21c400ad008a5cdf0
 bgr565le            14ed3f499e83ccb0cdbfa0a457557880
-bgr8                142275ecc024d3f7b66c168ac2279ae2
-bgra                e66a5f68ba463cbc89fce23a61bb5203
-bgra64be            1ad8dd02714cafec793fb89577ddde47
-bgra64le            dd29ec9aba43aa3e8f9f5b9a93ca8831
+bgr8                29c5e689d457c42f0fc0fc91366b108b
+bgra                11686bb150189c6b8f0bb82ec2277430
+bgra64be            aa60b8b57f46ae0a394cf71e9f90712a
+bgra64le            4ef1bb63d7fabe856a326a7e789c28ac
 gbrap               188cd467fe7ae7d85ae9ca8bdfa07739
 gbrap10be           1880c4856d9cc6492b8b859f2711aaf1
 gbrap10le           c2b6e35f8b7ca363a7ec021ccdf31d1f
@@ -82,36 +82,36 @@ p412be              69b358196dffed9cbbb1342214a6d689
 p412le              87899c57e7eccbe3d08fcebd2d83f6b2
 p416be              52f08b8a56a09d6e954c2eab6cf24d99
 p416le              ecb78b327ea5cfe1fff82945c1fca310
-pal8                1f2cdc8e718f95c875dbc1034a688bfb
-rgb0                736646b70dd9a0be22b8da8041e35035
-rgb24               c5fbbf816bb2000f4d2914e335698ef5
+pal8                2a846a7cf66ba6bb00455f57974116ee
+rgb0                78027ced128f8fc6f13719635db47651
+rgb24               d40363f8a72ad203e282dcea835ce537
 rgb444be            44a33306889f7fa1a71ec831b860fd0a
 rgb444le            934708063a8ecb93b46f6ab7e828419c
-rgb48be             39ef8f30c85bbb58433df9c085f158a1
-rgb48le             c92ee84f0952517a2830aa19166638a0
-rgb4_byte           847730fe0a7dc7fd99dd16599d6b828b
+rgb48be             a885eaaa982890d983ade86713de84b1
+rgb48le             3de7c2760a84d71a89d34b3af9e84e2a
+rgb4_byte           26ee353c28bf89ae1a6eeefbdf5cde5b
 rgb555be            39bb24bfcf01e379bd1653eb731ed21c
 rgb555le            e9f1e9fc4d0ef9fe18f1771b21d02dbc
 rgb565be            974ddb6347a700a75eec014311725aaa
 rgb565le            a0a2ce6d0907386f476364f9571ad3df
-rgb8                9b364a8f112ad9459fec47a51cc03b30
-rgba                9488ac85abceaf99a9309eac5a87697e
-rgba64be            89910046972ab3c68e2a348302cc8ca9
-rgba64le            fea8ebfc869b52adf353778f29eac7a7
+rgb8                ed5dbef043e98828142aaa3779561046
+rgba                5f75449f47ed05791f50588f89b0132a
+rgba64be            02d4dac3312a3598df8c81dfcb55222f
+rgba64le            e581e63881692653b3de437e9466a144
 uyva                03f362ac6a39f25286bc6616111b0752
 v30xle              ee090c91c28e70b126f6c76a64c39f60
 vuya                76578a705ff3a37559653c1289bd03dd
 vuyx                615241c5406eb556fca0ad8606c23a02
 vyu444              5d976b25782ff69e4b3b18453fa1447b
-x2bgr10le           84de725b85662c362862820dc4a309aa
-x2rgb10le           f4265aca7a67dbfa9354370098ca6f33
+x2bgr10le           b4db09220cf4917ee19bd3032de734aa
+x2rgb10le           7bb9c9f11d69b800dcdbdab63bd9c8dc
 xv30le              7e2350aea136c6fb76dae54e9d3fe1f8
 xv36be              23b6f253fcb375e4145cfcb562268c5f
 xv36le              778286003497f92b84d0bd8258d6b85d
 xv48be              c90889b2cf54cc78bd58e8c47d4eb791
 xv48le              2c15c1254449ec5f9135ae61bdf4e1d5
-xyz12be             e2f9f6a1ec205ab675a5a1c9521dfa6c
-xyz12le             fea1da11c07736303b139bc52b7d4759
+xyz12be             98a971371ca351bd9c37c53a25b5d9e6
+xyz12le             cb8c9c493797a7dac30e38af2b4beddc
 ya16be              071add03126a11dc6a06209e9b409f8d
 ya16le              b723211dc0647c944768c6e45e066b36
 ya8                 51a8dd297e35d40b06d3ebe8f4717895
diff --git a/tests/ref/fate/filter-pixfmts-field b/tests/ref/fate/filter-pixfmts-field
index 146ceab9c7..c0c82e7eb4 100644
--- a/tests/ref/fate/filter-pixfmts-field
+++ b/tests/ref/fate/filter-pixfmts-field
@@ -1,25 +1,25 @@
-0bgr                8f34406a8e6f293b6468b6941d8944e6
-0rgb                e2c35753a2271d1f9455b1809bc0e907
-abgr                c0eb95959edf5d40ff8af315e62d0f8a
-argb                6dca4f2987b49b7d63f702d17bace630
+0bgr                fcdb6654b1a12c7dc3fb76c77c58d1ef
+0rgb                0a21d5d1a0b59a7f5babfd5d41bc8494
+abgr                2f1b31d4da451d03611772bdb414d0d0
+argb                aa9efaa0f7f38c569818b65f27b52324
 ayuv                25f429cbd3c1ac60851d69c262601415
 ayuv64be            04b79237163bca61e040b5324552a4d3
 ayuv64le            d9836decca6323ba88b3b3d02257c0b6
-bgr0                1da3fdbac616b3b410d081e39ed7a1f6
-bgr24               573c76d77b1cbe6534ea7c0267dc1b13
+bgr0                8bd8a07ca25a3fd26ee6dacade0f3b8e
+bgr24               44ea97fef73cc434ab549dd425aa11b6
 bgr444be            064887b4ca8f49cfb7c776057bc75c74
 bgr444le            adbbebc13a6a00db18a91086fe66e99f
-bgr48be             1516f1c0816ea22e1a7590b82b9762c7
-bgr48le             bce78fec940d8d22186418e42b5a4caf
-bgr4_byte           59d0a8b0ffd371ed645ef8a22304435d
+bgr48be             72ecc2c75cb6eb6752ef6f533bcb9a48
+bgr48le             802d88a42b9ab201912e2f82e2d332ca
+bgr4_byte           f2848d7d4e00ef36a0def9f053becacf
 bgr555be            26371682da1569a7d979ce26096fc19c
 bgr555le            c31595e9ae64fcbd6147ef33b2899b28
 bgr565be            46e14950534befc7e791f65e66449bdd
 bgr565le            7f53bf9a2d3ab2badf50469e8a8e988e
-bgr8                47b2118262ad932cacf731cb66905ffd
-bgra                66d6e0846990fff0f09a07c43c3add71
-bgra64be            ec0bdef8663dc9d73818a48419cb4764
-bgra64le            9e2def541e51bc6e77fbffbff7fa146a
+bgr8                b6815484680a427b897bb2b0cfa4debb
+bgra                4448dbeb221278ec9de15aeda3289fb1
+bgra64be            da8911f856e50df3108301f958be4fa2
+bgra64le            ad330b77ba9d0ed996128d28fb3a9ac1
 gbrap               08a28b79dbd19246d1a94e3466af3624
 gbrap10be           29d46cbf021b233f5f1886e5d5fe21b4
 gbrap10le           4017c5d8c124438eb9aefa107db58d3b
@@ -84,37 +84,37 @@ p412be              a2afab602628b8da3f0af5c235f2a30e
 p412le              38cb842fef010b73d71654dc9ae4afca
 p416be              66616bf2320464b5e9b6372d48b6b9a9
 p416le              1039b97bbe42ef0af1bc46d2c0fc819e
-pal8                0658c18dcd8d052d59dfbe23f5b368d9
-rgb0                ca3fa6e865b91b3511c7f2bf62830059
-rgb24               25ab271e26a5785be169578d99da5dd0
+pal8                19d620ab20c82c4b77e48ab9a4b49e21
+rgb0                8fb0ad5da3693ac477e18e552ce2cd6f
+rgb24               5e42906afe2684fd952412bff6d19ed7
 rgb444be            a05fabc91e485ec02461be900cd72ef3
 rgb444le            61825e18081a86c96cc407f5e6105f28
-rgb48be             425b90bfe7d2c944921c3d224eb383f2
-rgb48le             33202a1d6baa93c5a29d88eeb47b5f04
-rgb4_byte           d9d8b1fc15960fc0b49edc7dbb1108eb
+rgb48be             0314d7c76d140b8273e0b82c29cedcf4
+rgb48le             5fff7b86636b44fec6de46605cf69adc
+rgb4_byte           ec8fbd3da4bebae9dcfd6ac93479f2e9
 rgb555be            ed65d5e935d38d7da789adaeb07a72c8
 rgb555le            c53ba385311e57e75f6919aceb7eb689
 rgb565be            692136248339f1ac903932d48b8f3311
 rgb565le            d0f227a59da3208567485aa79679fe8d
-rgb8                62c3b9e2a171de3d894a8eeb271c85e8
-rgba                ee616262ca6d67b7ecfba4b36c602ce3
-rgba64be            23c8c0edaabe3eaec89ce69633fb0048
-rgba64le            dfdba4de4a7cac9abf08852666c341d3
+rgb8                ef7df66d1852ea40ce7b6f92231f9e61
+rgba                38e123c51f09e43db6ca8c0e70d8b4eb
+rgba64be            3f9501a0d8fd7c366edcb9e17b461b48
+rgba64le            06a2944b65e110c443b8f411683ac4a7
 uyva                147398d2e8d310f915c95863ad192c5e
 uyvy422             1c49e44ab3f060e85fc4a3a9464f045e
 v30xle              394101c7c80b12e34f4352156a3a74b3
 vuya                f72bcf29d75cd143d0c565f7cc49119a
 vuyx                3d02eeab336d0a8106f6fdd91be61073
 vyu444              b139fb4ddaef12a7542a68277211efa7
-x2bgr10le           dbe21538d7cb1744914f6bd46ec09b55
-x2rgb10le           a18bc4ae5274e0a8cca9137ecd50c677
+x2bgr10le           11562a4807f5cc8daf68e55448ccea2e
+x2rgb10le           2f22b7e15119413584a6274d280d0c42
 xv30le              a8e8bfb66178ad5cbef5c82cedc1d3da
 xv36be              bcc7bda2d0a5d43db4464af6a4cb5d65
 xv36le              ba99f258370f2a56993e8760e6b30194
 xv48be              2abcd986a34789ba4310be3969020d0d
 xv48le              f6f2e33f260f48334197538f3331f7bc
-xyz12be             3b6eb75517263b9e54b9bfa869de394f
-xyz12le             27d1d6a488cbc5d53e8d12fa0e162ddb
+xyz12be             ce4ed359d6c534ea986a2866a76f8912
+xyz12le             9b59411ab319ca760d80fd2c4dcd339b
 y210le              4c2fba1dc40322584977d15dd07c9146
 y212le              ac2a47c45187dd54d0f55293cbffd954
 y216le              e65b5bfae1b40edbbed2012e9cd45e31
diff --git a/tests/ref/fate/filter-pixfmts-fieldorder b/tests/ref/fate/filter-pixfmts-fieldorder
index 63c82907ef..891f56ebad 100644
--- a/tests/ref/fate/filter-pixfmts-fieldorder
+++ b/tests/ref/fate/filter-pixfmts-fieldorder
@@ -1,25 +1,25 @@
-0bgr                955efde1695e9f4da276622e462ea9cf
-0rgb                2b0f066cfa0bef378a492875d541de8f
-abgr                832924b5351361db68dbdbb96c60ae55
-argb                80d08e68cb91bc8f2f817516e65f0bd0
+0bgr                ed80e078b78b398d8caab39124a2d0b2
+0rgb                dfd4ed6e9548810e7ff355c02ff5e886
+abgr                0ac5e4c0225e6db5b46ada907736eb78
+argb                f20cd9cdb9f57ea9cfa1e27b6354a967
 ayuv                7fd34c9bd28c8ac7979eaa41c1a8ab9f
 ayuv64be            beb82e063e760c916ee5dbc054a9a32a
 ayuv64le            84ef6260fe02427da946d4a2207fb54c
-bgr0                d2c676224ea80ac3ce01afde325ea1a0
-bgr24               b7fdbcd10f20e6ea2d40aae0f329f80d
+bgr0                35ad14f6aa7aba5f0e8d71e239628428
+bgr24               6cde5228727c3737fc3f7bc21764e1e8
 bgr444be            ca5acc0d5315d6d9f4422337c6f20842
 bgr444le            8a82dc31d4305abb60825c54e07c1b09
-bgr48be             b1be092ef916a204e002606cf83240fe
-bgr48le             3e64bd2ad45de53a780b2bf546fd5343
-bgr4_byte           319d0fda198978f05e0318863d10bc01
+bgr48be             6c8073dc700800da1ef0785f2dbfda75
+bgr48le             8f5895a42981382bdfdfaf905ad9b1e5
+bgr4_byte           e8f647b2bf17e747b24e3f244c05082a
 bgr555be            686b1f3318a44c48e2ea473c42d7d90a
 bgr555le            113908a73bbef613f68706be3352f404
 bgr565be            b0aca25c2de20dabce53cc0e6e27b8aa
 bgr565le            2e00c326499c8475ffc6aca5476ad422
-bgr8                cfc405aaf0162b4edfe9b3e047c5624d
-bgra                5967b559257dbb6784f93b9d2bef4edd
-bgra64be            64a4ec15bc35ede2018f650b50c2429b
-bgra64le            5029192d0f32383c9f25f8e7da7cb5a0
+bgr8                c612aa440eb635838d49ea98953c05d7
+bgra                9322574a5b0e3cb729f5e1bd1b462a04
+bgra64be            91b522bffa38b5f05cd83bc312307a32
+bgra64le            01e9939364c6f8898cd7a8d514e69730
 gbrap               00afb65d44bea99c31b318fdbeb3be10
 gbrap10be           8b27254a69cd0e25fa55262a743f95e6
 gbrap10le           52278021718ec370903dccc923dc8bf6
@@ -74,36 +74,36 @@ p412be              2d0c876b68f25ac0e8326faa81d911d8
 p412le              ab400cb3fa1aa16c3af8c58efa679979
 p416be              a0f8b5acad8fafc45fc7b2275fac1d84
 p416le              2e73af44eb933580da59981176848dcc
-rgb0                2e3d8c91c7a83d451593dfd06607ff39
-rgb24               b82577f8215d3dc2681be60f1da247af
+rgb0                6cf05b5688eb944138e4746fe3fda851
+rgb24               6752fd1a7da98819da2549df97b0ec0e
 rgb444be            1c3afc3a0c53c51139c76504f59bb1f4
 rgb444le            afced429728bf94c0617d0c031e356e5
-rgb48be             dd9db831fb640b113bd9531f3f19c226
-rgb48le             ef45b68fddf5e4d2e2ab3c08920dae64
-rgb4_byte           e9804cb4aa572a40ddf3204e9c2c4566
+rgb48be             6d0b2aa022d7ea000a0075dcc9fbcfb1
+rgb48le             50fc70387a86cba149dab997be275a7d
+rgb4_byte           5c15463b3a691b3d1b575c0320e60566
 rgb555be            b4ef7a0ad6f45b329a1ece563617c557
 rgb555le            bcc3bd31b2df8180341fa0e50b70852b
 rgb565be            d9b1e8f52a4044b0019ce56f6bc2242c
 rgb565le            eac5262d84669b2af28e9357660dc912
-rgb8                6deae05ccac5c50bd0d9c9fe8e124557
-rgba                1fdf872a087a32cd35b80cc7be399578
-rgba64be            5598f44514d122b9a57c5c92c20bbc61
-rgba64le            b34e6e30621ae579519a2d91a96a0acf
+rgb8                564f4be337e953edd99a5589288b9833
+rgba                37a1d263aebc96acf48023a012fbc672
+rgba64be            102ce7f0ba912109c85db41e68a0f72c
+rgba64le            6300e4ba2923745eb1c954589b2be4c9
 uyva                ccf5dfd33765dda88c4b4afa2ea31305
 uyvy422             75de70e31c435dde878002d3f22b238a
 v30xle              e453b8f0ad09e64e3a0173a4e3c2930d
 vuya                a3891d4168ff208948fd0b3ba0910495
 vuyx                9e4480c5fcb7c091ec3e517420764ef3
 vyu444              3ddab207d561a3ee5efae09e504207f2
-x2bgr10le           86474d84f26c5c51d6f75bf7e1de8da8
-x2rgb10le           cdf6a9e8a8d081aa768c6ae2e6221676
+x2bgr10le           6f085585b3cabc0896b49595d6db3d01
+x2rgb10le           bf8e9a9a50054c77eaf5a7f87f42bd64
 xv30le              8d1921d4a210d8107c20a805cb9a8117
 xv36be              962386c88268f4382004c3a7a82c5eb8
 xv36le              bcceffc985aaa8414c4b8072aa0889bd
 xv48be              4d6e4004b03767f12df8bb4e76c98ddf
 xv48le              9e94d82461a2131063157ac0dbe9467b
-xyz12be             ba6928f85c202cd77e216934f6bf0698
-xyz12le             964680cd3f3db8a7ef5510f90196961a
+xyz12be             5c2518e3a967eecc2d5fef3f17441d24
+xyz12le             1db22b2b186f729bddc99ee28cc55750
 y210le              22b1a02a39c4b325726bf8793bf1e8f2
 y212le              2f08fb195b948056c844acb1eee8d649
 y216le              360cb98ac80b13d3a8ec61c9f1ff3bac
diff --git a/tests/ref/fate/filter-pixfmts-hflip b/tests/ref/fate/filter-pixfmts-hflip
index 0ece4ea134..4c06d0a5da 100644
--- a/tests/ref/fate/filter-pixfmts-hflip
+++ b/tests/ref/fate/filter-pixfmts-hflip
@@ -1,25 +1,25 @@
-0bgr                823994965cfb2ba4566f878c75eed684
-0rgb                ada57572ee2b35f86edac9b911ce8523
-abgr                d2da6c3ee72e4a89a7cd011dd08566b2
-argb                36cf791c52c5463bfc52a070de54337e
+0bgr                dd980c33aface85de810d6f2a2e5498d
+0rgb                6b781e04585ac0c526cc54c5911335cc
+abgr                589dae02860c76eaff3b3760728829f5
+argb                6b0427b62f9d5fe2679b922785ef498b
 ayuv                ae787b7ee2a8b1f4af2335ddca56ff58
 ayuv64be            9d613f9046e20009f5c4be3f4bd7c3cc
 ayuv64le            4cedbc38b3d4dcb26cdab170ce6d667b
-bgr0                66e9fda4e658d73bfe4fc9d792542271
-bgr24               db074979bd684ca4547e28681ad3f6ab
+bgr0                bb1077ec8a2aa1a4eac99abe89fd4324
+bgr24               2ca95e031b4fe1670a8bf4f50070d740
 bgr444be            63ad2fe7b4e44b11c5ca03b545a941ca
 bgr444le            a742195a606d5c3f1de795b499077f01
-bgr48be             e59efaa40ad1652c74a7c83aba43b4f2
-bgr48le             13c4f904e318356c96ffce911226cf83
-bgr4_byte           8de3494b53a459ab0f748a525e87ad4c
+bgr48be             1e9adf979efb52cd5b8a6f3754fe765e
+bgr48le             bb74b81f1e768940363ae5740a00c7d3
+bgr4_byte           67d4a0cbaa19ed378f40dd4166c6479b
 bgr555be            2b491222a2807a112b404f2924ba0c3e
 bgr555le            533feb969289df2bc628d46816d1db89
 bgr565be            3094c0320e068305b35c57b82476370c
 bgr565le            d20c95743b957cbecd09272a630f22cb
-bgr8                67fb3fd116f0c0eb36d8ed03bdfbb0a6
-bgra                275f05a382bcbc9bc77c06b79e1d8a71
-bgra64be            1cabeafe9c21a4f7ccd976220f22ee5a
-bgra64le            1b15c01c94cf9af89273da1d1f994cff
+bgr8                da90a5fbbbe1a55944436f9b45cf946f
+bgra                ab5a9da64b203cd591f2acc003c7400f
+bgra64be            428a1a243139e6450f9133ea53c3422a
+bgra64le            1642d19418f25df689c18da7a5d0877f
 gbrap               bf6a2b2f206fbbb332a718fb570d7cb7
 gbrap10be           f188dc23756469cbdd172fe97ad58121
 gbrap10le           262f0501633ea4670020fae8ac6835e2
@@ -82,36 +82,36 @@ p412be              a106a2e9bb534f31173dc93ac2888800
 p412le              77c33ea4dc8f94a8054f19b8b9bac491
 p416be              da6807d924b63a54b804d32e427524bf
 p416le              a42b88cabc4395aa0bf1bcbbc876f48f
-pal8                5b7c77d99817b4f52339742a47de7797
-rgb0                0092452f37d73da20193265ace0b7d57
-rgb24               21571104e6091a689feabb7867e513dd
+pal8                cde1af039a571a3ff596ef6b43975650
+rgb0                8766a915d72b74e6f5a9a2ab9d7318f6
+rgb24               e707362e32d49f87b6fe90e3c23992d3
 rgb444be            38d6d0e9aa15ce95f3fffcde8437632d
 rgb444le            4c5bb6590def780c480abbe6a6349b1a
-rgb48be             dc7f3a98c0913a6defa56bf032590ad0
-rgb48le             a813a316f8b5d49340f64990f914e2f7
-rgb4_byte           f28c594e547d38166c2757338948e874
+rgb48be             eabade87942c975b4a0642e805f8cd3f
+rgb48le             7578c193b7d7f6b60675c7f07025337b
+rgb4_byte           ed9533e6df4afc15614f7f10d1bd2ab9
 rgb555be            316c7c1f785d8ba84dbe3eaa20591158
 rgb555le            07f561fec000bbadf6b732a358c6126a
 rgb565be            593c48d6214cb40f6472ebdf9f6ede1a
 rgb565le            ccc896ad1852500b7e72bb858860d747
-rgb8                68a3a575badadd9e4f90226209f11699
-rgba                51961c723ea6707e0a410cd3f21f15d3
-rgba64be            c910444019f4cfbf4d995227af55da8d
-rgba64le            0c810d8b3a6bca10321788e1cb145340
+rgb8                88ae78eaa7f19f668f34381d0253cc14
+rgba                837b7683dfb82fa3a8da84f61b6b0e39
+rgba64be            b353df8e8be2cfe73839170bba8c9edc
+rgba64le            d264db0b76add9eaa3b96e4d54447c25
 uyva                a8391c24037e2a670196b47bf6a2ca57
 v30xle              ea5575ee99f826d7447bcc47fdb6639f
 vuya                7e530261e7ac4eae4fd616fd7572d0b8
 vuyx                f1d087284fb1556d76e6def5f94bf273
 vyu444              7b72337f92a7223fd115265e2f769276
-x2bgr10le           827cc659f29378e00c5a7d2c0ada8f9a
-x2rgb10le           d4a8189b65395a88d0a38a7053f3359f
+x2bgr10le           dac3be3990fa3e68a72dc9526727a967
+x2rgb10le           c0f9f5483de1072a8a7fbb079baf35b0
 xv30le              7370eadd13a2fc79186443713a639332
 xv36be              98f578df965eed369f46cb135e2d1345
 xv36le              e478b4b54698beb3ce1b9a2dd691d544
 xv48be              e030a2c7b1b600cfacb691b6e90c2e3d
 xv48le              fbd7f8c65cd6fc9f9108dc9a1f977dc3
-xyz12be             3c50a51a3c486a0c6853e4bbbcf3f244
-xyz12le             e020897d826ea20ded16f30ea1eb018d
+xyz12be             78b36b4e168deb2a84fa49e78215e8d2
+xyz12le             0fd5e54c6865adb3166c112a2721d4d2
 ya16be              70fa41c32ecaf3370edc38add6096db2
 ya16le              3b2c20f9e80717628ced6c6468507f63
 ya8                 4ad5920716de3d2fbbc49f95adb60345
diff --git a/tests/ref/fate/filter-pixfmts-il b/tests/ref/fate/filter-pixfmts-il
index ce707f9c8b..e02842e4f4 100644
--- a/tests/ref/fate/filter-pixfmts-il
+++ b/tests/ref/fate/filter-pixfmts-il
@@ -1,25 +1,25 @@
-0bgr                501a8320becc400e2a72dc847003d82d
-0rgb                53efe0182723cd1dedfdbf56357c76f5
-abgr                97603869e6248a8e5d8501563a11b114
-argb                9e50e6ef02c83f28e97865a1f46ddfcd
+0bgr                3e2c69d13a3c09c381f87f4f06defe38
+0rgb                0e7c5ba43ae604e1b4c9e0cee6bd3e02
+abgr                ed8d20af295e3006692a6fe56af163ef
+argb                3bb1bc9c7577b71f9d22591c88cc9116
 ayuv                6e65a0b3bb18e89997dd558a7331df17
 ayuv64be            a9bec32e276bfb03b5673279beee5381
 ayuv64le            6f45f683e99ddf4180c7c7f47719efcc
-bgr0                590dcd1297d1dd4541eea217381db604
-bgr24               73afe7b447b083a7c2d682abe8dd451a
+bgr0                42d7a115cf33f5e2660bc2ab4f95f54c
+bgr24               087328bf710ae71cb18d82e59ef507c3
 bgr444be            4fa078adc981fd07440a7b657c98c4c1
 bgr444le            404c22249a4222f3c086ef9ef79e090f
-bgr48be             6de326fc52d92c6a31d74378534d2fff
-bgr48le             d37e673d846e9ceb06641ba6d480db84
-bgr4_byte           f275df6bc1d33eb037b0f609bfa5a7a8
+bgr48be             fc5b49cf6112d421cdd8dfbfef8853a9
+bgr48le             73283020b43e5017e87570d7dde6db7f
+bgr4_byte           f836dd91449ed0a1b63f2a687e999a33
 bgr555be            e9007cafaf389f2895cf0e45079ecb90
 bgr555le            9d4d4c0c5e85eca0030e74ed873e9538
 bgr565be            bef8c77c32880c9eebe4507ebc3f2a6d
 bgr565le            8190c5275d8b62d997362f999b72be16
-bgr8                ef01593604512621b3d175f8b6c2ec9e
-bgra                e6ae08f06f157297296b319a249dddf5
-bgra64be            de7c036f20fc54d89690239cc6239678
-bgra64le            d1aa975fa03ce226008396b30a653420
+bgr8                401bcf247a95a7dd52b1cf0319637b2d
+bgra                46d7a59b2bb11c378efd72a0b7377175
+bgra64be            b8cabd17a25460d0a930a690ab16754c
+bgra64le            b8cedf4d28d2a3b1d1f42525ad3405e4
 gbrap               575ff1fe5d7585ed82da1db35f106e4c
 gbrap10be           bafa57a2e4331d8a39f6f0087c85d4b1
 gbrap10le           553a1f439d8184dc400432d3f786fbce
@@ -84,36 +84,36 @@ p412be              481cb1d4c7b125d0148f5aa132ddcdd5
 p412le              6a7cf1156ee98f00ec31c863b9fb5ded
 p416be              47dec75cefeb6220be7731bc25b7be9c
 p416le              4990b51ff889d9ee23e68997f81c09f1
-rgb0                cfaf68671e43248267d8cd50cae8c13f
-rgb24               88894f608cf33ba310f21996748d77a7
+rgb0                12242c499fc0326933c10a9df1fb1c3a
+rgb24               4d56e90292ba5ebc3c3958ce17e1ef9b
 rgb444be            99d36d814988fb388aacdef575dacfcf
 rgb444le            71b4b1a44e13d1bdb31f81b5f9a75803
-rgb48be             267ac00248129e735a917175b5cf0a82
-rgb48le             15e7d807b7f4ea68ac506dfc2db9146c
-rgb4_byte           9bd11ff523ea914bf0b26f8af7965054
+rgb48be             8d0f84af04c996ee315e29f89d61199b
+rgb48le             3b9cedbf3a11ed0de967d319f81c8888
+rgb4_byte           aa28f58f5177abe8728fa2144a610bce
 rgb555be            fd0be5e3f5f6fdb250f8368c2eabe943
 rgb555le            c85a16162ca83496306ba6c888c1a8b7
 rgb565be            046e381ad0be8277f7020420297a8f6b
 rgb565le            9b79220c3c2f23b60a55c2bdf709ffb8
-rgb8                93f9fa5ecf522abe13ed34f21831fdfe
-rgba                625d8f4bd39c4bdbf61eb5e4713aecc9
-rgba64be            db70d33aa6c06f3e0a1c77bd11284261
-rgba64le            a8a2daae04374a27219bc1c890204007
+rgb8                55030429e546a22365155488c89e064b
+rgba                37c0b16c27b7f038889c5c9f31abfa85
+rgba64be            70c63399f97455a634b6ffa1a19f194e
+rgba64le            64f40937342f6e7a33a505207cf63dc2
 uyva                d2655e1a1c56bcb48f7c7a6a6270dd93
 uyvy422             d6ee3ca43356d08c392382b24b22cda5
 v30xle              40776197aa84a4784d195692fe890c88
 vuya                b9deab5ba249dd608b709c09255a4932
 vuyx                4251d94ee49e6a3cc1c10c09cd331308
 vyu444              50e9e24a38afc81541a536d06aab5ebe
-x2bgr10le           135acaff8318cf9861bb0f7849a9e5e9
-x2rgb10le           517fb186f523dc7cdc5c5c6967cfbe94
+x2bgr10le           aba631dd8ae5c87c8c20b8a063255052
+x2rgb10le           a5b39385c20fb31c2f77afe11b0a2f73
 xv30le              ccd81ba2ba845917d5d1c9fa2a6e2fc6
 xv36be              3bbb949278ea55cc947ee03bd9c27c2d
 xv36le              102c0e817d375ddd6b2cfbb4262dec95
 xv48be              4d7376651fb7b3e84d00abad6c785aad
 xv48le              a1a8ff16d9a864568e5e557734bf3d6d
-xyz12be             b7d50e283360bf69fd661369110b26ef
-xyz12le             d5b1d45c3a136bb3d04f70a619c86c8d
+xyz12be             338562f20c39d0a1569cbcc508b14ee5
+xyz12le             49a1dd2330bdd75288a6d617532403c0
 y210le              d4cf9b53cd7ff22f087743d483e88480
 y212le              d5a2b4677ddb4a3bc3e5cd5cbb20f426
 y216le              9e44c6d76b09bcbe71738423b4b3d67a
diff --git a/tests/ref/fate/filter-pixfmts-kerndeint b/tests/ref/fate/filter-pixfmts-kerndeint
index 558e9451bf..f1097ed13e 100644
--- a/tests/ref/fate/filter-pixfmts-kerndeint
+++ b/tests/ref/fate/filter-pixfmts-kerndeint
@@ -1,10 +1,10 @@
-0bgr                7de3240bb5ab40dc9b599f7112990439
-0rgb                09f7b9006720a4b1ba4e2927b441022c
-abgr                4242d4bbfd5e5697a9a1cfe478a0ae46
-argb                48ea8cc401499ffbf0ac34bacdd1146d
-bgr0                e50249e05a9790c56033bffde502d1a2
-bgra                04f4d485067338e181c4c64b4df1246a
-rgb0                898e3d3bd40a14824929ad83d69be24e
-rgba                919e516d3a052401eb1c658412d3584a
+0bgr                0ddbe8b2f47815f7e3b58e510cb48bfc
+0rgb                f3dff0e17e9d1e7978c57a434f1b88ae
+abgr                9c9aedba658702ff6a7a736487fa1936
+argb                b698fc7b985aa61a6292d4c10a653bf0
+bgr0                4aa5e9dcec1cb30431d4bae77c25f165
+bgra                8f5d77e2a24ff485fd7ace5a708fa435
+rgb0                16ef1b179de721cc3d6415c77f5563a1
+rgba                723da29b6bd68cbdffbc1c7a60666b3d
 yuv420p             636b260f98ba9f98e304ff9f82d63393
 yuyv422             768afc798f77b3311d7b1a33caef902f
diff --git a/tests/ref/fate/filter-pixfmts-lut b/tests/ref/fate/filter-pixfmts-lut
index aa52c08d9f..c56cfc2a90 100644
--- a/tests/ref/fate/filter-pixfmts-lut
+++ b/tests/ref/fate/filter-pixfmts-lut
@@ -1,7 +1,7 @@
-abgr                0a932e831efd4ec22f68b25278bac402
-argb                4f575be3cd02799389f581df99c4de38
-bgr24               fa43e3b2abfde8d9e60e157a9acc553d
-bgra                4e2e689897ee7a8e42b16234597bab35
+abgr                d7ab4483bc020bb9f0e3bfc74b073349
+argb                461a88071b2fcca8a808d3f6512e2eb6
+bgr24               c542d5353f53385e321eac020c483f84
+bgra                c7222c01216438f481150b3d218cfd5a
 gbrap               0d1eb2c39e291c53c57302cdc653c2fc
 gbrap10le           fed58af6d557a7069a4a39e6d8f5f4e0
 gbrap12le           43fec231bd1d3dd957cdd8478cab9259
@@ -18,10 +18,10 @@ gray12le            22af21a88171356565f79f512073c51e
 gray14le            45a1966fcf02649f86960fb4f3622ea3
 gray16le            1734808cf4adb35ac1ac6e63a490af64
 gray9le             9f5079f30687c2eb95b2155fa571fd57
-rgb24               a356171207723a580e7d277078072005
-rgb48le             5c7dd8575836d18c91e09f1915cf9aa9
-rgba                7bc854c2698b78af3e9159a19c2d9d21
-rgba64le            3a087ecab583d1930220592731f282b4
+rgb24               89501252234776c77301adde609123da
+rgb48le             9f4d4e408b862b78f487b76f173031a9
+rgba                516c2248cff77cd843fb5978699ebbb4
+rgba64le            8bf8ddb881987a2f02e0c5ee3a7c9a68
 yuv410p             10cf5dbbccb858a9ab51e0b8bf278f6d
 yuv411p             3f0bfa543ba513c6b6d7fff785fbe150
 yuv420p             ad99204ace669a383f8ae03a1ea5b98f
diff --git a/tests/ref/fate/filter-pixfmts-null b/tests/ref/fate/filter-pixfmts-null
index cbedb4d894..94ff7155e0 100644
--- a/tests/ref/fate/filter-pixfmts-null
+++ b/tests/ref/fate/filter-pixfmts-null
@@ -1,25 +1,25 @@
-0bgr                4060279c35dd8810a2f55a021b836557
-0rgb                527ef3d164c8fd0700493733959689c2
-abgr                023ecf6396d324edb113e4a483b79ba2
-argb                f003b555ef429222005d33844cca9325
+0bgr                25bd3d5a5dddc31a0a43736e9ad33672
+0rgb                d6de573611608f12d91a5ca4cda15879
+abgr                fcc5830da8f62bb193e311b3ca3d41a2
+argb                1aa8b1e25a3bccc6faf435d71a633f16
 ayuv                631859cdc018cd9671482e435a87becc
 ayuv64be            553477ffeeaf59d54fa12012ff13c783
 ayuv64le            07b9c969dfbe4add4c0626773b151d4f
-bgr0                6fcd67c8e6cec723dab21c70cf53dc16
-bgr24               4cff3814819f02ecf5824edfd768d2b1
+bgr0                9879894001606a5a155deb0fab3013d3
+bgr24               5b3c28d551398d7c10767fdc827c56c0
 bgr444be            1cd47c1555f947dfcba99192e3429d20
 bgr444le            e1832fdc9b118d4440ba03cea6e30428
-bgr48be             51477f029592ddb6b912980fdf2df7f1
-bgr48le             b34faf404b33c74cd25f5f912ca3274c
-bgr4_byte           7ca99bc8a1c7c831cb955806ac05cb72
+bgr48be             0a33f269723fe1ce32d90310fdb2266e
+bgr48le             24a456e5118e9070dd8215c21c0a04e4
+bgr4_byte           23b8ebf77c759e6d42cc8e497dd588ec
 bgr555be            6d32031ad4f52723023e547058a62c71
 bgr555le            823a3b2f2585e537da5cb76c8ce30cf4
 bgr565be            438b0f18fd754280d5dc2f421c376ffb
 bgr565le            acab2b65c0fe5f9618c90f77f70ab3be
-bgr8                898a66734bda0572dfab1edd8239f6a2
-bgra                3934fb81a602dfa7d29420b1a66f0fd8
-bgra64be            c8d3217bf58d34f080ac88c0b0012c77
-bgra64le            b71d75a928aac14cb768403e6f6a9910
+bgr8                ee156559d119a8339c4208fc3284de8d
+bgra                7c37d0b9df35c240c5383c4825795abb
+bgra64be            605717f3a0d786d7024b0ac00fc93ccc
+bgra64le            c3fa646c33e6327621b81f7937764d15
 gbrap               98d30987407c51e5620921e11d40a4ff
 gbrap10be           edcffb185e44b6dae5c2ead5505b7125
 gbrap10le           2a7392e14b21b1f9457526a071236a6d
@@ -84,37 +84,37 @@ p412be              d3055624d596c30deb633f24761d6888
 p412le              1f19a675b00d8c9df499200fd80bcc10
 p416be              fd828e966d45ae908f5d2d4b3349b816
 p416le              983064bfd506be1e26cd57bafc14ae50
-pal8                ff5929f5b42075793b2c34cb441bede5
-rgb0                0de71e5a1f97f81fb51397a0435bfa72
-rgb24               f4438057d046e6d98ade4e45294b21be
+pal8                1ad0058bc23d1a3080be13be2c5ed770
+rgb0                e7914fb0e8056cb41408dde9d04f8a31
+rgb24               ac8c6beb8794390e73fc22a2bd7cf3a0
 rgb444be            115e5259b91f4a416546b09570347633
 rgb444le            f3f66689cb4c810563fba7665c526800
-rgb48be             18127d8ec64aa21619ada80b93514906
-rgb48le             60d0ba0e5a429c947aaa736be54aca87
-rgb4_byte           7d68393a3de6f392cf2ed05ffaec6259
+rgb48be             f9afdf63b33bf83ea424eb393afcbe14
+rgb48le             593db90b35b318119e70844b0d6133ac
+rgb4_byte           3928f544586876b4f20841952f05835f
 rgb555be            f76c8109974636b54bd0cb4c36bb883d
 rgb555le            21daf4d05999ccf3eef7d492e73c4d5b
 rgb565be            85711f35f71340ba23e553a07d246656
 rgb565le            e04771e79a8ee8a51e9a325540e6215e
-rgb8                7ac6008c84d622c2fc50581706e17576
-rgba                b6e1b441c365e03b5ffdf9b7b68d9a0c
-rgba64be            ae2ae04b5efedca3505f47c4dd6ea6ea
-rgba64le            b91e1d77f799eb92241a2d2d28437b15
+rgb8                ae44ee271d3e99bee7eb30fa68c4cdf5
+rgba                e7602cde2648ecac5a1fe796034b4bcc
+rgba64be            9ac324d66de9ac58cd3967a297c896ca
+rgba64le            63397007a712bba3898e2d317d14ec36
 uyva                8896d7525f12de08818a01a5d5cf84f1
 uyvy422             3bcf3c80047592f2211fae3260b1b65d
 v30xle              44503e6d78bc474c1b72c5ceb1779539
 vuya                3d5e934651cae1ce334001cb1829ad22
 vuyx                0af13a42f9d0932c5a9bb6a8a5d1c5ee
 vyu444              93912234400a4373b1a6b5c4e4b1a4ef
-x2bgr10le           550c0d190cf695afa4eaacb644db6b75
-x2rgb10le           c1e3ac21be04a16bb157b22784524520
+x2bgr10le           34f84d56ac46be303f4285b6c656501b
+x2rgb10le           76a64e524851f1932007b6688544db75
 xv30le              7dfdd664a9792bb06a19a63353828da0
 xv36be              9f556ee59a672fd8725f0bb36ce3e4b0
 xv36le              e08dcbde02f1c28a3554f372ad1278e2
 xv48be              ce34993b4b4411bba1d852b9b86aa39e
 xv48le              df913a7e61b162aa98303e5393e60c63
-xyz12be             f257f86373207af8aed0a1a05171df3b
-xyz12le             7922f99edc44a2c26a25becbea9914cc
+xyz12be             f0ac3e7cffb5745e4759c577e6bab60e
+xyz12le             9a072850c9b52a676bf4f4c38bb35740
 y210le              04e9487b6cce38e7531437e946cdd586
 y212le              825768be8fe92708ae80be84855066ed
 y216le              0e99aeddfee304e72d525d72998d9e9b
diff --git a/tests/ref/fate/filter-pixfmts-pad b/tests/ref/fate/filter-pixfmts-pad
index 9370ca2cb3..1bd4723fcd 100644
--- a/tests/ref/fate/filter-pixfmts-pad
+++ b/tests/ref/fate/filter-pixfmts-pad
@@ -1,12 +1,12 @@
-0bgr                55d41bba3609383bf658169f90b30b42
-0rgb                8e076dd0f8a9f4652595dffe3544f0f0
-abgr                52738042432893de555e6a3833172806
-argb                2a10108ac524b422b8a2393c064b3eab
+0bgr                4112806dfecf3197cb6c8a15dacb7e66
+0rgb                7c1e1e7fce6905bc14429940d5506188
+abgr                2ab0e3526deef8c8a43e67097decc2d7
+argb                11f9da82db31de53ae1288023614b4f9
 ayuv                1c0934c07791c49da33c14f535d73abc
-bgr0                025d4d5e5691801ba39bc9de70e39df0
-bgr24               f8b65ad845905c7d0c93ca28dfbb826f
-bgr48le             4564b56dd1f2a9761b8a7a5244ac4c49
-bgra                929aac15e848038e367c250037575f9f
+bgr0                d16a9b2be5cfd456e4d281a00b10fdd3
+bgr24               614f07739096757b6f6e637b765b4b02
+bgr48le             f816e107610878ed228f4effba6fd2cd
+bgra                3e6e364b31007a2f22c9337e59238b25
 gbrap               5f16cccab5a17cb766c882e865995167
 gbrap10le           e63e0a1ae9afd7e6a732f18be194e761
 gbrap12le           eb7a5ff44a9b5b46bb9829838224ed8e
@@ -39,10 +39,10 @@ p216le              8718662e226a4581561e7bb532af2d83
 p410le              5ca28f2bcc849987810e1f3437b12feb
 p412le              2a619fca8166dcd09251a577ed36ab53
 p416le              fa4e023d0bf4b03b0ffef3d4d35abf7e
-rgb0                0984eb985dabbe757ed6beb53db84eff
-rgb24               17f9e2e0c609009acaf2175c42d4a2a5
-rgb48le             ed08db9b1aa50d69b8c3d73db93e390e
-rgba                b157c90191463d34fb3ce77b36c96386
+rgb0                fd0290da9ead26ec218bae0ee7008151
+rgb24               0cc442e4f6604fdece751a933eba2dc6
+rgb48le             08b6f1f90626c14513575618fa24b735
+rgba                45e8f7255a1a43f4f862eb430854ece0
 uyva                06271af718417c21d5bc6a992b04c32a
 vuya                44368c0a758ee68e24ce976e3b1b8535
 vuyx                ff637b205b78ee581e393124d0f44f5d
diff --git a/tests/ref/fate/filter-pixfmts-rotate b/tests/ref/fate/filter-pixfmts-rotate
index 4a7cbe92bb..f8b548f1a7 100644
--- a/tests/ref/fate/filter-pixfmts-rotate
+++ b/tests/ref/fate/filter-pixfmts-rotate
@@ -1,16 +1,16 @@
-0bgr                4060279c35dd8810a2f55a021b836557
-0rgb                527ef3d164c8fd0700493733959689c2
-abgr                023ecf6396d324edb113e4a483b79ba2
-argb                f003b555ef429222005d33844cca9325
-bgr0                6fcd67c8e6cec723dab21c70cf53dc16
-bgr24               4cff3814819f02ecf5824edfd768d2b1
-bgra                3934fb81a602dfa7d29420b1a66f0fd8
+0bgr                25bd3d5a5dddc31a0a43736e9ad33672
+0rgb                d6de573611608f12d91a5ca4cda15879
+abgr                fcc5830da8f62bb193e311b3ca3d41a2
+argb                1aa8b1e25a3bccc6faf435d71a633f16
+bgr0                9879894001606a5a155deb0fab3013d3
+bgr24               5b3c28d551398d7c10767fdc827c56c0
+bgra                7c37d0b9df35c240c5383c4825795abb
 gbrap               98d30987407c51e5620921e11d40a4ff
 gbrp                5fbc319e30110d19d539f5b274eddb6d
 gray                188590b1231afd231ea910815aef2b25
-rgb0                0de71e5a1f97f81fb51397a0435bfa72
-rgb24               f4438057d046e6d98ade4e45294b21be
-rgba                b6e1b441c365e03b5ffdf9b7b68d9a0c
+rgb0                e7914fb0e8056cb41408dde9d04f8a31
+rgb24               ac8c6beb8794390e73fc22a2bd7cf3a0
+rgba                e7602cde2648ecac5a1fe796034b4bcc
 yuv410p             5d4d992a7728431aa4e0700f87fb7fd8
 yuv420p             a014c7eb7a8385d1dd092b7a583f1bff
 yuv420p10le         15c83294ef560d57f25d16ae6e0fc70c
diff --git a/tests/ref/fate/filter-pixfmts-scale b/tests/ref/fate/filter-pixfmts-scale
index 67de3d414d..a349e3b6cb 100644
--- a/tests/ref/fate/filter-pixfmts-scale
+++ b/tests/ref/fate/filter-pixfmts-scale
@@ -1,25 +1,25 @@
-0bgr                0576e427ba28f19e55a856f528e7c282
-0rgb                80a58af8c639743307207ab4b69ca863
-abgr                63f2eaa8712ea6108985f4a0b83587c9
-argb                f0e17c71a40643c33a5bcfb481f6d8f8
+0bgr                5ca05e4e451f444b69c0fa28d10dca56
+0rgb                14f9c992ac75e563169a04321322c9fd
+abgr                63428684974e05d4bbef9c9f1dd8a7d8
+argb                af42d54f86529a8a9b31c02c9dc29a79
 ayuv                f20a5cc54f6459aad6b5f36ae092da5d
 ayuv64be            8cfd8a03f74829efa5ff1c1acd6aa5fd
 ayuv64le            59fb016f9874062d0be77cb3920ffed2
-bgr0                243d58ca64f97b2f415b4c63cb79f0e1
-bgr24               18744aaab4b8bce065a7144dc0ccf921
-bgr444be            920760bee08c4fa161bf060e21ebba92
-bgr444le            01be36a28ebca1a11eb4d192986cd4e9
-bgr48be             3ae02769c69d2512eaa26fff65763acb
-bgr48le             a6ce2344f07b77438258b6787fe5c24c
-bgr4_byte           01efea74088e5e3343c19ee053b95f31
-bgr555be            ab353278d103d379e1ec86e5cabb645f
-bgr555le            16ccbf59297e4b9ab25fd8af5a84a95d
-bgr565be            3477e19fc11f95285836f30fdff26c1d
-bgr565le            82a81e7c9d4e0431fa22f4df9694afdc
-bgr8                2c57e76ccf04d51de6acafcf35d6fa70
-bgra                d8316272bc3a360ef9dff3ecc84520a3
-bgra64be            4e6a1b9f9c18b881c27d76611d45f737
-bgra64le            efeee0abcc658ebcff049d5e74d74943
+bgr0                209378e0c7746e319ce34f62f24140a8
+bgr24               af9f6dce11ec2525cc5f2741031a4e3a
+bgr444be            849191b9e4ae5a1074deadcef799f559
+bgr444le            0ced6525c95f0fa4210a2988e6e2ed7f
+bgr48be             de187915c25edab0a3ce0acb69cf601f
+bgr48le             41c9a8741def04f67c7fb6459c32366b
+bgr4_byte           c67f744a83853782b58d6b547a2a957f
+bgr555be            690aa3cd49c16c1e950ded73e0985a87
+bgr555le            1644d5b6982f8f1353db0979722b5006
+bgr565be            5c002c40d6a538a7ce46f852e79d47f6
+bgr565le            f013b4a6f22330ce8f45687d4f8f8f17
+bgr8                700fc896fd5e8512993998d5fdee54e5
+bgra                6b4b9467429f069cadc437b0b9d21d00
+bgra64be            04bc9872291c850183b17d73e611f6f3
+bgra64le            a4a6bffaea8342f05a8b46ff283f1a71
 gbrap               4a100f750ac846b34bfeef0d6893c3de
 gbrap10be           50735fbc471a5ac5a6645c85881f3670
 gbrap10le           6e1cba57029fdf0f9d46b5e5cd55112b
@@ -84,37 +84,37 @@ p412be              dc04d91115bcd4100bfb61c103e0877c
 p412le              b01358e9c0fa99a98dadd28769f949e8
 p416be              aa54294859a8e6cb2c9cf64d343fdb60
 p416le              d91a0858ea8d2cf1ed29f179c9ad9666
-pal8                29e10892009b2cfe431815ec3052ed3b
-rgb0                fbd27e98154efb7535826afed41e9bb0
-rgb24               e022e741451e81f2ecce1c7240b93e87
-rgb444be            db52b9ecdf98479b693e3f4bd9e77bac
-rgb444le            63288425c05f146cde5c82b85bb126e0
-rgb48be             45b25016f10d54cf36eef3479afd8249
-rgb48le             40577b147620ecfb115717473d000697
-rgb4_byte           9e540a2e7193ebcbf1c7f85d192a0c4e
-rgb555be            cb5407a0d40f3d0120155daeaaa9a222
-rgb555le            c15540d1fc887882c35860634009c439
-rgb565be            c69fa7d6e458509de65e911d147629a8
-rgb565le            a4a6ef89cdc10282b428cb1392f2a353
-rgb8                bcdc033b4ef0979d060dbc8893d4db58
-rgba                85bb5d03cea1c6e8002ced3373904336
-rgba64be            ee73e57923af984b31cc7795d13929da
-rgba64le            783d2779adfafe3548bdb671ec0de69e
+pal8                9cc475e69513c1aca82a311599a689de
+rgb0                98858630ec1240a7e95420391d009d31
+rgb24               39d8f4f72c466093a7ee68ba33d5f977
+rgb444be            710e2997877910b098e68d30fee53683
+rgb444le            6fd6eeb57ef992e8b8f97b2bf236d6d6
+rgb48be             656d0193848db00b952ac831d2aa0f35
+rgb48le             d3b84f4980e14fa3de68f78d05538791
+rgb4_byte           b300340cede1e3e1a55b8327d7617a45
+rgb555be            a15f5da4533a2859882d213ed2f7952a
+rgb555le            f86100e98ded55b8bf7e4785e5a0e321
+rgb565be            8f3e57bd7cac3213b2da284c0a156c80
+rgb565le            f0a2201a6b83386736e55917e5851cba
+rgb8                03ba566abefe8596ef3dae0f5ec8ce5a
+rgba                2b035d990bb22dbd4a2a2a48bb96f09a
+rgba64be            646c9073e492e8b8fc738d46cf17ab6d
+rgba64le            1dacdd04b2194b3ad93e70aa1eb66980
 uyva                2358038be6dac002a6c736e798a3d91c
 uyvy422             aeb4ba4f9f003ae21f6d18089198244f
 v30xle              8cba1fdc0ba2c39eb6fb5885dcf628a7
 vuya                ffa817e283bf6a0b6fba21b07523ccaa
 vuyx                a6ff68f46c6b4b7595ec91b2a497df8e
 vyu444              d663334119da56e36aca1e8e4eb29a39
-x2bgr10le           94fcdae6bb03cc55675fec1f708ae765
-x2rgb10le           99ca41ff2365b1615c05f8d197471105
+x2bgr10le           ecf5e8ccb022ef9b1354cc2e6f0b9789
+x2rgb10le           9993757ed133d4560706aaf72aca40bc
 xv30le              a2a351cbf936651b558abfc70a925057
 xv36be              4d084adca0228d7750d1e2e877e0d79b
 xv36le              de9c74e94dc19c828e1572aa283d8aca
 xv48be              9e58d1a045df100b0dec116e13be5b4e
 xv48le              fd873d53609b2fbdfe99470f515a234c
-xyz12be             f1905012d9b845306d9bef68d0fc81d5
-xyz12le             cfe1a3bbe391d83d381f590a00e1a16d
+xyz12be             2a4c6d8f9ddbfe9cee3312fef390aee5
+xyz12le             fe31a4f8a59f6880d9056fc689977e97
 y210le              7c2aef142d88ab343ec01acd45f38466
 y212le              39a3c0c843041ad4501b3107dd91ef17
 y216le              17be2999e97d36b8ed903f07ef428c09
diff --git a/tests/ref/fate/filter-pixfmts-super2xsai b/tests/ref/fate/filter-pixfmts-super2xsai
index 3c7e65ab5a..40e6a933ea 100644
--- a/tests/ref/fate/filter-pixfmts-super2xsai
+++ b/tests/ref/fate/filter-pixfmts-super2xsai
@@ -1,14 +1,14 @@
-abgr                e21be14b5fe9d7a29740a418c325b17e
-argb                563489534663cb2b32beed2b41370c37
-bgr24               a933eac9bb53c3ce3c33950b229996b5
+abgr                8d8765b66d3ff8eed2f20b1fefd57538
+argb                1b233c33899efc2ba947b9c50743003f
+bgr24               d59b9488c82fe91ed10ab39bc600c647
 bgr555be            d6d14ec3ae9ffffed3006a253e9b9a9a
 bgr555le            70b819425f79f823356229b90b41cc84
 bgr565be            4ffcc26e740622ffd3314fe251e97804
 bgr565le            6fb9dc50a81b853800ba65d5ec6b8417
-bgra                e9cc6644e2f35103c241094ab4bb8fec
-rgb24               3fd7653f414f350ddb0c0a236ce0c809
+bgra                39cf6a824ecab4923006e2511aadafc5
+rgb24               948021212c5aef6139483d1298b9b2de
 rgb555be            0f34c006142babd10065d90b8c2ce3d6
 rgb555le            53325a20c913826566880eb25d1d2946
 rgb565be            9889faf1a636161f3049b78e92db7d89
 rgb565le            14fe550f449a7539d9f1e99e85cf40f1
-rgba                7041184d35c316e73e849504b64bc4f6
+rgba                efc95893b2393a529189c3990e776f1a
diff --git a/tests/ref/fate/filter-pixfmts-transpose b/tests/ref/fate/filter-pixfmts-transpose
index 3064f2b180..664cac5fe0 100644
--- a/tests/ref/fate/filter-pixfmts-transpose
+++ b/tests/ref/fate/filter-pixfmts-transpose
@@ -1,25 +1,25 @@
-0bgr                6929c1e308d2f4f941d002627047d262
-0rgb                cf1bedd0784a3efd3ab00c4e44005c37
-abgr                6d6f896f853a6c6f93ee70dba9af3d17
-argb                87bbd23debb94d486ac3a6b6c0b005f9
+0bgr                38c83f53c80fb77d409189215efdd77f
+0rgb                58df2b739a60926d4e977163481cb23d
+abgr                8f283588b7eb3a493fe263c90cc251f0
+argb                bb6ffbd47f4ea4d3697ce0e06d1b49f5
 ayuv                ba6a6588737f8ddffd2018d9c667e559
 ayuv64be            07bcc9d722b57b60de56ab44a88cd07e
 ayuv64le            e4c07e0d5b333b3bc9eb4f3ce6af3a2c
-bgr0                df3a6eedd4939ce09a357b655ac2962a
-bgr24               f9a08135e5d58c0b2a5509c369a88414
+bgr0                d88c1bd2bf81429c250b1d3381a67fa8
+bgr24               d5ea0d5e68abbfd08b975847cbc3f4a3
 bgr444be            dd9e990a327649ec0b2b81a8ee4d8f49
 bgr444le            bee1d9fae8733d0c0669bca2ac4dfaf6
-bgr48be             39f48f6353dfc772af36cbb41e6126a4
-bgr48le             9a61d9531b1f6de44b27f6bb9b4dfc79
-bgr4_byte           ddff9da461afce90e3122a41d79b287d
+bgr48be             25977232af67f064f1742b3f1d3338ee
+bgr48le             47dd83f8efdf388eba11cabce120df1a
+bgr4_byte           b07e8f473852ca1b1764f8117d405903
 bgr555be            24e5c6502a6d927f8ba88f3320ebf619
 bgr555le            5201d098979ea86a66d8df1ef41c79ad
 bgr565be            59afe17b455e921daf428ba05a40bab9
 bgr565le            b2709790684abbd2133906b637f2b4b8
-bgr8                b6ee15f70989d2f52f184e32b3af2c18
-bgra                f2fe61e08446900ad209f2c586997e15
-bgra64be            8d01994c8c32e628fcf9749851f1ffe8
-bgra64le            faaef6d280f92e7e8abdd9fa4a61f7b5
+bgr8                e0ea60256217c9385d7f7a5c765803ed
+bgra                9d4323aaface2f2969df93d7c22fdf9a
+bgra64be            504cb4942aff9391b6c06aaddd4cad16
+bgra64le            0fd9bd3a257b617fdb1abd50e5a2d5d6
 gbrap               0899b3af50d35a63bfecb419a5b29968
 gbrap10be           3e3be2d8f9aa5f449a1df404e27d0054
 gbrap10le           db4e4861010cbbf726492fad282d5813
@@ -73,35 +73,35 @@ p412be              88e4578d2c6d99399a6cf1db9e4c0553
 p412le              7905a6e5a0c29b68e025824c7e29adb8
 p416be              350a90bda53349435d89ec13533726b7
 p416le              7bb46e2aec65669a27502ec452941237
-rgb0                31ea5da7fe779c6ea0a33f1d28aad918
-rgb24               47654cabaaad79170b90afd5a02161dd
+rgb0                0271524398f38b5b4636920f97360109
+rgb24               010cb8323ed9ae3e83c1a2fc17a55302
 rgb444be            3cac1f0c43a74d2a95eb02e187070845
 rgb444le            46d602468bd9e5a430622e3d4b7c8f40
-rgb48be             400932419bbb780614254253ef5591c3
-rgb48le             6a99c40f21629cb0655e8772d7190374
-rgb4_byte           d3990da196266305a3f2e5b1d72401a5
+rgb48be             865000c27d47f0be8d7098b8428842c6
+rgb48le             09ac09a242b70c0d848765e8f6ce41d7
+rgb4_byte           93d97802f72c799075280bec5ef7bddb
 rgb555be            79e4503ff0d5cf52d3a7901397499a28
 rgb555le            c65f2594c0b3107a322f7aeb81aa8a16
 rgb565be            0c746b5063d02d6cb98e9e9a59ad3b99
 rgb565le            63b02db11c3d20be54d218c7c44f8ddb
-rgb8                c90feb30c3c9391ef5f470209d7b7a15
-rgba                4d76a9542143752a4ac30f82f88f68f1
-rgba64be            a60041217f4c0cd796d19d3940a12a41
-rgba64le            ad47197774858858ae7b0c177dffa459
+rgb8                dbdcf9dc70ccefa4f1a7c0e99fa91a0b
+rgba                f82f846f07e0af81df37930a69f3e44d
+rgba64be            1f2b7c1062bb0ad16f7f299960e8719b
+rgba64le            4b63a471f1ea83cdd300626a616cbf72
 uyva                cb773ee5a9f8964b9c826d55f9f425a3
 v30xle              55147546a787bc72fcb0ca28b1456344
 vuya                9ece18a345beb17cd19e09e443eca4bf
 vuyx                46b5b821d7ee6ddedb3ddafd1e5b007c
 vyu444              e70a294738165223928fddc9970b8381
-x2bgr10le           4aa774b6d8f6d446a64f1f288e5c97eb
-x2rgb10le           09cb1d98fe17ad8a6d9d3bec97ddc845
+x2bgr10le           a9cfed906dc89f1a6afeb0c62d527d64
+x2rgb10le           1aee18b7008597b78f518958cdfa3b8f
 xv30le              ebe26bf75c64406dea8b8a160c978fd9
 xv36be              2261a0e3db5ee607d37f68d19704ae15
 xv36le              9202133de91bf64c76ca27d5cd0c816a
 xv48be              14373b7fe123225689e76fe2ce43fb93
 xv48le              319df9724a067c7b5efa215f9f54d127
-xyz12be             69737aceb508a73365664d04c340dd3b
-xyz12le             70dd5fab9d8383b0d2e772b3b6569df4
+xyz12be             4a5a327d525b42dd76deae1b4f01cdd3
+xyz12le             52a8d731714f707e5d06a351f513b29f
 ya16be              6098f7d2ede0aab6b2d93d2b4f4d915a
 ya16le              1fae63e3e320ba9e6c12c29a48c44eff
 ya8                 d4b7a62f80681fa44c977ff3a64f4ce4
diff --git a/tests/ref/fate/filter-pixfmts-vflip b/tests/ref/fate/filter-pixfmts-vflip
index a36d957443..97e5b807f4 100644
--- a/tests/ref/fate/filter-pixfmts-vflip
+++ b/tests/ref/fate/filter-pixfmts-vflip
@@ -1,25 +1,25 @@
-0bgr                e6f5c50fa0330cd5d5e69ffc09bc085a
-0rgb                76b792f8ce8a72925e04294dc2f25b36
-abgr                8b94f489e68802d76f1e2844688a4911
-argb                3fd6af7ef2364d8aa845d45db289a04a
+0bgr                e247c51e26a249f229dd16cbe7b33f3f
+0rgb                34f42564c80f59f07d43cfc6322160f8
+abgr                c58ec3b5e97bab45cd34d5f8173f80d7
+argb                3ef6870ed9603abbff67a926b4687ec9
 ayuv                c3bc52cd5ae5094c85bd465a259e2870
 ayuv64be            2263f36f970c2a3d79d4971b56d107cf
 ayuv64le            558671dd31d0754cfa6344eaf441df78
-bgr0                7117438cf000254610f23625265769b5
-bgr24               52b2c21cbc166978a38a646c354b6858
+bgr0                47135e24c199cb82d12282c7027530b6
+bgr24               6738225f81dab411aad9d6db123198be
 bgr444be            6c6cb3f5a26d5fd00bd04467bb0bbcca
 bgr444le            860b20346d24510c1b3e44067916bb68
-bgr48be             161d37f2f6ba5de48d17f59050804660
-bgr48le             98f471e833021adad925d7d8d45b7c6f
-bgr4_byte           f6296e1a5741531f67f62599ae30bfde
+bgr48be             fdd3ac1c6100ab3087c49c058417eab3
+bgr48le             2df69cc6e141b1ab1648f0625bfe212e
+bgr4_byte           ab0d48db6289216f800776fef5adde65
 bgr555be            f5e041ea34e4c084c3531b9fe2d01016
 bgr555le            3b5c5281a7e13a1f757dc5d8eeb77d85
 bgr565be            a567fb6edb4057d44c33c1bad23b9807
 bgr565le            c6f40163bd064760f316a90f4c7885ac
-bgr8                f2e4aabfe9e6039beb1f2b8c43c83e3c
-bgra                0af63cc2ffd61af252df93cc767de358
-bgra64be            31af33833f6d8f2e4a62683288770aa4
-bgra64le            45feb93863055282447d1ff89c5158bf
+bgr8                2d163a477233489c30fb8ed0ccc3f390
+bgra                afa322688ad6f5925f16644c1c900928
+bgra64be            a0820a388d7d61fdcb2c75e11209dc35
+bgra64le            771522bef507ca429746de6160493ae1
 gbrap               421c56a25f88d58b9361f5c7bb368e21
 gbrap10be           e8134b72acc090b093b4d9b4d4703c7e
 gbrap10le           43bde7bd6a676c6ac33dbcc4c72762f3
@@ -84,37 +84,37 @@ p412be              8e641f154aa2151c9e87b377b4f8b213
 p412le              1b22d5b9893b25a8b8836c5fb5aeb43d
 p416be              7e7657ab40cf953351a14ea76e296519
 p416le              0991d7fff4e2caf36be219ecdd9619d4
-pal8                450b0155d0f2d5628bf95a442db5f817
-rgb0                56a7ea69541bcd27bef6a5615784722b
-rgb24               195e6dae1c3a488b9d3ceb7560d25d85
+pal8                b41160b6bd6b4cf7fd465d5d738e7f68
+rgb0                782c39571e0ea4794b9cbf7085de652f
+rgb24               45ded24cfd2e0b75941a68bbf9a21cb5
 rgb444be            d30742559618f871ef5543f602e35d04
 rgb444le            8cae7773ce27d959fd7836832ab392a6
-rgb48be             3c519a3f78405a8f2cc05c4846ab6e71
-rgb48le             09218c1dea3d085d435910478d4c4b7a
-rgb4_byte           0e2b561097230e9c72acc645e6806e20
+rgb48be             2f2e89f3759af94de7a61e0e49e0dd9a
+rgb48le             20dd764b22a09cc2efea9c73c602b2bc
+rgb4_byte           496b0fe7331fdb993b5c5c2c55afef6d
 rgb555be            730f68605d12eb7cd524b63388f69712
 rgb555le            7fec4673ba9025bf492e88754afb51b2
 rgb565be            1f54ab9892bf28e3081ab55c83c86e24
 rgb565le            13255e04237bb16eb22f29f892590182
-rgb8                7df049b6094f8a5e084d74462f6d6cde
-rgba                c1a5908572737f2ae1e5d8218af65f4b
-rgba64be            17e6273323b5779b5f3f775f150c1011
-rgba64le            48f45b10503b7dd140329c3dd0d54c98
+rgb8                75dc38830da4b9438e3fdc14befe81b9
+rgba                e02fe3a2d769b9dd8854818fa1bbcd9e
+rgba64be            3de2591a739ce891c994222242c6c54b
+rgba64le            42167c9b2a5639182e3d6aa29bc8fc1a
 uyva                d43e89ba3d5c9274e1948eac8630fcc6
 uyvy422             3a237e8376264e0cfa78f8a3fdadec8a
 v30xle              15de0d677d900991e41671a57c431ba5
 vuya                fb849f76e56181e005c31fce75d7038c
 vuyx                ed7de87da324b39090a8961dfd56ca5a
 vyu444              815de7c57dc8afafb3de908a4a280582
-x2bgr10le           795b66a5fc83cd2cf300aae51c230f80
-x2rgb10le           262c502230cf3724f8e2cf4737f18a42
+x2bgr10le           5d1064129344c4db34eaf4e4c3065b8f
+x2rgb10le           483ab461b1d7bb86a30c73ae71ed084f
 xv30le              f61ddeb49ba8fb7c92294ad621cbf896
 xv36be              c0272372d3e1a59adb3931ee433a5d5b
 xv36le              ffe6ab75ebc09134c3451f8f6ef0d501
 xv48be              bdfc3217ae456b370dbdcf4d52606a3f
 xv48le              53dbebab73a66539c04644ef56dc6bbb
-xyz12be             1bffa153a4a3ae61fd18e370f95161d9
-xyz12le             a0e93443826621a9d6c48354d949898a
+xyz12be             372506c4a7b237c1b73097954143d9d4
+xyz12le             8a2510fcac4ef8758719be08b8b053ba
 y210le              f8847bedd3ae6e1c0cf84a823f275e31
 y212le              c801725ae31e3b8f5be269359d49f191
 y216le              985db498aedf3fb1c547ad07442b7258
diff --git a/tests/ref/fate/filter-scale2ref_keep_aspect b/tests/ref/fate/filter-scale2ref_keep_aspect
index 53c6fc14ec..1421452048 100644
--- a/tests/ref/fate/filter-scale2ref_keep_aspect
+++ b/tests/ref/fate/filter-scale2ref_keep_aspect
@@ -7,8 +7,8 @@
 #dimensions 0: 160x120
 #sar 0: 1/1
 #stream#, dts,        pts, duration,     size, hash
-0,          0,          0,        1,    57600, 65fe9892ad710cc5763b04b390327d40
-0,          1,          1,        1,    57600, 5e8d4524bc8889afa8769e851e998bc0
-0,          2,          2,        1,    57600, 8f5e0e58d1f4c2104b82ef7a16850f1e
-0,          3,          3,        1,    57600, cfe4142845e1445d33748493faa63cda
-0,          4,          4,        1,    57600, bb491f3b01788773fb6129aef0f0abd2
+0,          0,          0,        1,    57600, 216a26ad23e826b5132601ca1c4395a3
+0,          1,          1,        1,    57600, 0280f4d70a5833ef305a3ee7277e98f1
+0,          2,          2,        1,    57600, 454bc0ddf6436557398686635dfff663
+0,          3,          3,        1,    57600, 173eb3a1887516fb4d787a5256fad415
+0,          4,          4,        1,    57600, ebc11cb16514becc4897b2909b33b0e3
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-agmc b/tests/ref/fate/filter-stereo3d-sbsl-agmc
index d86a2267ee..360ead0f7f 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-agmc
+++ b/tests/ref/fate/filter-stereo3d-sbsl-agmc
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0xa950d0d9
-0,          1,          1,        1,   152064, 0x6a6933c3
-0,          2,          2,        1,   152064, 0x66a1da3a
-0,          3,          3,        1,   152064, 0xe591aa12
-0,          4,          4,        1,   152064, 0x42413288
+0,          0,          0,        1,   152064, 0xd6bdf333
+0,          1,          1,        1,   152064, 0xd91354c2
+0,          2,          2,        1,   152064, 0x6e32fe7d
+0,          3,          3,        1,   152064, 0x431ccff7
+0,          4,          4,        1,   152064, 0x9c845527
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-agmd b/tests/ref/fate/filter-stereo3d-sbsl-agmd
index ab915d601d..581b9d36d1 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-agmd
+++ b/tests/ref/fate/filter-stereo3d-sbsl-agmd
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0x962d1371
-0,          1,          1,        1,   152064, 0xe7db1d51
-0,          2,          2,        1,   152064, 0x3bb0c409
-0,          3,          3,        1,   152064, 0xcc213557
-0,          4,          4,        1,   152064, 0x913e1048
+0,          0,          0,        1,   152064, 0xf1650d02
+0,          1,          1,        1,   152064, 0xeda21037
+0,          2,          2,        1,   152064, 0x72eeb8f7
+0,          3,          3,        1,   152064, 0xf0a32dc4
+0,          4,          4,        1,   152064, 0x2f67031f
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-agmg b/tests/ref/fate/filter-stereo3d-sbsl-agmg
index 4ad85b6820..35ed5b9b91 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-agmg
+++ b/tests/ref/fate/filter-stereo3d-sbsl-agmg
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0x45a6c9a8
-0,          1,          1,        1,   152064, 0xe7ba65fc
-0,          2,          2,        1,   152064, 0x88ab8fcc
-0,          3,          3,        1,   152064, 0x91478b9d
-0,          4,          4,        1,   152064, 0xb7ecc7cf
+0,          0,          0,        1,   152064, 0x91aac29b
+0,          1,          1,        1,   152064, 0xf6fe5734
+0,          2,          2,        1,   152064, 0xd9e587a8
+0,          3,          3,        1,   152064, 0x43e482c8
+0,          4,          4,        1,   152064, 0xbb1cbfca
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-agmh b/tests/ref/fate/filter-stereo3d-sbsl-agmh
index b50f5af018..fc4954a359 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-agmh
+++ b/tests/ref/fate/filter-stereo3d-sbsl-agmh
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0x96464057
-0,          1,          1,        1,   152064, 0x58c4e280
-0,          2,          2,        1,   152064, 0xaf76fd24
-0,          3,          3,        1,   152064, 0xa4dacf0d
-0,          4,          4,        1,   152064, 0x964a2110
+0,          0,          0,        1,   152064, 0x014d8d09
+0,          1,          1,        1,   152064, 0x99842dde
+0,          2,          2,        1,   152064, 0xc4644a96
+0,          3,          3,        1,   152064, 0xdc8220bc
+0,          4,          4,        1,   152064, 0xdc786d2c
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-arbg b/tests/ref/fate/filter-stereo3d-sbsl-arbg
index b5e4996b30..67c7de26d1 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-arbg
+++ b/tests/ref/fate/filter-stereo3d-sbsl-arbg
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0x4d83ea30
-0,          1,          1,        1,   152064, 0xa4a3be5b
-0,          2,          2,        1,   152064, 0x21032989
-0,          3,          3,        1,   152064, 0xa201194b
-0,          4,          4,        1,   152064, 0x9b7980cc
+0,          0,          0,        1,   152064, 0xfd13e8bd
+0,          1,          1,        1,   152064, 0xfd66b6dd
+0,          2,          2,        1,   152064, 0xfa462783
+0,          3,          3,        1,   152064, 0xa66f1637
+0,          4,          4,        1,   152064, 0x36477f48
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-arcc b/tests/ref/fate/filter-stereo3d-sbsl-arcc
index bcecd8785e..bc7dd945b7 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-arcc
+++ b/tests/ref/fate/filter-stereo3d-sbsl-arcc
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0x2760b14a
-0,          1,          1,        1,   152064, 0xcf94baaf
-0,          2,          2,        1,   152064, 0x9b5e0e0a
-0,          3,          3,        1,   152064, 0x6bfb8127
-0,          4,          4,        1,   152064, 0xa0293fed
+0,          0,          0,        1,   152064, 0xdc44d6ea
+0,          1,          1,        1,   152064, 0x4f87d705
+0,          2,          2,        1,   152064, 0xe3182a6e
+0,          3,          3,        1,   152064, 0xc29fa0ea
+0,          4,          4,        1,   152064, 0x8b4d5934
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-arcd b/tests/ref/fate/filter-stereo3d-sbsl-arcd
index 20f080b973..d29447571c 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-arcd
+++ b/tests/ref/fate/filter-stereo3d-sbsl-arcd
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0x34b1fb03
-0,          1,          1,        1,   152064, 0x2045eadd
-0,          2,          2,        1,   152064, 0x1266cdde
-0,          3,          3,        1,   152064, 0xc9f083bd
-0,          4,          4,        1,   152064, 0x0701ab16
+0,          0,          0,        1,   152064, 0xb433c60f
+0,          1,          1,        1,   152064, 0xc3a4a9f3
+0,          2,          2,        1,   152064, 0x98978d39
+0,          3,          3,        1,   152064, 0x17913e24
+0,          4,          4,        1,   152064, 0x5e9b67e1
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-arcg b/tests/ref/fate/filter-stereo3d-sbsl-arcg
index f5c58450f4..13bf651598 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-arcg
+++ b/tests/ref/fate/filter-stereo3d-sbsl-arcg
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0x70f5c9a8
-0,          1,          1,        1,   152064, 0x56f165fc
-0,          2,          2,        1,   152064, 0xe59f8fcc
-0,          3,          3,        1,   152064, 0xc5df8b9d
-0,          4,          4,        1,   152064, 0xaab2c7cf
+0,          0,          0,        1,   152064, 0xc6bac29b
+0,          1,          1,        1,   152064, 0x6d4b5734
+0,          2,          2,        1,   152064, 0x411e87a8
+0,          3,          3,        1,   152064, 0x80ea82c8
+0,          4,          4,        1,   152064, 0xb960bfca
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-arch b/tests/ref/fate/filter-stereo3d-sbsl-arch
index d6767dfce4..e0cda6f112 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-arch
+++ b/tests/ref/fate/filter-stereo3d-sbsl-arch
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0x81ab8dad
-0,          1,          1,        1,   152064, 0x820fd98a
-0,          2,          2,        1,   152064, 0x1ccc712b
-0,          3,          3,        1,   152064, 0x0d278740
-0,          4,          4,        1,   152064, 0x13eaa8e2
+0,          0,          0,        1,   152064, 0x1242647a
+0,          1,          1,        1,   152064, 0xd06aa73e
+0,          2,          2,        1,   152064, 0xb05e4090
+0,          3,          3,        1,   152064, 0x11e4584b
+0,          4,          4,        1,   152064, 0x959f7819
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-argg b/tests/ref/fate/filter-stereo3d-sbsl-argg
index 82fa276704..86a1ee70a3 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-argg
+++ b/tests/ref/fate/filter-stereo3d-sbsl-argg
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0x2cfbea30
-0,          1,          1,        1,   152064, 0x4c44be5b
-0,          2,          2,        1,   152064, 0x87462989
-0,          3,          3,        1,   152064, 0x1462194b
-0,          4,          4,        1,   152064, 0xe27c80cc
+0,          0,          0,        1,   152064, 0xd6f1e8bd
+0,          1,          1,        1,   152064, 0x9dbdb6dd
+0,          2,          2,        1,   152064, 0x5a7a2783
+0,          3,          3,        1,   152064, 0x130f1637
+0,          4,          4,        1,   152064, 0x76c97f48
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-aybc b/tests/ref/fate/filter-stereo3d-sbsl-aybc
index 1c24262006..749dcc92c7 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-aybc
+++ b/tests/ref/fate/filter-stereo3d-sbsl-aybc
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0xae8c985d
-0,          1,          1,        1,   152064, 0x489e1535
-0,          2,          2,        1,   152064, 0x01a83b2b
-0,          3,          3,        1,   152064, 0x3870ffd6
-0,          4,          4,        1,   152064, 0x3d5b0cc4
+0,          0,          0,        1,   152064, 0x2707c69f
+0,          1,          1,        1,   152064, 0xbcc43bbd
+0,          2,          2,        1,   152064, 0x049f6974
+0,          3,          3,        1,   152064, 0x9ba02f9e
+0,          4,          4,        1,   152064, 0xcf8c3cfd
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-aybd b/tests/ref/fate/filter-stereo3d-sbsl-aybd
index 277e66bdca..bcb423a8db 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-aybd
+++ b/tests/ref/fate/filter-stereo3d-sbsl-aybd
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0xf576742c
-0,          1,          1,        1,   152064, 0x2ce36ae4
-0,          2,          2,        1,   152064, 0x2dc99849
-0,          3,          3,        1,   152064, 0x940413b6
-0,          4,          4,        1,   152064, 0x48a600d3
+0,          0,          0,        1,   152064, 0x06b8906b
+0,          1,          1,        1,   152064, 0x7de5771f
+0,          2,          2,        1,   152064, 0x52daa80d
+0,          3,          3,        1,   152064, 0xa4ad267a
+0,          4,          4,        1,   152064, 0xef4d1268
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-aybg b/tests/ref/fate/filter-stereo3d-sbsl-aybg
index ebd8ba228a..034246349f 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-aybg
+++ b/tests/ref/fate/filter-stereo3d-sbsl-aybg
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0x1a57c9a8
-0,          1,          1,        1,   152064, 0x789265fc
-0,          2,          2,        1,   152064, 0x2bb78fcc
-0,          3,          3,        1,   152064, 0x5caf8b9d
-0,          4,          4,        1,   152064, 0xc526c7cf
+0,          0,          0,        1,   152064, 0x5c9ac29b
+0,          1,          1,        1,   152064, 0x80c05734
+0,          2,          2,        1,   152064, 0x72bb87a8
+0,          3,          3,        1,   152064, 0x06de82c8
+0,          4,          4,        1,   152064, 0xbcd8bfca
diff --git a/tests/ref/fate/filter-stereo3d-sbsl-aybh b/tests/ref/fate/filter-stereo3d-sbsl-aybh
index 1b9edebb62..5225281961 100644
--- a/tests/ref/fate/filter-stereo3d-sbsl-aybh
+++ b/tests/ref/fate/filter-stereo3d-sbsl-aybh
@@ -3,8 +3,8 @@
 #codec_id 0: rawvideo
 #dimensions 0: 176x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0xf3ee182f
-0,          1,          1,        1,   152064, 0x8b1c25f1
-0,          2,          2,        1,   152064, 0xe78de2ac
-0,          3,          3,        1,   152064, 0x3eb08db6
-0,          4,          4,        1,   152064, 0x852eae5c
+0,          0,          0,        1,   152064, 0x7ec436b3
+0,          1,          1,        1,   152064, 0x6f113e26
+0,          2,          2,        1,   152064, 0x1045031f
+0,          3,          3,        1,   152064, 0xa1d6ac74
+0,          4,          4,        1,   152064, 0x6275cdd2
diff --git a/tests/ref/fate/flv-add_keyframe_index b/tests/ref/fate/flv-add_keyframe_index
index 6549170a68..f8e22c9b59 100644
--- a/tests/ref/fate/flv-add_keyframe_index
+++ b/tests/ref/fate/flv-add_keyframe_index
@@ -1,21 +1,21 @@
-9f3d6de74f3329651a4c515c20cea00f *tests/data/fate/flv-add_keyframe_index.flv
-630192 tests/data/fate/flv-add_keyframe_index.flv
+4c13b835d4566e0f041a78ec1f39c540 *tests/data/fate/flv-add_keyframe_index.flv
+645341 tests/data/fate/flv-add_keyframe_index.flv
 #tb 0: 1/1000
 #media_type 0: video
 #codec_id 0: flv1
 #dimensions 0: 320x240
 #sar 0: 0/1
-0,          0,          0,      143,     9597, 0xd91d5859
+0,          0,          0,      143,     9686, 0xa6cfb18e
 [FORMAT]
 TAG:hasVideo=true
 TAG:hasKeyframes=true
 TAG:hasAudio=false
 TAG:hasMetadata=true
 TAG:canSeekToEnd=true
-TAG:datasize=629776
-TAG:videosize=629381
+TAG:datasize=644925
+TAG:videosize=644530
 TAG:audiosize=0
 TAG:lasttimestamp=20
 TAG:lastkeyframetimestamp=19
-TAG:lastkeyframelocation=597963
+TAG:lastkeyframelocation=612507
 [/FORMAT]
diff --git a/tests/ref/fate/png-mdcv b/tests/ref/fate/png-mdcv
index c570f35431..1359e6ca43 100644
--- a/tests/ref/fate/png-mdcv
+++ b/tests/ref/fate/png-mdcv
@@ -1,11 +1,11 @@
-e486b461b9c408e616873db8ad93b450 *tests/data/fate/png-mdcv.image2pipe
-493893 tests/data/fate/png-mdcv.image2pipe
+b8aba5ab03be052a5355ff93a15c20d3 *tests/data/fate/png-mdcv.image2pipe
+631490 tests/data/fate/png-mdcv.image2pipe
 #tb 0: 1/25
 #media_type 0: video
 #codec_id 0: rawvideo
 #dimensions 0: 1280x720
 #sar 0: 0/1
-0,          0,          0,        1,  2764800, 0x2bfc7b42
+0,          0,          0,        1,  2764800, 0x88ed8fa2
 frames.frame.0.side_data_list.side_data.0.side_data_type="Content light level metadata"
 frames.frame.0.side_data_list.side_data.0.max_content=1000
 frames.frame.0.side_data_list.side_data.0.max_average=200
diff --git a/tests/ref/fate/sub2video b/tests/ref/fate/sub2video
index 76347322f3..27c82435b2 100644
--- a/tests/ref/fate/sub2video
+++ b/tests/ref/fate/sub2video
@@ -11,31 +11,31 @@
 0,          1,          1,        1,   518400, 0x4051c7f9
 0,          2,          2,        1,   518400, 0xfb00e17e
 1,     499000,     499000,  4960000,     1015, 0x19e092d2
-0,          3,          3,        1,   518400, 0x192abb74
-0,          4,          4,        1,   518400, 0x4669a88b
-0,          5,          5,        1,   518400, 0xaababe00
-0,          6,          6,        1,   518400, 0x98a211a5
-0,          7,          7,        1,   518400, 0x440e7547
-0,          8,          8,        1,   518400, 0xca5bb496
-0,          9,          9,        1,   518400, 0xf86e0b0a
-0,         10,         10,        1,   518400, 0xb80fa020
-0,         11,         11,        1,   518400, 0x41c2a54b
-0,         12,         12,        1,   518400, 0x51baf353
-0,         13,         13,        1,   518400, 0x967ea7f3
-0,         14,         14,        1,   518400, 0x819e7f89
-0,         15,         15,        1,   518400, 0x192233e1
-0,         16,         16,        1,   518400, 0xc80a0eb3
-0,         17,         17,        1,   518400, 0x08260a23
-0,         18,         18,        1,   518400, 0xc92e2caf
-0,         19,         19,        1,   518400, 0x3fe36eea
-0,         20,         20,        1,   518400, 0x0891e8d5
-0,         21,         21,        1,   518400, 0x84655095
-0,         22,         22,        1,   518400, 0x9c7fa014
-0,         23,         23,        1,   518400, 0x9c43b656
-0,         24,         24,        1,   518400, 0x2cf46221
-0,         25,         25,        1,   518400, 0x7322e11c
-0,         26,         26,        1,   518400, 0x45af1a84
-0,         27,         27,        1,   518400, 0x7b781071
+0,          3,          3,        1,   518400, 0x5a79b98c
+0,          4,          4,        1,   518400, 0x706fa6a5
+0,          5,          5,        1,   518400, 0x955cbc21
+0,          6,          6,        1,   518400, 0x44c50fc6
+0,          7,          7,        1,   518400, 0x6bce735a
+0,          8,          8,        1,   518400, 0x5aaab2ba
+0,          9,          9,        1,   518400, 0x32b8091e
+0,         10,         10,        1,   518400, 0xad7c9e45
+0,         11,         11,        1,   518400, 0x44d2a372
+0,         12,         12,        1,   518400, 0x6737f170
+0,         13,         13,        1,   518400, 0x5216a60d
+0,         14,         14,        1,   518400, 0x211e7dac
+0,         15,         15,        1,   518400, 0x4d303201
+0,         16,         16,        1,   518400, 0x670c0cd8
+0,         17,         17,        1,   518400, 0x6858084a
+0,         18,         18,        1,   518400, 0x076e2ac9
+0,         19,         19,        1,   518400, 0x84f36d07
+0,         20,         20,        1,   518400, 0xecd3e702
+0,         21,         21,        1,   518400, 0x055e4eb1
+0,         22,         22,        1,   518400, 0x901a9e37
+0,         23,         23,        1,   518400, 0xf7d9b47c
+0,         24,         24,        1,   518400, 0x3d136049
+0,         25,         25,        1,   518400, 0x5544df34
+0,         26,         26,        1,   518400, 0x76e818aa
+0,         27,         27,        1,   518400, 0xec300e9b
 0,         28,         28,        1,   518400, 0x4f7c706c
 0,         29,         29,        1,   518400, 0xb227603b
 0,         30,         30,        1,   518400, 0x7b4b89c2
@@ -59,130 +59,130 @@
 0,         48,         48,        1,   518400, 0x7df08fba
 0,         49,         49,        1,   518400, 0xbab197ea
 1,   15355000,   15355000,  4733000,     2094, 0x3c171425
-0,         77,         77,        1,   518400, 0x902285d9
+0,         77,         77,        1,   518400, 0x84ff828e
 0,        100,        100,        1,   518400, 0xbab197ea
 1,   48797000,   48797000,  2560000,     2480, 0x7c0edf21
-0,        244,        244,        1,   518400, 0x7a11c812
+0,        244,        244,        1,   518400, 0xef28c3fd
 0,        257,        257,        1,   518400, 0xbab197ea
 1,   51433000,   51433000,  2366000,     3059, 0xc95b8a05
-0,        258,        258,        1,   518400, 0x34cdddee
+0,        258,        258,        1,   518400, 0x60edd940
 0,        269,        269,        1,   518400, 0xbab197ea
 1,   53910000,   53910000,  2696000,     2095, 0x61bb15ed
 0,        270,        270,        1,   518400, 0xbab197ea
-0,        271,        271,        1,   518400, 0x4db4ce51
+0,        271,        271,        1,   518400, 0x82c6cb0a
 0,        283,        283,        1,   518400, 0xbab197ea
 1,   56663000,   56663000,  1262000,     1013, 0xc9ae89b7
-0,        284,        284,        1,   518400, 0xe6bc0ea9
+0,        284,        284,        1,   518400, 0xf3750d02
 0,        290,        290,        1,   518400, 0xbab197ea
 1,   58014000,   58014000,  1661000,      969, 0xe01878f0
-0,        291,        291,        1,   518400, 0xa8643af7
+0,        291,        291,        1,   518400, 0x7c423909
 0,        298,        298,        1,   518400, 0xbab197ea
 1,   67724000,   67724000,  1365000,      844, 0xe7db4fc1
-0,        339,        339,        1,   518400, 0xb1885c67
+0,        339,        339,        1,   518400, 0xb44f5b31
 0,        345,        345,        1,   518400, 0xbab197ea
 1,   69175000,   69175000,  1558000,      802, 0xf48531ba
-0,        346,        346,        1,   518400, 0x378e3fd0
+0,        346,        346,        1,   518400, 0xc2b33e84
 0,        354,        354,        1,   518400, 0xbab197ea
 1,   70819000,   70819000,  1865000,     1709, 0xb4d5a1bd
-0,        355,        355,        1,   518400, 0xa3782469
+0,        355,        355,        1,   518400, 0x8e6e2178
 0,        363,        363,        1,   518400, 0xbab197ea
 1,   72762000,   72762000,  1968000,     2438, 0x99d7bc82
-0,        364,        364,        1,   518400, 0xba23a0d5
+0,        364,        364,        1,   518400, 0x11509bf5
 0,        374,        374,        1,   518400, 0xbab197ea
 1,   74806000,   74806000,  1831000,     2116, 0x96514097
-0,        375,        375,        1,   518400, 0x129de2f8
+0,        375,        375,        1,   518400, 0xfb1bdf58
 0,        383,        383,        1,   518400, 0xbab197ea
 1,   76716000,   76716000,  1262000,     1822, 0xefccc72e
-0,        384,        384,        1,   518400, 0x19772f0f
+0,        384,        384,        1,   518400, 0x5fb72bd0
 0,        390,        390,        1,   518400, 0xbab197ea
 1,   78051000,   78051000,  1524000,      987, 0x7b927a27
-0,        391,        391,        1,   518400, 0x56f54e73
+0,        391,        391,        1,   518400, 0xb0074caf
 0,        398,        398,        1,   518400, 0xbab197ea
 1,   79644000,   79644000,  2662000,     2956, 0x190778f7
-0,        399,        399,        1,   518400, 0x300b5247
+0,        399,        399,        1,   518400, 0xecac4d1b
 1,   82380000,   82380000,  2764000,     3094, 0xc021b7d3
 0,        412,        412,        1,   518400, 0xbab197ea
-0,        413,        413,        1,   518400, 0x6fd028fa
+0,        413,        413,        1,   518400, 0xf72423d3
 0,        426,        426,        1,   518400, 0xbab197ea
 1,   85225000,   85225000,  2366000,     2585, 0x74d0048f
-0,        427,        427,        1,   518400, 0x01f80e9d
+0,        427,        427,        1,   518400, 0x2d0b09c3
 0,        438,        438,        1,   518400, 0xbab197ea
 1,   87652000,   87652000,  1831000,      634, 0x8832fda1
-0,        439,        439,        1,   518400, 0xb48d90c0
+0,        439,        439,        1,   518400, 0xebad8fb0
 0,        447,        447,        1,   518400, 0xbab197ea
 1,   91531000,   91531000,  2332000,     2080, 0x97a1146f
-0,        458,        458,        1,   518400, 0xcb5a0173
+0,        458,        458,        1,   518400, 0x0325fdd9
 0,        469,        469,        1,   518400, 0xbab197ea
 1,   95510000,   95510000,  3299000,     2964, 0x8b8f6684
-0,        478,        478,        1,   518400, 0xb8a323e4
+0,        478,        478,        1,   518400, 0x09441f12
 0,        494,        494,        1,   518400, 0xbab197ea
 1,   98872000,   98872000,  2161000,     1875, 0x9002ef71
-0,        495,        495,        1,   518400, 0xc43518ba
+0,        495,        495,        1,   518400, 0x15fa1568
 0,        505,        505,        1,   518400, 0xbab197ea
 1,  101124000,  101124000,  4096000,     3872, 0x20c6ed9c
-0,        506,        506,        1,   518400, 0x04e38692
+0,        506,        506,        1,   518400, 0x90f68054
 0,        526,        526,        1,   518400, 0xbab197ea
 1,  105303000,  105303000,  2730000,     3094, 0xf203a663
-0,        527,        527,        1,   518400, 0x856b0ee5
+0,        527,        527,        1,   518400, 0x7246097b
 0,        540,        540,        1,   518400, 0xbab197ea
 1,  108106000,  108106000,  2059000,     2404, 0x41a7b429
-0,        541,        541,        1,   518400, 0x3e5beee2
+0,        541,        541,        1,   518400, 0x5305eaa4
 0,        551,        551,        1,   518400, 0xbab197ea
 1,  141556000,  141556000,  1661000,     1088, 0xde20aa20
-0,        708,        708,        1,   518400, 0xb8bc1365
+0,        708,        708,        1,   518400, 0x35211144
 0,        716,        716,        1,   518400, 0xbab197ea
-0,        817,        817,        1,   518400, 0x83efa32d
+0,        817,        817,        1,   518400, 0x6547a2a9
 1,  163445000,  163445000,  1331000,      339, 0x8bd186ef
 0,        824,        824,        1,   518400, 0xbab197ea
-0,        840,        840,        1,   518400, 0x03ea0e90
+0,        840,        840,        1,   518400, 0xe6cf0c65
 1,  168049000,  168049000,  1900000,     1312, 0x0bf20e8d
 0,        850,        850,        1,   518400, 0xbab197ea
 1,  170035000,  170035000,  1524000,     1279, 0xb6c2dafe
 0,        851,        851,        1,   518400, 0xbab197ea
 0,        858,        858,        1,   518400, 0xbab197ea
-0,        861,        861,        1,   518400, 0x6eb72347
+0,        861,        861,        1,   518400, 0xc7da202b
 1,  172203000,  172203000,  1695000,     1826, 0x9a1ac769
 0,        869,        869,        1,   518400, 0xbab197ea
 1,  173947000,  173947000,  1934000,     1474, 0xa9b03cdc
-0,        870,        870,        1,   518400, 0x9c4a3a3d
+0,        870,        870,        1,   518400, 0xa47d3755
 0,        879,        879,        1,   518400, 0xbab197ea
 1,  175957000,  175957000,  1763000,     1019, 0x20409355
-0,        880,        880,        1,   518400, 0xc9ebfa89
+0,        880,        880,        1,   518400, 0x17b5f8bf
 0,        889,        889,        1,   518400, 0xbab197ea
-0,        946,        946,        1,   518400, 0xbaf801ef
+0,        946,        946,        1,   518400, 0x46d8ff18
 1,  189295000,  189295000,  1968000,     1596, 0x408c726e
 0,        956,        956,        1,   518400, 0xbab197ea
 1,  191356000,  191356000,  1228000,     1517, 0xae8c5c2b
-0,        957,        957,        1,   518400, 0x59f4e72f
+0,        957,        957,        1,   518400, 0x187ce476
 0,        963,        963,        1,   518400, 0xbab197ea
 1,  192640000,  192640000,  1763000,     2506, 0xa458d6d4
-0,        964,        964,        1,   518400, 0x9d5b9d69
+0,        964,        964,        1,   518400, 0x029d9924
 0,        972,        972,        1,   518400, 0xbab197ea
 1,  195193000,  195193000,  1092000,     1074, 0x397ba9a8
-0,        976,        976,        1,   518400, 0x923d1ce7
+0,        976,        976,        1,   518400, 0xca111aae
 0,        981,        981,        1,   518400, 0xbab197ea
 1,  196361000,  196361000,  1524000,     1715, 0x695ca41e
 0,        982,        982,        1,   518400, 0xbab197ea
-0,        983,        983,        1,   518400, 0x6e652cd2
+0,        983,        983,        1,   518400, 0xac1b29ab
 0,        989,        989,        1,   518400, 0xbab197ea
 1,  197946000,  197946000,  1160000,      789, 0xc63a189e
-0,        990,        990,        1,   518400, 0x25113966
+0,        990,        990,        1,   518400, 0x5c193863
 0,        996,        996,        1,   518400, 0xbab197ea
 1,  199230000,  199230000,  1627000,     1846, 0xeea8c599
-0,        997,        997,        1,   518400, 0x2dc83609
+0,        997,        997,        1,   518400, 0xb79e3280
 0,       1004,       1004,        1,   518400, 0xbab197ea
 1,  200924000,  200924000,  1763000,      922, 0xd4a87222
-0,       1005,       1005,        1,   518400, 0x90483bc6
+0,       1005,       1005,        1,   518400, 0x15ca3a4f
 0,       1013,       1013,        1,   518400, 0xbab197ea
-0,       1053,       1053,        1,   518400, 0x3de86ab7
+0,       1053,       1053,        1,   518400, 0x211c696b
 1,  210600000,  210600000,  1831000,      665, 0x55580135
 0,       1062,       1062,        1,   518400, 0xbab197ea
 1,  214771000,  214771000,  1558000,     1216, 0x50d1f6c5
-0,       1074,       1074,        1,   518400, 0x8c320e68
+0,       1074,       1074,        1,   518400, 0xcdeb0c53
 0,       1082,       1082,        1,   518400, 0xbab197ea
-0,       1128,       1128,        1,   518400, 0x81e977b2
+0,       1128,       1128,        1,   518400, 0x84ed7411
 1,  225640000,  225640000,  2127000,     2133, 0x670c11a5
 0,       1139,       1139,        1,   518400, 0xbab197ea
 1,  227834000,  227834000,  1262000,     1264, 0xc1d9fc57
-0,       1140,       1140,        1,   518400, 0xb046dd30
+0,       1140,       1140,        1,   518400, 0x2fd0dab7
 0,       1145,       1145,        1,   518400, 0xbab197ea
diff --git a/tests/ref/fate/sws-yuv-colorspace b/tests/ref/fate/sws-yuv-colorspace
index 567ba58b28..4f4a07aca8 100644
--- a/tests/ref/fate/sws-yuv-colorspace
+++ b/tests/ref/fate/sws-yuv-colorspace
@@ -3,4 +3,4 @@
 #codec_id 0: rawvideo
 #dimensions 0: 352x288
 #sar 0: 0/1
-0,          0,          0,        1,   152064, 0xa0ea302b
+0,          0,          0,        1,   152064, 0x35851b06
diff --git a/tests/ref/lavf/apng b/tests/ref/lavf/apng
index 3dd80b376d..1c6420b2a1 100644
--- a/tests/ref/lavf/apng
+++ b/tests/ref/lavf/apng
@@ -1,3 +1,3 @@
-963d078c8702a77b362c5b7c508fa447 *tests/data/lavf/lavf.apng
-3911913 tests/data/lavf/lavf.apng
-tests/data/lavf/lavf.apng CRC=0x87b3c15f
+7928e7b8fc14533ff9d9b7644ff4e76b *tests/data/lavf/lavf.apng
+4060153 tests/data/lavf/lavf.apng
+tests/data/lavf/lavf.apng CRC=0xf2765c5e
diff --git a/tests/ref/lavf/apng.png b/tests/ref/lavf/apng.png
index d375c18fc0..c486425d03 100644
--- a/tests/ref/lavf/apng.png
+++ b/tests/ref/lavf/apng.png
@@ -1,3 +1,3 @@
-7dc975747cdcfc3d6a2586a6229767f4 *tests/data/lavf/lavf.apng.png
-156647 tests/data/lavf/lavf.apng.png
-tests/data/lavf/lavf.apng.png CRC=0xd8c7b7a1
+21f4af0480b1b1664a165604c26d5ba1 *tests/data/lavf/lavf.apng.png
+162973 tests/data/lavf/lavf.apng.png
+tests/data/lavf/lavf.apng.png CRC=0x2f511325
diff --git a/tests/ref/lavf/bmp b/tests/ref/lavf/bmp
index c4bc0332ae..387ac2f181 100644
--- a/tests/ref/lavf/bmp
+++ b/tests/ref/lavf/bmp
@@ -1,3 +1,3 @@
-71f4d64a6b3c71f43a4eff526f84841c *tests/data/images/bmp/02.bmp
+d6cf9d099741a79f5b85fea0166b3383 *tests/data/images/bmp/02.bmp
 304182 tests/data/images/bmp/02.bmp
-tests/data/images/bmp/%02d.bmp CRC=0xe6c71946
+tests/data/images/bmp/%02d.bmp CRC=0x575da06b
diff --git a/tests/ref/lavf/dpx b/tests/ref/lavf/dpx
index 736fe39cff..58e5000f4e 100644
--- a/tests/ref/lavf/dpx
+++ b/tests/ref/lavf/dpx
@@ -1,3 +1,3 @@
-4c8880d5835ffb5fe37c1ed8c8d404de *tests/data/images/dpx/02.dpx
+f4475d2b17c11f56a6ff92da6ded15f4 *tests/data/images/dpx/02.dpx
 305792 tests/data/images/dpx/02.dpx
-tests/data/images/dpx/%02d.dpx CRC=0x6da01946
+tests/data/images/dpx/%02d.dpx CRC=0xf9bba06b
diff --git a/tests/ref/lavf/flm b/tests/ref/lavf/flm
index 15ca5ff458..6b3e16e2a8 100644
--- a/tests/ref/lavf/flm
+++ b/tests/ref/lavf/flm
@@ -1,3 +1,3 @@
-ef4783171ebbc38855331c9ead978322 *tests/data/lavf/lavf.flm
+96912c617660fb22b19d821e9df039d5 *tests/data/lavf/lavf.flm
 10137636 tests/data/lavf/lavf.flm
-tests/data/lavf/lavf.flm CRC=0xcdf15757
+tests/data/lavf/lavf.flm CRC=0xb3caf247
diff --git a/tests/ref/lavf/gif b/tests/ref/lavf/gif
index 7f353df286..05e7f3059a 100644
--- a/tests/ref/lavf/gif
+++ b/tests/ref/lavf/gif
@@ -1,3 +1,3 @@
-e35f5ea283bbcb249818e0078ec72664 *tests/data/lavf/lavf.gif
-2011766 tests/data/lavf/lavf.gif
-tests/data/lavf/lavf.gif CRC=0x37f4d323
+3018be8a815c5f8d08efe80bd34fbed1 *tests/data/lavf/lavf.gif
+2176289 tests/data/lavf/lavf.gif
+tests/data/lavf/lavf.gif CRC=0x05000ca2
diff --git a/tests/ref/lavf/pam b/tests/ref/lavf/pam
index ec3034d1d8..48fb8592f6 100644
--- a/tests/ref/lavf/pam
+++ b/tests/ref/lavf/pam
@@ -1,3 +1,3 @@
-0dce5565222cf0f8b309467f279aecd2 *tests/data/images/pam/02.pam
+580c9b1e1001f193aca0722152603f68 *tests/data/images/pam/02.pam
 304191 tests/data/images/pam/02.pam
-tests/data/images/pam/%02d.pam CRC=0x6da01946
+tests/data/images/pam/%02d.pam CRC=0xf9bba06b
diff --git a/tests/ref/lavf/pcx b/tests/ref/lavf/pcx
index 8aa6eb4099..e1e8d7bfa3 100644
--- a/tests/ref/lavf/pcx
+++ b/tests/ref/lavf/pcx
@@ -1,3 +1,3 @@
-c4faf65ecc812ec8412cc26140c13bd5 *tests/data/images/pcx/02.pcx
-364147 tests/data/images/pcx/02.pcx
-tests/data/images/pcx/%02d.pcx CRC=0x6da01946
+bd4c3a797d0689aaef48a8a3a0b17d86 *tests/data/images/pcx/02.pcx
+350586 tests/data/images/pcx/02.pcx
+tests/data/images/pcx/%02d.pcx CRC=0xf9bba06b
diff --git a/tests/ref/lavf/png b/tests/ref/lavf/png
index 91bcebc9c1..799b317020 100644
--- a/tests/ref/lavf/png
+++ b/tests/ref/lavf/png
@@ -1,3 +1,3 @@
-a59706d17b3c6096bfb9c1963b9978db *tests/data/images/png/02.png
-157081 tests/data/images/png/02.png
-tests/data/images/png/%02d.png CRC=0x6da01946
+345505871c77a59d33b6656321dfb988 *tests/data/images/png/02.png
+162845 tests/data/images/png/02.png
+tests/data/images/png/%02d.png CRC=0xf9bba06b
diff --git a/tests/ref/lavf/ppm b/tests/ref/lavf/ppm
index ce12659062..8cb712a6e9 100644
--- a/tests/ref/lavf/ppm
+++ b/tests/ref/lavf/ppm
@@ -1,3 +1,3 @@
-16d5dadf0b362fc8ba3cb676c5dde985 *tests/data/images/ppm/02.ppm
+d479a16a38bbc8748479d824ce51f556 *tests/data/images/ppm/02.ppm
 304143 tests/data/images/ppm/02.ppm
-tests/data/images/ppm/%02d.ppm CRC=0x6da01946
+tests/data/images/ppm/%02d.ppm CRC=0xf9bba06b
diff --git a/tests/ref/lavf/ppmpipe b/tests/ref/lavf/ppmpipe
index a50dbb0671..95d45b0511 100644
--- a/tests/ref/lavf/ppmpipe
+++ b/tests/ref/lavf/ppmpipe
@@ -1,3 +1,3 @@
-74f1f6651ad8f192a7b4c11c2b6c71e5 *tests/data/lavf/ppmpipe.ppm
+7d517d07fb50504a9d34b1217681c425 *tests/data/lavf/ppmpipe.ppm
 7603575 tests/data/lavf/ppmpipe.ppm
-tests/data/lavf/ppmpipe.ppm CRC=0x87b3c15f
+tests/data/lavf/ppmpipe.ppm CRC=0xf2765c5e
diff --git a/tests/ref/lavf/qoi b/tests/ref/lavf/qoi
index 76609ea478..58da4888fa 100644
--- a/tests/ref/lavf/qoi
+++ b/tests/ref/lavf/qoi
@@ -1,3 +1,3 @@
-3887a856d13f6444e213e9e268d58d55 *tests/data/images/qoi/02.qoi
-307658 tests/data/images/qoi/02.qoi
-tests/data/images/qoi/%02d.qoi CRC=0x6da01946
+f3710f7c3a4828ce425d34e3dd8a4c36 *tests/data/images/qoi/02.qoi
+378185 tests/data/images/qoi/02.qoi
+tests/data/images/qoi/%02d.qoi CRC=0xf9bba06b
diff --git a/tests/ref/lavf/qoipipe b/tests/ref/lavf/qoipipe
index 260269b0ed..a87d4da5e3 100644
--- a/tests/ref/lavf/qoipipe
+++ b/tests/ref/lavf/qoipipe
@@ -1,3 +1,3 @@
-3ce74fde1220ae2501fdfab48035efd8 *tests/data/lavf/qoipipe.qoi
-7681407 tests/data/lavf/qoipipe.qoi
-tests/data/lavf/qoipipe.qoi CRC=0x87b3c15f
+3209258164bace28fed6f3297dee8408 *tests/data/lavf/qoipipe.qoi
+9442028 tests/data/lavf/qoipipe.qoi
+tests/data/lavf/qoipipe.qoi CRC=0xf2765c5e
diff --git a/tests/ref/lavf/rgb48be.pam b/tests/ref/lavf/rgb48be.pam
index 7ad9f5c686..6638d1b3f0 100644
--- a/tests/ref/lavf/rgb48be.pam
+++ b/tests/ref/lavf/rgb48be.pam
@@ -1,3 +1,3 @@
-032538f0313b4f240b44a5bef115f5bf *tests/data/images/rgb48be.pam/02.rgb48be.pam
+0945c72ed39b41b44f43867c03b02453 *tests/data/images/rgb48be.pam/02.rgb48be.pam
 608321 tests/data/images/rgb48be.pam/02.rgb48be.pam
-tests/data/images/rgb48be.pam/%02d.rgb48be.pam CRC=0x5984c023
+tests/data/images/rgb48be.pam/%02d.rgb48be.pam CRC=0x6a7c18e3
diff --git a/tests/ref/lavf/rgb48be.png b/tests/ref/lavf/rgb48be.png
index 89f4b64733..48d7a44c79 100644
--- a/tests/ref/lavf/rgb48be.png
+++ b/tests/ref/lavf/rgb48be.png
@@ -1,3 +1,3 @@
-82b60351aa1409f4cac200955b16fe71 *tests/data/images/rgb48be.png/02.rgb48be.png
-370698 tests/data/images/rgb48be.png/02.rgb48be.png
-tests/data/images/rgb48be.png/%02d.rgb48be.png CRC=0x5984c023
+6278b9ee44e69d949fff3af44d224280 *tests/data/images/rgb48be.png/02.rgb48be.png
+467289 tests/data/images/rgb48be.png/02.rgb48be.png
+tests/data/images/rgb48be.png/%02d.rgb48be.png CRC=0x6a7c18e3
diff --git a/tests/ref/lavf/rgb48le.dpx b/tests/ref/lavf/rgb48le.dpx
index b808ff4bdc..2c7be49d90 100644
--- a/tests/ref/lavf/rgb48le.dpx
+++ b/tests/ref/lavf/rgb48le.dpx
@@ -1,3 +1,3 @@
-075963c3c08978b6a20555ba09161434 *tests/data/images/rgb48le.dpx/02.rgb48le.dpx
+843d2010199dc30939a33ab646799388 *tests/data/images/rgb48le.dpx/02.rgb48le.dpx
 609920 tests/data/images/rgb48le.dpx/02.rgb48le.dpx
-tests/data/images/rgb48le.dpx/%02d.rgb48le.dpx CRC=0xe5b9c023
+tests/data/images/rgb48le.dpx/%02d.rgb48le.dpx CRC=0xc13a18e3
diff --git a/tests/ref/lavf/rgb48le_10.dpx b/tests/ref/lavf/rgb48le_10.dpx
index a49d929f7f..17256bf7c5 100644
--- a/tests/ref/lavf/rgb48le_10.dpx
+++ b/tests/ref/lavf/rgb48le_10.dpx
@@ -1,3 +1,3 @@
-b9f22728f8ff393bf30cf6cbd624fa95 *tests/data/images/rgb48le_10.dpx/02.rgb48le_10.dpx
+24276cf36a3f3fa7ec74a362ae546930 *tests/data/images/rgb48le_10.dpx/02.rgb48le_10.dpx
 407168 tests/data/images/rgb48le_10.dpx/02.rgb48le_10.dpx
-tests/data/images/rgb48le_10.dpx/%02d.rgb48le_10.dpx CRC=0xf38d5830
+tests/data/images/rgb48le_10.dpx/%02d.rgb48le_10.dpx CRC=0x338428dc
diff --git a/tests/ref/lavf/rgb4_byte.xwd b/tests/ref/lavf/rgb4_byte.xwd
index 17546d153c..d0ffc6065f 100644
--- a/tests/ref/lavf/rgb4_byte.xwd
+++ b/tests/ref/lavf/rgb4_byte.xwd
@@ -1,3 +1,3 @@
-fe1af954966a40c2cd35fc27094ff823 *tests/data/images/rgb4_byte.xwd/02.rgb4_byte.xwd
+502b5ebe5ccc0ce1be33ddd90325da5f *tests/data/images/rgb4_byte.xwd/02.rgb4_byte.xwd
 104559 tests/data/images/rgb4_byte.xwd/02.rgb4_byte.xwd
-tests/data/images/rgb4_byte.xwd/%02d.rgb4_byte.xwd CRC=0xce042dcc
+tests/data/images/rgb4_byte.xwd/%02d.rgb4_byte.xwd CRC=0xea50e796
diff --git a/tests/ref/lavf/rgb8.xwd b/tests/ref/lavf/rgb8.xwd
index b19763fc74..5046a25cdd 100644
--- a/tests/ref/lavf/rgb8.xwd
+++ b/tests/ref/lavf/rgb8.xwd
@@ -1,3 +1,3 @@
-c6f3cb7c45f7238474a89d2ad61a1caf *tests/data/images/rgb8.xwd/02.rgb8.xwd
+ae033f29a618cffe949bdf2b0fdc5677 *tests/data/images/rgb8.xwd/02.rgb8.xwd
 104559 tests/data/images/rgb8.xwd/02.rgb8.xwd
-tests/data/images/rgb8.xwd/%02d.rgb8.xwd CRC=0xf217a95e
+tests/data/images/rgb8.xwd/%02d.rgb8.xwd CRC=0x9e56fbf7
diff --git a/tests/ref/lavf/rgba.pam b/tests/ref/lavf/rgba.pam
index 4e3bf8c1a5..89eb241287 100644
--- a/tests/ref/lavf/rgba.pam
+++ b/tests/ref/lavf/rgba.pam
@@ -1,3 +1,3 @@
-2ed31ca8d8de560afb3e0fd7a873cde5 *tests/data/images/rgba.pam/02.rgba.pam
+c60b5d41de8773d551b3cc35f33f572f *tests/data/images/rgba.pam/02.rgba.pam
 405573 tests/data/images/rgba.pam/02.rgba.pam
-tests/data/images/rgba.pam/%02d.rgba.pam CRC=0xf07d29cd
+tests/data/images/rgba.pam/%02d.rgba.pam CRC=0x7e7eb0f2
diff --git a/tests/ref/lavf/rgba.xwd b/tests/ref/lavf/rgba.xwd
index 2d0f568980..f5243a0694 100644
--- a/tests/ref/lavf/rgba.xwd
+++ b/tests/ref/lavf/rgba.xwd
@@ -1,3 +1,3 @@
-1cdb43599c956dc8563f1e09fac5df00 *tests/data/images/rgba.xwd/02.rgba.xwd
+06c8315a9217b4376c4f7e3a3a676d30 *tests/data/images/rgba.xwd/02.rgba.xwd
 405615 tests/data/images/rgba.xwd/02.rgba.xwd
-tests/data/images/rgba.xwd/%02d.rgba.xwd CRC=0xf07d29cd
+tests/data/images/rgba.xwd/%02d.rgba.xwd CRC=0x7e7eb0f2
diff --git a/tests/ref/lavf/rgba64le.dpx b/tests/ref/lavf/rgba64le.dpx
index 5ccde8975b..677f6b2d3a 100644
--- a/tests/ref/lavf/rgba64le.dpx
+++ b/tests/ref/lavf/rgba64le.dpx
@@ -1,3 +1,3 @@
-545603630f30dec2768c8ae8d12eb8ea *tests/data/images/rgba64le.dpx/02.rgba64le.dpx
+c4a824ef596e3d7276597da72956a5d9 *tests/data/images/rgba64le.dpx/02.rgba64le.dpx
 812672 tests/data/images/rgba64le.dpx/02.rgba64le.dpx
-tests/data/images/rgba64le.dpx/%02d.rgba64le.dpx CRC=0xe72ce131
+tests/data/images/rgba64le.dpx/%02d.rgba64le.dpx CRC=0x691639f1
diff --git a/tests/ref/lavf/sgi b/tests/ref/lavf/sgi
index bfab92c8a8..6577b6487f 100644
--- a/tests/ref/lavf/sgi
+++ b/tests/ref/lavf/sgi
@@ -1,3 +1,3 @@
-d446e540a7c18da5fd3cc0e9942cd46f *tests/data/images/sgi/02.sgi
-307287 tests/data/images/sgi/02.sgi
-tests/data/images/sgi/%02d.sgi CRC=0x36e71946
+2ea9bd253333cbc9ed83ea9f4d53e360 *tests/data/images/sgi/02.sgi
+303098 tests/data/images/sgi/02.sgi
+tests/data/images/sgi/%02d.sgi CRC=0x061da06b
diff --git a/tests/ref/lavf/sun b/tests/ref/lavf/sun
index 3aa76e469c..2c36d1f7bf 100644
--- a/tests/ref/lavf/sun
+++ b/tests/ref/lavf/sun
@@ -1,3 +1,3 @@
-07518bcb0841bc677ce6aea8464ea240 *tests/data/images/sun/02.sun
-304123 tests/data/images/sun/02.sun
-tests/data/images/sun/%02d.sun CRC=0xe6c71946
+286a7fec692b46dc722516452a62fdec *tests/data/images/sun/02.sun
+305427 tests/data/images/sun/02.sun
+tests/data/images/sun/%02d.sun CRC=0x575da06b
diff --git a/tests/ref/lavf/tga b/tests/ref/lavf/tga
index 96c5acd14e..2ec2553858 100644
--- a/tests/ref/lavf/tga
+++ b/tests/ref/lavf/tga
@@ -1,3 +1,3 @@
-c0305c53e6d79d4ed9f35f04f671246c *tests/data/images/tga/02.tga
+ed51ec3789f0a85bda86e0b3cd511da4 *tests/data/images/tga/02.tga
 304172 tests/data/images/tga/02.tga
-tests/data/images/tga/%02d.tga CRC=0xe6c71946
+tests/data/images/tga/%02d.tga CRC=0x575da06b
diff --git a/tests/ref/lavf/tiff b/tests/ref/lavf/tiff
index 35655b10a7..294f1f3991 100644
--- a/tests/ref/lavf/tiff
+++ b/tests/ref/lavf/tiff
@@ -1,3 +1,3 @@
-b3299346a8959553a437e486d8f3bf76 *tests/data/images/tiff/02.tiff
-307131 tests/data/images/tiff/02.tiff
-tests/data/images/tiff/%02d.tiff CRC=0x6da01946
+6d303e9b2ffbc28a73b253cc4df3f6fe *tests/data/images/tiff/02.tiff
+307141 tests/data/images/tiff/02.tiff
+tests/data/images/tiff/%02d.tiff CRC=0xf9bba06b
diff --git a/tests/ref/lavf/xwd b/tests/ref/lavf/xwd
index c51b3a9779..6f206b6be8 100644
--- a/tests/ref/lavf/xwd
+++ b/tests/ref/lavf/xwd
@@ -1,3 +1,3 @@
-50baa5560b7d1aa3188b19c1162bf7dc *tests/data/images/xwd/02.xwd
+573370055a175e4a15f7e0d17e65fc80 *tests/data/images/xwd/02.xwd
 304239 tests/data/images/xwd/02.xwd
-tests/data/images/xwd/%02d.xwd CRC=0x6da01946
+tests/data/images/xwd/%02d.xwd CRC=0xf9bba06b
diff --git a/tests/ref/lavf/xwdpipe b/tests/ref/lavf/xwdpipe
index e7137a27a8..ea316cd4f4 100644
--- a/tests/ref/lavf/xwdpipe
+++ b/tests/ref/lavf/xwdpipe
@@ -1,3 +1,3 @@
-e5237d831790a02cf9b7d939557613ed *tests/data/lavf/xwdpipe.xwd
+9408e852a52e91a0f887625adc08804d *tests/data/lavf/xwdpipe.xwd
 7605975 tests/data/lavf/xwdpipe.xwd
-tests/data/lavf/xwdpipe.xwd CRC=0x87b3c15f
+tests/data/lavf/xwdpipe.xwd CRC=0xf2765c5e
diff --git a/tests/ref/pixfmt/bgr24 b/tests/ref/pixfmt/bgr24
index 43af80b8a5..fb753ee450 100644
--- a/tests/ref/pixfmt/bgr24
+++ b/tests/ref/pixfmt/bgr24
@@ -1,2 +1,2 @@
-6bb61113e7b70eb09dbcec356122a0e2 *tests/data/pixfmt/bgr24.yuv
+b463ee4d9f43028c6872be51b9d9cf8d *tests/data/pixfmt/bgr24.yuv
 304128 tests/data/pixfmt/bgr24.yuv
diff --git a/tests/ref/pixfmt/gbrp-nv12 b/tests/ref/pixfmt/gbrp-nv12
index 112dd0b601..7efb8f0946 100644
--- a/tests/ref/pixfmt/gbrp-nv12
+++ b/tests/ref/pixfmt/gbrp-nv12
@@ -1,2 +1,2 @@
-13f8be3ed2a4a1a8a419e8eb837fbef9 *tests/data/pixfmt/gbrp-nv12.yuv
+771e734920baba15ecf83fa0a9df5ad8 *tests/data/pixfmt/gbrp-nv12.yuv
 7603200 tests/data/pixfmt/gbrp-nv12.yuv
diff --git a/tests/ref/pixfmt/gbrp-nv16 b/tests/ref/pixfmt/gbrp-nv16
index 5abb0d245d..1f1d95672e 100644
--- a/tests/ref/pixfmt/gbrp-nv16
+++ b/tests/ref/pixfmt/gbrp-nv16
@@ -1,2 +1,2 @@
-a41ccfab2d42cc3204b78a7fce5143a9 *tests/data/pixfmt/gbrp-nv16.yuv
+c4060bb75d598759595c723f7cca7477 *tests/data/pixfmt/gbrp-nv16.yuv
 7603200 tests/data/pixfmt/gbrp-nv16.yuv
diff --git a/tests/ref/pixfmt/gbrp-p010be b/tests/ref/pixfmt/gbrp-p010be
index 720dd68496..d748e21b39 100644
--- a/tests/ref/pixfmt/gbrp-p010be
+++ b/tests/ref/pixfmt/gbrp-p010be
@@ -1,2 +1,2 @@
-5ccaaa0cce16d3c1ace355ddd1e5327f *tests/data/pixfmt/gbrp-p010be.yuv
+143398a4d8f093037f49ae0725b74861 *tests/data/pixfmt/gbrp-p010be.yuv
 7603200 tests/data/pixfmt/gbrp-p010be.yuv
diff --git a/tests/ref/pixfmt/gbrp-p010le b/tests/ref/pixfmt/gbrp-p010le
index 9ae8e30396..631cec40e7 100644
--- a/tests/ref/pixfmt/gbrp-p010le
+++ b/tests/ref/pixfmt/gbrp-p010le
@@ -1,2 +1,2 @@
-5ccaaa0cce16d3c1ace355ddd1e5327f *tests/data/pixfmt/gbrp-p010le.yuv
+143398a4d8f093037f49ae0725b74861 *tests/data/pixfmt/gbrp-p010le.yuv
 7603200 tests/data/pixfmt/gbrp-p010le.yuv
diff --git a/tests/ref/pixfmt/gbrp-p012be b/tests/ref/pixfmt/gbrp-p012be
index c1eb0a06f0..967cf570c7 100644
--- a/tests/ref/pixfmt/gbrp-p012be
+++ b/tests/ref/pixfmt/gbrp-p012be
@@ -1,2 +1,2 @@
-a1cd0780ed4a9db6984896d59bd848ae *tests/data/pixfmt/gbrp-p012be.yuv
+1600221992b37473d6586761cdb54f65 *tests/data/pixfmt/gbrp-p012be.yuv
 7603200 tests/data/pixfmt/gbrp-p012be.yuv
diff --git a/tests/ref/pixfmt/gbrp-p012le b/tests/ref/pixfmt/gbrp-p012le
index 5729b8be76..78c57efca8 100644
--- a/tests/ref/pixfmt/gbrp-p012le
+++ b/tests/ref/pixfmt/gbrp-p012le
@@ -1,2 +1,2 @@
-a1cd0780ed4a9db6984896d59bd848ae *tests/data/pixfmt/gbrp-p012le.yuv
+1600221992b37473d6586761cdb54f65 *tests/data/pixfmt/gbrp-p012le.yuv
 7603200 tests/data/pixfmt/gbrp-p012le.yuv
diff --git a/tests/ref/pixfmt/gbrp-p016be b/tests/ref/pixfmt/gbrp-p016be
index a16e95b7fc..c331e5e170 100644
--- a/tests/ref/pixfmt/gbrp-p016be
+++ b/tests/ref/pixfmt/gbrp-p016be
@@ -1,2 +1,2 @@
-e83e47ffd01e92b0bf54c925b49400e2 *tests/data/pixfmt/gbrp-p016be.yuv
+01546119012adb8dfa89367bf4059171 *tests/data/pixfmt/gbrp-p016be.yuv
 7603200 tests/data/pixfmt/gbrp-p016be.yuv
diff --git a/tests/ref/pixfmt/gbrp-p016le b/tests/ref/pixfmt/gbrp-p016le
index a9411eb361..de2b85bc08 100644
--- a/tests/ref/pixfmt/gbrp-p016le
+++ b/tests/ref/pixfmt/gbrp-p016le
@@ -1,2 +1,2 @@
-e83e47ffd01e92b0bf54c925b49400e2 *tests/data/pixfmt/gbrp-p016le.yuv
+01546119012adb8dfa89367bf4059171 *tests/data/pixfmt/gbrp-p016le.yuv
 7603200 tests/data/pixfmt/gbrp-p016le.yuv
diff --git a/tests/ref/pixfmt/gbrp-p210be b/tests/ref/pixfmt/gbrp-p210be
index 292a2866d0..b5fd6f57d3 100644
--- a/tests/ref/pixfmt/gbrp-p210be
+++ b/tests/ref/pixfmt/gbrp-p210be
@@ -1,2 +1,2 @@
-af24c15d5ae010de700759a02afddbbd *tests/data/pixfmt/gbrp-p210be.yuv
+c2ecef211a038553fff21cc0a542128b *tests/data/pixfmt/gbrp-p210be.yuv
 7603200 tests/data/pixfmt/gbrp-p210be.yuv
diff --git a/tests/ref/pixfmt/gbrp-p210le b/tests/ref/pixfmt/gbrp-p210le
index cc37bb19de..919b6a73d8 100644
--- a/tests/ref/pixfmt/gbrp-p210le
+++ b/tests/ref/pixfmt/gbrp-p210le
@@ -1,2 +1,2 @@
-af24c15d5ae010de700759a02afddbbd *tests/data/pixfmt/gbrp-p210le.yuv
+c2ecef211a038553fff21cc0a542128b *tests/data/pixfmt/gbrp-p210le.yuv
 7603200 tests/data/pixfmt/gbrp-p210le.yuv
diff --git a/tests/ref/pixfmt/gbrp-rgb555 b/tests/ref/pixfmt/gbrp-rgb555
index 8c1bb6ba5d..7e643bac2d 100644
--- a/tests/ref/pixfmt/gbrp-rgb555
+++ b/tests/ref/pixfmt/gbrp-rgb555
@@ -1,2 +1,2 @@
-5d64e03cfb2aa21f625bdee163ab2cdb *tests/data/pixfmt/gbrp-rgb555.yuv
+01fb54b29aeb168c12ba4c241b2eb5ef *tests/data/pixfmt/gbrp-rgb555.yuv
 7603200 tests/data/pixfmt/gbrp-rgb555.yuv
diff --git a/tests/ref/pixfmt/gbrp-rgb565 b/tests/ref/pixfmt/gbrp-rgb565
index d741a4d263..826efbd7fa 100644
--- a/tests/ref/pixfmt/gbrp-rgb565
+++ b/tests/ref/pixfmt/gbrp-rgb565
@@ -1,2 +1,2 @@
-213fa622818b37865c0f3cb187922127 *tests/data/pixfmt/gbrp-rgb565.yuv
+bf26437e7197961543bc4a17c110e6e8 *tests/data/pixfmt/gbrp-rgb565.yuv
 7603200 tests/data/pixfmt/gbrp-rgb565.yuv
diff --git a/tests/ref/pixfmt/gbrp-uyvy422 b/tests/ref/pixfmt/gbrp-uyvy422
index c874509f40..7d2437256f 100644
--- a/tests/ref/pixfmt/gbrp-uyvy422
+++ b/tests/ref/pixfmt/gbrp-uyvy422
@@ -1,2 +1,2 @@
-a41ccfab2d42cc3204b78a7fce5143a9 *tests/data/pixfmt/gbrp-uyvy422.yuv
+c4060bb75d598759595c723f7cca7477 *tests/data/pixfmt/gbrp-uyvy422.yuv
 7603200 tests/data/pixfmt/gbrp-uyvy422.yuv
diff --git a/tests/ref/pixfmt/gbrp-y210le b/tests/ref/pixfmt/gbrp-y210le
index 0d687f80c7..e91ccf06a2 100644
--- a/tests/ref/pixfmt/gbrp-y210le
+++ b/tests/ref/pixfmt/gbrp-y210le
@@ -1,2 +1,2 @@
-af24c15d5ae010de700759a02afddbbd *tests/data/pixfmt/gbrp-y210le.yuv
+c2ecef211a038553fff21cc0a542128b *tests/data/pixfmt/gbrp-y210le.yuv
 7603200 tests/data/pixfmt/gbrp-y210le.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuv410p b/tests/ref/pixfmt/gbrp-yuv410p
index bada889190..979ce0235a 100644
--- a/tests/ref/pixfmt/gbrp-yuv410p
+++ b/tests/ref/pixfmt/gbrp-yuv410p
@@ -1,2 +1,2 @@
-a8dd9c61dbb48585d292b2c8757c16cf *tests/data/pixfmt/gbrp-yuv410p.yuv
+4a8ca9d568eeabadf2eb1d793a6d69eb *tests/data/pixfmt/gbrp-yuv410p.yuv
 7603200 tests/data/pixfmt/gbrp-yuv410p.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuv411p b/tests/ref/pixfmt/gbrp-yuv411p
index 042da1637f..a0ed88c966 100644
--- a/tests/ref/pixfmt/gbrp-yuv411p
+++ b/tests/ref/pixfmt/gbrp-yuv411p
@@ -1,2 +1,2 @@
-228dfe5d09263ccfd9d485a1c2b240e0 *tests/data/pixfmt/gbrp-yuv411p.yuv
+f8649a42e124b6e31abe254ec34694c8 *tests/data/pixfmt/gbrp-yuv411p.yuv
 7603200 tests/data/pixfmt/gbrp-yuv411p.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuv420p b/tests/ref/pixfmt/gbrp-yuv420p
index 2f3c6c19a7..19fd4148ff 100644
--- a/tests/ref/pixfmt/gbrp-yuv420p
+++ b/tests/ref/pixfmt/gbrp-yuv420p
@@ -1,2 +1,2 @@
-13f8be3ed2a4a1a8a419e8eb837fbef9 *tests/data/pixfmt/gbrp-yuv420p.yuv
+771e734920baba15ecf83fa0a9df5ad8 *tests/data/pixfmt/gbrp-yuv420p.yuv
 7603200 tests/data/pixfmt/gbrp-yuv420p.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuv420p10be b/tests/ref/pixfmt/gbrp-yuv420p10be
index 3bd7d4ab91..239e60989a 100644
--- a/tests/ref/pixfmt/gbrp-yuv420p10be
+++ b/tests/ref/pixfmt/gbrp-yuv420p10be
@@ -1,2 +1,2 @@
-5ccaaa0cce16d3c1ace355ddd1e5327f *tests/data/pixfmt/gbrp-yuv420p10be.yuv
+143398a4d8f093037f49ae0725b74861 *tests/data/pixfmt/gbrp-yuv420p10be.yuv
 7603200 tests/data/pixfmt/gbrp-yuv420p10be.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuv420p10le b/tests/ref/pixfmt/gbrp-yuv420p10le
index 08becb5708..570f6c12c9 100644
--- a/tests/ref/pixfmt/gbrp-yuv420p10le
+++ b/tests/ref/pixfmt/gbrp-yuv420p10le
@@ -1,2 +1,2 @@
-5ccaaa0cce16d3c1ace355ddd1e5327f *tests/data/pixfmt/gbrp-yuv420p10le.yuv
+143398a4d8f093037f49ae0725b74861 *tests/data/pixfmt/gbrp-yuv420p10le.yuv
 7603200 tests/data/pixfmt/gbrp-yuv420p10le.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuv420p12be b/tests/ref/pixfmt/gbrp-yuv420p12be
index f9a8c9fa96..299c6a28bc 100644
--- a/tests/ref/pixfmt/gbrp-yuv420p12be
+++ b/tests/ref/pixfmt/gbrp-yuv420p12be
@@ -1,2 +1,2 @@
-a1cd0780ed4a9db6984896d59bd848ae *tests/data/pixfmt/gbrp-yuv420p12be.yuv
+1600221992b37473d6586761cdb54f65 *tests/data/pixfmt/gbrp-yuv420p12be.yuv
 7603200 tests/data/pixfmt/gbrp-yuv420p12be.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuv420p12le b/tests/ref/pixfmt/gbrp-yuv420p12le
index 82715c86dc..d4e70a15d6 100644
--- a/tests/ref/pixfmt/gbrp-yuv420p12le
+++ b/tests/ref/pixfmt/gbrp-yuv420p12le
@@ -1,2 +1,2 @@
-a1cd0780ed4a9db6984896d59bd848ae *tests/data/pixfmt/gbrp-yuv420p12le.yuv
+1600221992b37473d6586761cdb54f65 *tests/data/pixfmt/gbrp-yuv420p12le.yuv
 7603200 tests/data/pixfmt/gbrp-yuv420p12le.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuv420p16be b/tests/ref/pixfmt/gbrp-yuv420p16be
index 7ce9b0b6ef..bd2bc06bfe 100644
--- a/tests/ref/pixfmt/gbrp-yuv420p16be
+++ b/tests/ref/pixfmt/gbrp-yuv420p16be
@@ -1,2 +1,2 @@
-e83e47ffd01e92b0bf54c925b49400e2 *tests/data/pixfmt/gbrp-yuv420p16be.yuv
+01546119012adb8dfa89367bf4059171 *tests/data/pixfmt/gbrp-yuv420p16be.yuv
 7603200 tests/data/pixfmt/gbrp-yuv420p16be.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuv420p16le b/tests/ref/pixfmt/gbrp-yuv420p16le
index a8be368f5e..c65c9091de 100644
--- a/tests/ref/pixfmt/gbrp-yuv420p16le
+++ b/tests/ref/pixfmt/gbrp-yuv420p16le
@@ -1,2 +1,2 @@
-e83e47ffd01e92b0bf54c925b49400e2 *tests/data/pixfmt/gbrp-yuv420p16le.yuv
+01546119012adb8dfa89367bf4059171 *tests/data/pixfmt/gbrp-yuv420p16le.yuv
 7603200 tests/data/pixfmt/gbrp-yuv420p16le.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuv422p b/tests/ref/pixfmt/gbrp-yuv422p
index 5c209b3cf3..be0f336a11 100644
--- a/tests/ref/pixfmt/gbrp-yuv422p
+++ b/tests/ref/pixfmt/gbrp-yuv422p
@@ -1,2 +1,2 @@
-a41ccfab2d42cc3204b78a7fce5143a9 *tests/data/pixfmt/gbrp-yuv422p.yuv
+c4060bb75d598759595c723f7cca7477 *tests/data/pixfmt/gbrp-yuv422p.yuv
 7603200 tests/data/pixfmt/gbrp-yuv422p.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuv422p10be b/tests/ref/pixfmt/gbrp-yuv422p10be
index 720ad0fc63..f8e90f03c7 100644
--- a/tests/ref/pixfmt/gbrp-yuv422p10be
+++ b/tests/ref/pixfmt/gbrp-yuv422p10be
@@ -1,2 +1,2 @@
-af24c15d5ae010de700759a02afddbbd *tests/data/pixfmt/gbrp-yuv422p10be.yuv
+c2ecef211a038553fff21cc0a542128b *tests/data/pixfmt/gbrp-yuv422p10be.yuv
 7603200 tests/data/pixfmt/gbrp-yuv422p10be.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuv422p10le b/tests/ref/pixfmt/gbrp-yuv422p10le
index e8beca0ba1..00f80be963 100644
--- a/tests/ref/pixfmt/gbrp-yuv422p10le
+++ b/tests/ref/pixfmt/gbrp-yuv422p10le
@@ -1,2 +1,2 @@
-af24c15d5ae010de700759a02afddbbd *tests/data/pixfmt/gbrp-yuv422p10le.yuv
+c2ecef211a038553fff21cc0a542128b *tests/data/pixfmt/gbrp-yuv422p10le.yuv
 7603200 tests/data/pixfmt/gbrp-yuv422p10le.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuvj420p b/tests/ref/pixfmt/gbrp-yuvj420p
index 6d1df83120..10f1bf27a7 100644
--- a/tests/ref/pixfmt/gbrp-yuvj420p
+++ b/tests/ref/pixfmt/gbrp-yuvj420p
@@ -1,2 +1,2 @@
-2b06103326535b5fcfef6dfc1abc7256 *tests/data/pixfmt/gbrp-yuvj420p.yuv
+12a0c79356d550cf3d16e28b7c8aef22 *tests/data/pixfmt/gbrp-yuvj420p.yuv
 7603200 tests/data/pixfmt/gbrp-yuvj420p.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuvj422p b/tests/ref/pixfmt/gbrp-yuvj422p
index a1aa3455ec..a470ff55c7 100644
--- a/tests/ref/pixfmt/gbrp-yuvj422p
+++ b/tests/ref/pixfmt/gbrp-yuvj422p
@@ -1,2 +1,2 @@
-afee1b55a3e7e1c306b58ffe7bb42033 *tests/data/pixfmt/gbrp-yuvj422p.yuv
+f9eb82915f959906466c5d71bc049b30 *tests/data/pixfmt/gbrp-yuvj422p.yuv
 7603200 tests/data/pixfmt/gbrp-yuvj422p.yuv
diff --git a/tests/ref/pixfmt/gbrp-yuyv422 b/tests/ref/pixfmt/gbrp-yuyv422
index 736dee6d9e..393099a72b 100644
--- a/tests/ref/pixfmt/gbrp-yuyv422
+++ b/tests/ref/pixfmt/gbrp-yuyv422
@@ -1,2 +1,2 @@
-a41ccfab2d42cc3204b78a7fce5143a9 *tests/data/pixfmt/gbrp-yuyv422.yuv
+c4060bb75d598759595c723f7cca7477 *tests/data/pixfmt/gbrp-yuyv422.yuv
 7603200 tests/data/pixfmt/gbrp-yuyv422.yuv
diff --git a/tests/ref/pixfmt/gbrp-yvyu422 b/tests/ref/pixfmt/gbrp-yvyu422
index 1003e8cc62..da772c10b1 100644
--- a/tests/ref/pixfmt/gbrp-yvyu422
+++ b/tests/ref/pixfmt/gbrp-yvyu422
@@ -1,2 +1,2 @@
-a41ccfab2d42cc3204b78a7fce5143a9 *tests/data/pixfmt/gbrp-yvyu422.yuv
+c4060bb75d598759595c723f7cca7477 *tests/data/pixfmt/gbrp-yvyu422.yuv
 7603200 tests/data/pixfmt/gbrp-yvyu422.yuv
diff --git a/tests/ref/pixfmt/rgb24 b/tests/ref/pixfmt/rgb24
index b38611343b..53e623abda 100644
--- a/tests/ref/pixfmt/rgb24
+++ b/tests/ref/pixfmt/rgb24
@@ -1,2 +1,2 @@
-6bb61113e7b70eb09dbcec356122a0e2 *tests/data/pixfmt/rgb24.yuv
+b463ee4d9f43028c6872be51b9d9cf8d *tests/data/pixfmt/rgb24.yuv
 304128 tests/data/pixfmt/rgb24.yuv
diff --git a/tests/ref/pixfmt/rgb24-nv12 b/tests/ref/pixfmt/rgb24-nv12
index e12e963ae8..92246200a0 100644
--- a/tests/ref/pixfmt/rgb24-nv12
+++ b/tests/ref/pixfmt/rgb24-nv12
@@ -1,2 +1,2 @@
-c50d8e79fb0c447a7d92e7780aaa2b54 *tests/data/pixfmt/rgb24-nv12.yuv
+8e4caab3ead9bf7a296dc90198f88611 *tests/data/pixfmt/rgb24-nv12.yuv
 7603200 tests/data/pixfmt/rgb24-nv12.yuv
diff --git a/tests/ref/pixfmt/rgb24-nv16 b/tests/ref/pixfmt/rgb24-nv16
index cf9f9307e5..5ef22d1024 100644
--- a/tests/ref/pixfmt/rgb24-nv16
+++ b/tests/ref/pixfmt/rgb24-nv16
@@ -1,2 +1,2 @@
-2f3b40e55b843623859e058f1343b4b7 *tests/data/pixfmt/rgb24-nv16.yuv
+bc232b44c79f83458dd7f73040c79ba1 *tests/data/pixfmt/rgb24-nv16.yuv
 7603200 tests/data/pixfmt/rgb24-nv16.yuv
diff --git a/tests/ref/pixfmt/rgb24-p010be b/tests/ref/pixfmt/rgb24-p010be
index bc38709a6a..78eb364bbd 100644
--- a/tests/ref/pixfmt/rgb24-p010be
+++ b/tests/ref/pixfmt/rgb24-p010be
@@ -1,2 +1,2 @@
-5a865e5d85e660c4d691a2018355a9b8 *tests/data/pixfmt/rgb24-p010be.yuv
+c50601d54ee305093fc351ef2e6e2a0a *tests/data/pixfmt/rgb24-p010be.yuv
 7603200 tests/data/pixfmt/rgb24-p010be.yuv
diff --git a/tests/ref/pixfmt/rgb24-p010le b/tests/ref/pixfmt/rgb24-p010le
index bace3e8baf..d9d06503cd 100644
--- a/tests/ref/pixfmt/rgb24-p010le
+++ b/tests/ref/pixfmt/rgb24-p010le
@@ -1,2 +1,2 @@
-5a865e5d85e660c4d691a2018355a9b8 *tests/data/pixfmt/rgb24-p010le.yuv
+c50601d54ee305093fc351ef2e6e2a0a *tests/data/pixfmt/rgb24-p010le.yuv
 7603200 tests/data/pixfmt/rgb24-p010le.yuv
diff --git a/tests/ref/pixfmt/rgb24-p012be b/tests/ref/pixfmt/rgb24-p012be
index 3f0945f3b5..1eced5db0f 100644
--- a/tests/ref/pixfmt/rgb24-p012be
+++ b/tests/ref/pixfmt/rgb24-p012be
@@ -1,2 +1,2 @@
-deb598e81ec70a3ade89d2bd3cf24739 *tests/data/pixfmt/rgb24-p012be.yuv
+0c6b7033584a8487d93aefecf9dd481b *tests/data/pixfmt/rgb24-p012be.yuv
 7603200 tests/data/pixfmt/rgb24-p012be.yuv
diff --git a/tests/ref/pixfmt/rgb24-p012le b/tests/ref/pixfmt/rgb24-p012le
index fe2ae35ebf..58c0ba153f 100644
--- a/tests/ref/pixfmt/rgb24-p012le
+++ b/tests/ref/pixfmt/rgb24-p012le
@@ -1,2 +1,2 @@
-deb598e81ec70a3ade89d2bd3cf24739 *tests/data/pixfmt/rgb24-p012le.yuv
+0c6b7033584a8487d93aefecf9dd481b *tests/data/pixfmt/rgb24-p012le.yuv
 7603200 tests/data/pixfmt/rgb24-p012le.yuv
diff --git a/tests/ref/pixfmt/rgb24-p016be b/tests/ref/pixfmt/rgb24-p016be
index 4510406164..635ada754a 100644
--- a/tests/ref/pixfmt/rgb24-p016be
+++ b/tests/ref/pixfmt/rgb24-p016be
@@ -1,2 +1,2 @@
-040e45b750dd445538565b808cc1814f *tests/data/pixfmt/rgb24-p016be.yuv
+17b68506db0c205cd7867b049ccae92e *tests/data/pixfmt/rgb24-p016be.yuv
 7603200 tests/data/pixfmt/rgb24-p016be.yuv
diff --git a/tests/ref/pixfmt/rgb24-p016le b/tests/ref/pixfmt/rgb24-p016le
index e683fc98d4..5c37004ccd 100644
--- a/tests/ref/pixfmt/rgb24-p016le
+++ b/tests/ref/pixfmt/rgb24-p016le
@@ -1,2 +1,2 @@
-040e45b750dd445538565b808cc1814f *tests/data/pixfmt/rgb24-p016le.yuv
+17b68506db0c205cd7867b049ccae92e *tests/data/pixfmt/rgb24-p016le.yuv
 7603200 tests/data/pixfmt/rgb24-p016le.yuv
diff --git a/tests/ref/pixfmt/rgb24-p210be b/tests/ref/pixfmt/rgb24-p210be
index c2dff8659c..1c9a252e6d 100644
--- a/tests/ref/pixfmt/rgb24-p210be
+++ b/tests/ref/pixfmt/rgb24-p210be
@@ -1,2 +1,2 @@
-d7307ece8893eec9a9025a1ca94be5db *tests/data/pixfmt/rgb24-p210be.yuv
+2c533ae9d84aa8515b31367bfc98018a *tests/data/pixfmt/rgb24-p210be.yuv
 7603200 tests/data/pixfmt/rgb24-p210be.yuv
diff --git a/tests/ref/pixfmt/rgb24-p210le b/tests/ref/pixfmt/rgb24-p210le
index bc8b23138c..4a7d3e2761 100644
--- a/tests/ref/pixfmt/rgb24-p210le
+++ b/tests/ref/pixfmt/rgb24-p210le
@@ -1,2 +1,2 @@
-d7307ece8893eec9a9025a1ca94be5db *tests/data/pixfmt/rgb24-p210le.yuv
+2c533ae9d84aa8515b31367bfc98018a *tests/data/pixfmt/rgb24-p210le.yuv
 7603200 tests/data/pixfmt/rgb24-p210le.yuv
diff --git a/tests/ref/pixfmt/rgb24-p212be b/tests/ref/pixfmt/rgb24-p212be
index 5c2c94e85b..2b382d1599 100644
--- a/tests/ref/pixfmt/rgb24-p212be
+++ b/tests/ref/pixfmt/rgb24-p212be
@@ -1,2 +1,2 @@
-1ea4c3048875f8def9ef3dceff4d245d *tests/data/pixfmt/rgb24-p212be.yuv
+b1edab4786df5840d98338d14625203f *tests/data/pixfmt/rgb24-p212be.yuv
 7603200 tests/data/pixfmt/rgb24-p212be.yuv
diff --git a/tests/ref/pixfmt/rgb24-p212le b/tests/ref/pixfmt/rgb24-p212le
index 0a5b13be2f..9445aacb02 100644
--- a/tests/ref/pixfmt/rgb24-p212le
+++ b/tests/ref/pixfmt/rgb24-p212le
@@ -1,2 +1,2 @@
-1ea4c3048875f8def9ef3dceff4d245d *tests/data/pixfmt/rgb24-p212le.yuv
+b1edab4786df5840d98338d14625203f *tests/data/pixfmt/rgb24-p212le.yuv
 7603200 tests/data/pixfmt/rgb24-p212le.yuv
diff --git a/tests/ref/pixfmt/rgb24-p216be b/tests/ref/pixfmt/rgb24-p216be
index 5c5a3be298..a1ab21f0a5 100644
--- a/tests/ref/pixfmt/rgb24-p216be
+++ b/tests/ref/pixfmt/rgb24-p216be
@@ -1,2 +1,2 @@
-2f3b40e55b843623859e058f1343b4b7 *tests/data/pixfmt/rgb24-p216be.yuv
+b1edab4786df5840d98338d14625203f *tests/data/pixfmt/rgb24-p216be.yuv
 7603200 tests/data/pixfmt/rgb24-p216be.yuv
diff --git a/tests/ref/pixfmt/rgb24-p216le b/tests/ref/pixfmt/rgb24-p216le
index 439308c55f..f9e0585151 100644
--- a/tests/ref/pixfmt/rgb24-p216le
+++ b/tests/ref/pixfmt/rgb24-p216le
@@ -1,2 +1,2 @@
-2f3b40e55b843623859e058f1343b4b7 *tests/data/pixfmt/rgb24-p216le.yuv
+b1edab4786df5840d98338d14625203f *tests/data/pixfmt/rgb24-p216le.yuv
 7603200 tests/data/pixfmt/rgb24-p216le.yuv
diff --git a/tests/ref/pixfmt/rgb24-rgb555 b/tests/ref/pixfmt/rgb24-rgb555
index b2eedb1f5e..af3eb50aa1 100644
--- a/tests/ref/pixfmt/rgb24-rgb555
+++ b/tests/ref/pixfmt/rgb24-rgb555
@@ -1,2 +1,2 @@
-22d12e8bc3178749748db5f01bf161d8 *tests/data/pixfmt/rgb24-rgb555.yuv
+88aa5e8baffbf7a5c6030118eef0f522 *tests/data/pixfmt/rgb24-rgb555.yuv
 7603200 tests/data/pixfmt/rgb24-rgb555.yuv
diff --git a/tests/ref/pixfmt/rgb24-rgb565 b/tests/ref/pixfmt/rgb24-rgb565
index 7341a01e2e..273325c1da 100644
--- a/tests/ref/pixfmt/rgb24-rgb565
+++ b/tests/ref/pixfmt/rgb24-rgb565
@@ -1,2 +1,2 @@
-326237c369c74370269d4bbddbe6e38c *tests/data/pixfmt/rgb24-rgb565.yuv
+6626568252db9b9969dc7d5c900c582a *tests/data/pixfmt/rgb24-rgb565.yuv
 7603200 tests/data/pixfmt/rgb24-rgb565.yuv
diff --git a/tests/ref/pixfmt/rgb24-uyvy422 b/tests/ref/pixfmt/rgb24-uyvy422
index 16dd7004b2..43011e3e1e 100644
--- a/tests/ref/pixfmt/rgb24-uyvy422
+++ b/tests/ref/pixfmt/rgb24-uyvy422
@@ -1,2 +1,2 @@
-2f3b40e55b843623859e058f1343b4b7 *tests/data/pixfmt/rgb24-uyvy422.yuv
+bc232b44c79f83458dd7f73040c79ba1 *tests/data/pixfmt/rgb24-uyvy422.yuv
 7603200 tests/data/pixfmt/rgb24-uyvy422.yuv
diff --git a/tests/ref/pixfmt/rgb24-y210le b/tests/ref/pixfmt/rgb24-y210le
index b509634bdb..828f3f1f29 100644
--- a/tests/ref/pixfmt/rgb24-y210le
+++ b/tests/ref/pixfmt/rgb24-y210le
@@ -1,2 +1,2 @@
-d7307ece8893eec9a9025a1ca94be5db *tests/data/pixfmt/rgb24-y210le.yuv
+2c533ae9d84aa8515b31367bfc98018a *tests/data/pixfmt/rgb24-y210le.yuv
 7603200 tests/data/pixfmt/rgb24-y210le.yuv
diff --git a/tests/ref/pixfmt/rgb24-y212le b/tests/ref/pixfmt/rgb24-y212le
index 53a8f25764..696acd4b4f 100644
--- a/tests/ref/pixfmt/rgb24-y212le
+++ b/tests/ref/pixfmt/rgb24-y212le
@@ -1,2 +1,2 @@
-1ea4c3048875f8def9ef3dceff4d245d *tests/data/pixfmt/rgb24-y212le.yuv
+b1edab4786df5840d98338d14625203f *tests/data/pixfmt/rgb24-y212le.yuv
 7603200 tests/data/pixfmt/rgb24-y212le.yuv
diff --git a/tests/ref/pixfmt/rgb24-y216le b/tests/ref/pixfmt/rgb24-y216le
index ac2ad627fa..4698b93019 100644
--- a/tests/ref/pixfmt/rgb24-y216le
+++ b/tests/ref/pixfmt/rgb24-y216le
@@ -1,2 +1,2 @@
-2f3b40e55b843623859e058f1343b4b7 *tests/data/pixfmt/rgb24-y216le.yuv
+b1edab4786df5840d98338d14625203f *tests/data/pixfmt/rgb24-y216le.yuv
 7603200 tests/data/pixfmt/rgb24-y216le.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv410p b/tests/ref/pixfmt/rgb24-yuv410p
index 050b499906..9a52f130ec 100644
--- a/tests/ref/pixfmt/rgb24-yuv410p
+++ b/tests/ref/pixfmt/rgb24-yuv410p
@@ -1,2 +1,2 @@
-ebf2c5913d3df43751509f0ca5c315b6 *tests/data/pixfmt/rgb24-yuv410p.yuv
+84e398dffad4c5baeba729d72115cfe1 *tests/data/pixfmt/rgb24-yuv410p.yuv
 7603200 tests/data/pixfmt/rgb24-yuv410p.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv411p b/tests/ref/pixfmt/rgb24-yuv411p
index 79f21e9597..c77c6feb4d 100644
--- a/tests/ref/pixfmt/rgb24-yuv411p
+++ b/tests/ref/pixfmt/rgb24-yuv411p
@@ -1,2 +1,2 @@
-356e5283a95c3a9803b395ff27964bd7 *tests/data/pixfmt/rgb24-yuv411p.yuv
+d96909d1ad8245272b672fb3df30a32f *tests/data/pixfmt/rgb24-yuv411p.yuv
 7603200 tests/data/pixfmt/rgb24-yuv411p.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv420p b/tests/ref/pixfmt/rgb24-yuv420p
index 74e2c3f02d..bdcf5138f6 100644
--- a/tests/ref/pixfmt/rgb24-yuv420p
+++ b/tests/ref/pixfmt/rgb24-yuv420p
@@ -1,2 +1,2 @@
-c50d8e79fb0c447a7d92e7780aaa2b54 *tests/data/pixfmt/rgb24-yuv420p.yuv
+8e4caab3ead9bf7a296dc90198f88611 *tests/data/pixfmt/rgb24-yuv420p.yuv
 7603200 tests/data/pixfmt/rgb24-yuv420p.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv420p10be b/tests/ref/pixfmt/rgb24-yuv420p10be
index 949a450b8e..6ac93e2b13 100644
--- a/tests/ref/pixfmt/rgb24-yuv420p10be
+++ b/tests/ref/pixfmt/rgb24-yuv420p10be
@@ -1,2 +1,2 @@
-5a865e5d85e660c4d691a2018355a9b8 *tests/data/pixfmt/rgb24-yuv420p10be.yuv
+c50601d54ee305093fc351ef2e6e2a0a *tests/data/pixfmt/rgb24-yuv420p10be.yuv
 7603200 tests/data/pixfmt/rgb24-yuv420p10be.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv420p10le b/tests/ref/pixfmt/rgb24-yuv420p10le
index 8b1efece20..f560ef7cd3 100644
--- a/tests/ref/pixfmt/rgb24-yuv420p10le
+++ b/tests/ref/pixfmt/rgb24-yuv420p10le
@@ -1,2 +1,2 @@
-5a865e5d85e660c4d691a2018355a9b8 *tests/data/pixfmt/rgb24-yuv420p10le.yuv
+c50601d54ee305093fc351ef2e6e2a0a *tests/data/pixfmt/rgb24-yuv420p10le.yuv
 7603200 tests/data/pixfmt/rgb24-yuv420p10le.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv420p12be b/tests/ref/pixfmt/rgb24-yuv420p12be
index 848596d5ca..ec980c740f 100644
--- a/tests/ref/pixfmt/rgb24-yuv420p12be
+++ b/tests/ref/pixfmt/rgb24-yuv420p12be
@@ -1,2 +1,2 @@
-deb598e81ec70a3ade89d2bd3cf24739 *tests/data/pixfmt/rgb24-yuv420p12be.yuv
+0c6b7033584a8487d93aefecf9dd481b *tests/data/pixfmt/rgb24-yuv420p12be.yuv
 7603200 tests/data/pixfmt/rgb24-yuv420p12be.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv420p12le b/tests/ref/pixfmt/rgb24-yuv420p12le
index b7216024ee..2b10fc2b32 100644
--- a/tests/ref/pixfmt/rgb24-yuv420p12le
+++ b/tests/ref/pixfmt/rgb24-yuv420p12le
@@ -1,2 +1,2 @@
-deb598e81ec70a3ade89d2bd3cf24739 *tests/data/pixfmt/rgb24-yuv420p12le.yuv
+0c6b7033584a8487d93aefecf9dd481b *tests/data/pixfmt/rgb24-yuv420p12le.yuv
 7603200 tests/data/pixfmt/rgb24-yuv420p12le.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv420p16be b/tests/ref/pixfmt/rgb24-yuv420p16be
index da235109e5..5b28407a6b 100644
--- a/tests/ref/pixfmt/rgb24-yuv420p16be
+++ b/tests/ref/pixfmt/rgb24-yuv420p16be
@@ -1,2 +1,2 @@
-040e45b750dd445538565b808cc1814f *tests/data/pixfmt/rgb24-yuv420p16be.yuv
+17b68506db0c205cd7867b049ccae92e *tests/data/pixfmt/rgb24-yuv420p16be.yuv
 7603200 tests/data/pixfmt/rgb24-yuv420p16be.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv420p16le b/tests/ref/pixfmt/rgb24-yuv420p16le
index 42b84f5286..bb9e1e7786 100644
--- a/tests/ref/pixfmt/rgb24-yuv420p16le
+++ b/tests/ref/pixfmt/rgb24-yuv420p16le
@@ -1,2 +1,2 @@
-040e45b750dd445538565b808cc1814f *tests/data/pixfmt/rgb24-yuv420p16le.yuv
+17b68506db0c205cd7867b049ccae92e *tests/data/pixfmt/rgb24-yuv420p16le.yuv
 7603200 tests/data/pixfmt/rgb24-yuv420p16le.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv422p b/tests/ref/pixfmt/rgb24-yuv422p
index c48b7c9f33..0255257d0c 100644
--- a/tests/ref/pixfmt/rgb24-yuv422p
+++ b/tests/ref/pixfmt/rgb24-yuv422p
@@ -1,2 +1,2 @@
-2f3b40e55b843623859e058f1343b4b7 *tests/data/pixfmt/rgb24-yuv422p.yuv
+bc232b44c79f83458dd7f73040c79ba1 *tests/data/pixfmt/rgb24-yuv422p.yuv
 7603200 tests/data/pixfmt/rgb24-yuv422p.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv422p10be b/tests/ref/pixfmt/rgb24-yuv422p10be
index 5f81701714..2ff23ed431 100644
--- a/tests/ref/pixfmt/rgb24-yuv422p10be
+++ b/tests/ref/pixfmt/rgb24-yuv422p10be
@@ -1,2 +1,2 @@
-d7307ece8893eec9a9025a1ca94be5db *tests/data/pixfmt/rgb24-yuv422p10be.yuv
+2c533ae9d84aa8515b31367bfc98018a *tests/data/pixfmt/rgb24-yuv422p10be.yuv
 7603200 tests/data/pixfmt/rgb24-yuv422p10be.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv422p10le b/tests/ref/pixfmt/rgb24-yuv422p10le
index 042b403d25..521df5bde5 100644
--- a/tests/ref/pixfmt/rgb24-yuv422p10le
+++ b/tests/ref/pixfmt/rgb24-yuv422p10le
@@ -1,2 +1,2 @@
-d7307ece8893eec9a9025a1ca94be5db *tests/data/pixfmt/rgb24-yuv422p10le.yuv
+2c533ae9d84aa8515b31367bfc98018a *tests/data/pixfmt/rgb24-yuv422p10le.yuv
 7603200 tests/data/pixfmt/rgb24-yuv422p10le.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv422p12be b/tests/ref/pixfmt/rgb24-yuv422p12be
index 3c63ef0af8..81d82a0ffa 100644
--- a/tests/ref/pixfmt/rgb24-yuv422p12be
+++ b/tests/ref/pixfmt/rgb24-yuv422p12be
@@ -1,2 +1,2 @@
-1ea4c3048875f8def9ef3dceff4d245d *tests/data/pixfmt/rgb24-yuv422p12be.yuv
+b1edab4786df5840d98338d14625203f *tests/data/pixfmt/rgb24-yuv422p12be.yuv
 7603200 tests/data/pixfmt/rgb24-yuv422p12be.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv422p12le b/tests/ref/pixfmt/rgb24-yuv422p12le
index 62f76e4054..f90ae63f60 100644
--- a/tests/ref/pixfmt/rgb24-yuv422p12le
+++ b/tests/ref/pixfmt/rgb24-yuv422p12le
@@ -1,2 +1,2 @@
-1ea4c3048875f8def9ef3dceff4d245d *tests/data/pixfmt/rgb24-yuv422p12le.yuv
+b1edab4786df5840d98338d14625203f *tests/data/pixfmt/rgb24-yuv422p12le.yuv
 7603200 tests/data/pixfmt/rgb24-yuv422p12le.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv422p16be b/tests/ref/pixfmt/rgb24-yuv422p16be
index aed8f56251..814c20a960 100644
--- a/tests/ref/pixfmt/rgb24-yuv422p16be
+++ b/tests/ref/pixfmt/rgb24-yuv422p16be
@@ -1,2 +1,2 @@
-2f3b40e55b843623859e058f1343b4b7 *tests/data/pixfmt/rgb24-yuv422p16be.yuv
+b1edab4786df5840d98338d14625203f *tests/data/pixfmt/rgb24-yuv422p16be.yuv
 7603200 tests/data/pixfmt/rgb24-yuv422p16be.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv422p16le b/tests/ref/pixfmt/rgb24-yuv422p16le
index 5bb8b0b066..4c2d802f31 100644
--- a/tests/ref/pixfmt/rgb24-yuv422p16le
+++ b/tests/ref/pixfmt/rgb24-yuv422p16le
@@ -1,2 +1,2 @@
-2f3b40e55b843623859e058f1343b4b7 *tests/data/pixfmt/rgb24-yuv422p16le.yuv
+b1edab4786df5840d98338d14625203f *tests/data/pixfmt/rgb24-yuv422p16le.yuv
 7603200 tests/data/pixfmt/rgb24-yuv422p16le.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv440p b/tests/ref/pixfmt/rgb24-yuv440p
index c1e92f13a9..e8fcb400d2 100644
--- a/tests/ref/pixfmt/rgb24-yuv440p
+++ b/tests/ref/pixfmt/rgb24-yuv440p
@@ -1,2 +1,2 @@
-8db52df5aafa43d9ba322423bd15fa54 *tests/data/pixfmt/rgb24-yuv440p.yuv
+0d762eb6abc3544f0d82fdbd2d917e6e *tests/data/pixfmt/rgb24-yuv440p.yuv
 7603200 tests/data/pixfmt/rgb24-yuv440p.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv440p10be b/tests/ref/pixfmt/rgb24-yuv440p10be
index 0e5bd3fef1..5ab8f40211 100644
--- a/tests/ref/pixfmt/rgb24-yuv440p10be
+++ b/tests/ref/pixfmt/rgb24-yuv440p10be
@@ -1,2 +1,2 @@
-c868dfd73a957a18f35eaaa56734e0ec *tests/data/pixfmt/rgb24-yuv440p10be.yuv
+6f59b8c0a9747cf9459b59a654e59113 *tests/data/pixfmt/rgb24-yuv440p10be.yuv
 7603200 tests/data/pixfmt/rgb24-yuv440p10be.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv440p10le b/tests/ref/pixfmt/rgb24-yuv440p10le
index 603778cd6e..adfa81b03e 100644
--- a/tests/ref/pixfmt/rgb24-yuv440p10le
+++ b/tests/ref/pixfmt/rgb24-yuv440p10le
@@ -1,2 +1,2 @@
-c868dfd73a957a18f35eaaa56734e0ec *tests/data/pixfmt/rgb24-yuv440p10le.yuv
+6f59b8c0a9747cf9459b59a654e59113 *tests/data/pixfmt/rgb24-yuv440p10le.yuv
 7603200 tests/data/pixfmt/rgb24-yuv440p10le.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv440p12be b/tests/ref/pixfmt/rgb24-yuv440p12be
index e324c51013..6af73b3807 100644
--- a/tests/ref/pixfmt/rgb24-yuv440p12be
+++ b/tests/ref/pixfmt/rgb24-yuv440p12be
@@ -1,2 +1,2 @@
-60394a63264c36418c2a00bde1786232 *tests/data/pixfmt/rgb24-yuv440p12be.yuv
+2caeda51405ad4297603a99e6c78e411 *tests/data/pixfmt/rgb24-yuv440p12be.yuv
 7603200 tests/data/pixfmt/rgb24-yuv440p12be.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuv440p12le b/tests/ref/pixfmt/rgb24-yuv440p12le
index d6950a858e..4abd9982cc 100644
--- a/tests/ref/pixfmt/rgb24-yuv440p12le
+++ b/tests/ref/pixfmt/rgb24-yuv440p12le
@@ -1,2 +1,2 @@
-60394a63264c36418c2a00bde1786232 *tests/data/pixfmt/rgb24-yuv440p12le.yuv
+2caeda51405ad4297603a99e6c78e411 *tests/data/pixfmt/rgb24-yuv440p12le.yuv
 7603200 tests/data/pixfmt/rgb24-yuv440p12le.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuvj420p b/tests/ref/pixfmt/rgb24-yuvj420p
index c5e8036161..4448ae6159 100644
--- a/tests/ref/pixfmt/rgb24-yuvj420p
+++ b/tests/ref/pixfmt/rgb24-yuvj420p
@@ -1,2 +1,2 @@
-25069b875ca64ce3f0b7f8b818279adc *tests/data/pixfmt/rgb24-yuvj420p.yuv
+9de248ce72bb4d517eb40035457f7465 *tests/data/pixfmt/rgb24-yuvj420p.yuv
 7603200 tests/data/pixfmt/rgb24-yuvj420p.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuvj422p b/tests/ref/pixfmt/rgb24-yuvj422p
index d38508351e..fff0563748 100644
--- a/tests/ref/pixfmt/rgb24-yuvj422p
+++ b/tests/ref/pixfmt/rgb24-yuvj422p
@@ -1,2 +1,2 @@
-d430eaadff3fb1e03110bba303016514 *tests/data/pixfmt/rgb24-yuvj422p.yuv
+7e3e824cbcad8bbbac7bd7aa562927cc *tests/data/pixfmt/rgb24-yuvj422p.yuv
 7603200 tests/data/pixfmt/rgb24-yuvj422p.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuvj440p b/tests/ref/pixfmt/rgb24-yuvj440p
index 632980edfa..6009cbc9ae 100644
--- a/tests/ref/pixfmt/rgb24-yuvj440p
+++ b/tests/ref/pixfmt/rgb24-yuvj440p
@@ -1,2 +1,2 @@
-b8af9e14ebfca26b0749bfc7a8345525 *tests/data/pixfmt/rgb24-yuvj440p.yuv
+9dd9c1c52b3449abd17434a5bb277a2e *tests/data/pixfmt/rgb24-yuvj440p.yuv
 7603200 tests/data/pixfmt/rgb24-yuvj440p.yuv
diff --git a/tests/ref/pixfmt/rgb24-yuyv422 b/tests/ref/pixfmt/rgb24-yuyv422
index 13f941f787..2743740fd1 100644
--- a/tests/ref/pixfmt/rgb24-yuyv422
+++ b/tests/ref/pixfmt/rgb24-yuyv422
@@ -1,2 +1,2 @@
-2f3b40e55b843623859e058f1343b4b7 *tests/data/pixfmt/rgb24-yuyv422.yuv
+bc232b44c79f83458dd7f73040c79ba1 *tests/data/pixfmt/rgb24-yuyv422.yuv
 7603200 tests/data/pixfmt/rgb24-yuyv422.yuv
diff --git a/tests/ref/pixfmt/rgb24-yvyu422 b/tests/ref/pixfmt/rgb24-yvyu422
index 66263ece75..a3d4b242bf 100644
--- a/tests/ref/pixfmt/rgb24-yvyu422
+++ b/tests/ref/pixfmt/rgb24-yvyu422
@@ -1,2 +1,2 @@
-2f3b40e55b843623859e058f1343b4b7 *tests/data/pixfmt/rgb24-yvyu422.yuv
+bc232b44c79f83458dd7f73040c79ba1 *tests/data/pixfmt/rgb24-yvyu422.yuv
 7603200 tests/data/pixfmt/rgb24-yvyu422.yuv
diff --git a/tests/ref/pixfmt/rgb32 b/tests/ref/pixfmt/rgb32
index 741e60a4e1..1ca79dd96c 100644
--- a/tests/ref/pixfmt/rgb32
+++ b/tests/ref/pixfmt/rgb32
@@ -1,2 +1,2 @@
-6bb61113e7b70eb09dbcec356122a0e2 *tests/data/pixfmt/rgb32.yuv
+b463ee4d9f43028c6872be51b9d9cf8d *tests/data/pixfmt/rgb32.yuv
 304128 tests/data/pixfmt/rgb32.yuv
diff --git a/tests/ref/pixfmt/rgb48-nv12 b/tests/ref/pixfmt/rgb48-nv12
index 07968e772a..a151dcad43 100644
--- a/tests/ref/pixfmt/rgb48-nv12
+++ b/tests/ref/pixfmt/rgb48-nv12
@@ -1,2 +1,2 @@
-2a9817112e5dab50d753eb331eac2c34 *tests/data/pixfmt/rgb48-nv12.yuv
+9f302025d0a208dd45425719fbac23ea *tests/data/pixfmt/rgb48-nv12.yuv
 15206400 tests/data/pixfmt/rgb48-nv12.yuv
diff --git a/tests/ref/pixfmt/rgb48-nv16 b/tests/ref/pixfmt/rgb48-nv16
index e870cfa33d..fd5ff66925 100644
--- a/tests/ref/pixfmt/rgb48-nv16
+++ b/tests/ref/pixfmt/rgb48-nv16
@@ -1,2 +1,2 @@
-93e26e8d94e78fdd26bad819af6e0fb2 *tests/data/pixfmt/rgb48-nv16.yuv
+3b28c8e681c049147917feffcc0f7791 *tests/data/pixfmt/rgb48-nv16.yuv
 15206400 tests/data/pixfmt/rgb48-nv16.yuv
diff --git a/tests/ref/pixfmt/rgb48-p010be b/tests/ref/pixfmt/rgb48-p010be
index a5ec35b9c5..80369b68a2 100644
--- a/tests/ref/pixfmt/rgb48-p010be
+++ b/tests/ref/pixfmt/rgb48-p010be
@@ -1,2 +1,2 @@
-b28f10c94f0c5816531f43b3e7db7286 *tests/data/pixfmt/rgb48-p010be.yuv
+5d0bcaf187bd4ceb82933392fc9e356f *tests/data/pixfmt/rgb48-p010be.yuv
 15206400 tests/data/pixfmt/rgb48-p010be.yuv
diff --git a/tests/ref/pixfmt/rgb48-p010le b/tests/ref/pixfmt/rgb48-p010le
index a38faf31b8..1d3af8515d 100644
--- a/tests/ref/pixfmt/rgb48-p010le
+++ b/tests/ref/pixfmt/rgb48-p010le
@@ -1,2 +1,2 @@
-b28f10c94f0c5816531f43b3e7db7286 *tests/data/pixfmt/rgb48-p010le.yuv
+5d0bcaf187bd4ceb82933392fc9e356f *tests/data/pixfmt/rgb48-p010le.yuv
 15206400 tests/data/pixfmt/rgb48-p010le.yuv
diff --git a/tests/ref/pixfmt/rgb48-p012be b/tests/ref/pixfmt/rgb48-p012be
index 09c3643b59..e7a542214b 100644
--- a/tests/ref/pixfmt/rgb48-p012be
+++ b/tests/ref/pixfmt/rgb48-p012be
@@ -1,2 +1,2 @@
-6872aae37ba8e11cbc20295038513f79 *tests/data/pixfmt/rgb48-p012be.yuv
+a134a6dbfcb729b65cdd6214e3c3bbec *tests/data/pixfmt/rgb48-p012be.yuv
 15206400 tests/data/pixfmt/rgb48-p012be.yuv
diff --git a/tests/ref/pixfmt/rgb48-p012le b/tests/ref/pixfmt/rgb48-p012le
index 0ec3313eaf..83bff191d7 100644
--- a/tests/ref/pixfmt/rgb48-p012le
+++ b/tests/ref/pixfmt/rgb48-p012le
@@ -1,2 +1,2 @@
-6872aae37ba8e11cbc20295038513f79 *tests/data/pixfmt/rgb48-p012le.yuv
+a134a6dbfcb729b65cdd6214e3c3bbec *tests/data/pixfmt/rgb48-p012le.yuv
 15206400 tests/data/pixfmt/rgb48-p012le.yuv
diff --git a/tests/ref/pixfmt/rgb48-p016be b/tests/ref/pixfmt/rgb48-p016be
index e38f7d3eb4..e7f1662bd5 100644
--- a/tests/ref/pixfmt/rgb48-p016be
+++ b/tests/ref/pixfmt/rgb48-p016be
@@ -1,2 +1,2 @@
-ec26433a25a4d3e0f988c873584fd7f9 *tests/data/pixfmt/rgb48-p016be.yuv
+462995e1eb82bb48ed9c4646bf4d8db9 *tests/data/pixfmt/rgb48-p016be.yuv
 15206400 tests/data/pixfmt/rgb48-p016be.yuv
diff --git a/tests/ref/pixfmt/rgb48-p016le b/tests/ref/pixfmt/rgb48-p016le
index 86e6f6dbec..1ec2f3d654 100644
--- a/tests/ref/pixfmt/rgb48-p016le
+++ b/tests/ref/pixfmt/rgb48-p016le
@@ -1,2 +1,2 @@
-ec26433a25a4d3e0f988c873584fd7f9 *tests/data/pixfmt/rgb48-p016le.yuv
+462995e1eb82bb48ed9c4646bf4d8db9 *tests/data/pixfmt/rgb48-p016le.yuv
 15206400 tests/data/pixfmt/rgb48-p016le.yuv
diff --git a/tests/ref/pixfmt/rgb48-p210be b/tests/ref/pixfmt/rgb48-p210be
index 2757da955b..a994e5eb32 100644
--- a/tests/ref/pixfmt/rgb48-p210be
+++ b/tests/ref/pixfmt/rgb48-p210be
@@ -1,2 +1,2 @@
-6fe225140a49ded3cb63fa4e7d09f8ba *tests/data/pixfmt/rgb48-p210be.yuv
+5a453404824e144ba9431c180bb6fb9d *tests/data/pixfmt/rgb48-p210be.yuv
 15206400 tests/data/pixfmt/rgb48-p210be.yuv
diff --git a/tests/ref/pixfmt/rgb48-p210le b/tests/ref/pixfmt/rgb48-p210le
index 081e73d08c..b6b4296e64 100644
--- a/tests/ref/pixfmt/rgb48-p210le
+++ b/tests/ref/pixfmt/rgb48-p210le
@@ -1,2 +1,2 @@
-6fe225140a49ded3cb63fa4e7d09f8ba *tests/data/pixfmt/rgb48-p210le.yuv
+5a453404824e144ba9431c180bb6fb9d *tests/data/pixfmt/rgb48-p210le.yuv
 15206400 tests/data/pixfmt/rgb48-p210le.yuv
diff --git a/tests/ref/pixfmt/rgb48-p212be b/tests/ref/pixfmt/rgb48-p212be
index f98f0358d1..9c14e4506c 100644
--- a/tests/ref/pixfmt/rgb48-p212be
+++ b/tests/ref/pixfmt/rgb48-p212be
@@ -1,2 +1,2 @@
-89c6e9a5ceeaf98fd119b2726abde280 *tests/data/pixfmt/rgb48-p212be.yuv
+5d6359c61820d6d0097f535b16912ad1 *tests/data/pixfmt/rgb48-p212be.yuv
 15206400 tests/data/pixfmt/rgb48-p212be.yuv
diff --git a/tests/ref/pixfmt/rgb48-p212le b/tests/ref/pixfmt/rgb48-p212le
index 114e9bc89b..33fb59c298 100644
--- a/tests/ref/pixfmt/rgb48-p212le
+++ b/tests/ref/pixfmt/rgb48-p212le
@@ -1,2 +1,2 @@
-89c6e9a5ceeaf98fd119b2726abde280 *tests/data/pixfmt/rgb48-p212le.yuv
+5d6359c61820d6d0097f535b16912ad1 *tests/data/pixfmt/rgb48-p212le.yuv
 15206400 tests/data/pixfmt/rgb48-p212le.yuv
diff --git a/tests/ref/pixfmt/rgb48-p216be b/tests/ref/pixfmt/rgb48-p216be
index d7c973fe2e..098a1fad4f 100644
--- a/tests/ref/pixfmt/rgb48-p216be
+++ b/tests/ref/pixfmt/rgb48-p216be
@@ -1,2 +1,2 @@
-cb77542fc810d89ac810cbc65ed77508 *tests/data/pixfmt/rgb48-p216be.yuv
+0cc1b467fc4a2842d84e489adff1e626 *tests/data/pixfmt/rgb48-p216be.yuv
 15206400 tests/data/pixfmt/rgb48-p216be.yuv
diff --git a/tests/ref/pixfmt/rgb48-p216le b/tests/ref/pixfmt/rgb48-p216le
index e4e715d64c..33248ff012 100644
--- a/tests/ref/pixfmt/rgb48-p216le
+++ b/tests/ref/pixfmt/rgb48-p216le
@@ -1,2 +1,2 @@
-cb77542fc810d89ac810cbc65ed77508 *tests/data/pixfmt/rgb48-p216le.yuv
+0cc1b467fc4a2842d84e489adff1e626 *tests/data/pixfmt/rgb48-p216le.yuv
 15206400 tests/data/pixfmt/rgb48-p216le.yuv
diff --git a/tests/ref/pixfmt/rgb48-uyvy422 b/tests/ref/pixfmt/rgb48-uyvy422
index 3d3c06c8ea..875c44a1fe 100644
--- a/tests/ref/pixfmt/rgb48-uyvy422
+++ b/tests/ref/pixfmt/rgb48-uyvy422
@@ -1,2 +1,2 @@
-06a931c33e33596a5bec92547d0bd66c *tests/data/pixfmt/rgb48-uyvy422.yuv
+e0e1fb879d5ec8e9e0711cccd31be8b8 *tests/data/pixfmt/rgb48-uyvy422.yuv
 15206400 tests/data/pixfmt/rgb48-uyvy422.yuv
diff --git a/tests/ref/pixfmt/rgb48-y210le b/tests/ref/pixfmt/rgb48-y210le
index 832c0feb4d..9be95280fc 100644
--- a/tests/ref/pixfmt/rgb48-y210le
+++ b/tests/ref/pixfmt/rgb48-y210le
@@ -1,2 +1,2 @@
-6fe225140a49ded3cb63fa4e7d09f8ba *tests/data/pixfmt/rgb48-y210le.yuv
+5a453404824e144ba9431c180bb6fb9d *tests/data/pixfmt/rgb48-y210le.yuv
 15206400 tests/data/pixfmt/rgb48-y210le.yuv
diff --git a/tests/ref/pixfmt/rgb48-y212le b/tests/ref/pixfmt/rgb48-y212le
index 630dc8e0e9..9ed82baba7 100644
--- a/tests/ref/pixfmt/rgb48-y212le
+++ b/tests/ref/pixfmt/rgb48-y212le
@@ -1,2 +1,2 @@
-89c6e9a5ceeaf98fd119b2726abde280 *tests/data/pixfmt/rgb48-y212le.yuv
+5d6359c61820d6d0097f535b16912ad1 *tests/data/pixfmt/rgb48-y212le.yuv
 15206400 tests/data/pixfmt/rgb48-y212le.yuv
diff --git a/tests/ref/pixfmt/rgb48-y216le b/tests/ref/pixfmt/rgb48-y216le
index 456818bc61..eae8b9ffaa 100644
--- a/tests/ref/pixfmt/rgb48-y216le
+++ b/tests/ref/pixfmt/rgb48-y216le
@@ -1,2 +1,2 @@
-cb77542fc810d89ac810cbc65ed77508 *tests/data/pixfmt/rgb48-y216le.yuv
+0cc1b467fc4a2842d84e489adff1e626 *tests/data/pixfmt/rgb48-y216le.yuv
 15206400 tests/data/pixfmt/rgb48-y216le.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv410p b/tests/ref/pixfmt/rgb48-yuv410p
index 463b1cf088..f23691d4c6 100644
--- a/tests/ref/pixfmt/rgb48-yuv410p
+++ b/tests/ref/pixfmt/rgb48-yuv410p
@@ -1,2 +1,2 @@
-7ea1161c7c9fa1444047bb252f1cb2b3 *tests/data/pixfmt/rgb48-yuv410p.yuv
+166857f2144bec1e7c29621a8c592176 *tests/data/pixfmt/rgb48-yuv410p.yuv
 15206400 tests/data/pixfmt/rgb48-yuv410p.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv411p b/tests/ref/pixfmt/rgb48-yuv411p
index 18738e03ee..1c1dea73ae 100644
--- a/tests/ref/pixfmt/rgb48-yuv411p
+++ b/tests/ref/pixfmt/rgb48-yuv411p
@@ -1,2 +1,2 @@
-9e7ec47633c517b4077da447bf41bb32 *tests/data/pixfmt/rgb48-yuv411p.yuv
+708ed91b09d2db0abd9fbf69d538ed27 *tests/data/pixfmt/rgb48-yuv411p.yuv
 15206400 tests/data/pixfmt/rgb48-yuv411p.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv420p b/tests/ref/pixfmt/rgb48-yuv420p
index 74e8cd6f45..8b1b61a09f 100644
--- a/tests/ref/pixfmt/rgb48-yuv420p
+++ b/tests/ref/pixfmt/rgb48-yuv420p
@@ -1,2 +1,2 @@
-2a9817112e5dab50d753eb331eac2c34 *tests/data/pixfmt/rgb48-yuv420p.yuv
+9f302025d0a208dd45425719fbac23ea *tests/data/pixfmt/rgb48-yuv420p.yuv
 15206400 tests/data/pixfmt/rgb48-yuv420p.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv420p10be b/tests/ref/pixfmt/rgb48-yuv420p10be
index 823bba5e81..7e871630f9 100644
--- a/tests/ref/pixfmt/rgb48-yuv420p10be
+++ b/tests/ref/pixfmt/rgb48-yuv420p10be
@@ -1,2 +1,2 @@
-b28f10c94f0c5816531f43b3e7db7286 *tests/data/pixfmt/rgb48-yuv420p10be.yuv
+5d0bcaf187bd4ceb82933392fc9e356f *tests/data/pixfmt/rgb48-yuv420p10be.yuv
 15206400 tests/data/pixfmt/rgb48-yuv420p10be.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv420p10le b/tests/ref/pixfmt/rgb48-yuv420p10le
index 150f745377..2b0d9cd828 100644
--- a/tests/ref/pixfmt/rgb48-yuv420p10le
+++ b/tests/ref/pixfmt/rgb48-yuv420p10le
@@ -1,2 +1,2 @@
-b28f10c94f0c5816531f43b3e7db7286 *tests/data/pixfmt/rgb48-yuv420p10le.yuv
+5d0bcaf187bd4ceb82933392fc9e356f *tests/data/pixfmt/rgb48-yuv420p10le.yuv
 15206400 tests/data/pixfmt/rgb48-yuv420p10le.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv420p12be b/tests/ref/pixfmt/rgb48-yuv420p12be
index 837f3c034d..e420b25243 100644
--- a/tests/ref/pixfmt/rgb48-yuv420p12be
+++ b/tests/ref/pixfmt/rgb48-yuv420p12be
@@ -1,2 +1,2 @@
-6872aae37ba8e11cbc20295038513f79 *tests/data/pixfmt/rgb48-yuv420p12be.yuv
+a134a6dbfcb729b65cdd6214e3c3bbec *tests/data/pixfmt/rgb48-yuv420p12be.yuv
 15206400 tests/data/pixfmt/rgb48-yuv420p12be.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv420p12le b/tests/ref/pixfmt/rgb48-yuv420p12le
index 516d3f27e8..788f2d7452 100644
--- a/tests/ref/pixfmt/rgb48-yuv420p12le
+++ b/tests/ref/pixfmt/rgb48-yuv420p12le
@@ -1,2 +1,2 @@
-6872aae37ba8e11cbc20295038513f79 *tests/data/pixfmt/rgb48-yuv420p12le.yuv
+a134a6dbfcb729b65cdd6214e3c3bbec *tests/data/pixfmt/rgb48-yuv420p12le.yuv
 15206400 tests/data/pixfmt/rgb48-yuv420p12le.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv420p16be b/tests/ref/pixfmt/rgb48-yuv420p16be
index 2aa400cff0..a90ffe03c1 100644
--- a/tests/ref/pixfmt/rgb48-yuv420p16be
+++ b/tests/ref/pixfmt/rgb48-yuv420p16be
@@ -1,2 +1,2 @@
-ec26433a25a4d3e0f988c873584fd7f9 *tests/data/pixfmt/rgb48-yuv420p16be.yuv
+462995e1eb82bb48ed9c4646bf4d8db9 *tests/data/pixfmt/rgb48-yuv420p16be.yuv
 15206400 tests/data/pixfmt/rgb48-yuv420p16be.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv420p16le b/tests/ref/pixfmt/rgb48-yuv420p16le
index 857fe16ec4..0d03c6837b 100644
--- a/tests/ref/pixfmt/rgb48-yuv420p16le
+++ b/tests/ref/pixfmt/rgb48-yuv420p16le
@@ -1,2 +1,2 @@
-ec26433a25a4d3e0f988c873584fd7f9 *tests/data/pixfmt/rgb48-yuv420p16le.yuv
+462995e1eb82bb48ed9c4646bf4d8db9 *tests/data/pixfmt/rgb48-yuv420p16le.yuv
 15206400 tests/data/pixfmt/rgb48-yuv420p16le.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv422p b/tests/ref/pixfmt/rgb48-yuv422p
index fb3662ef07..5db14a106f 100644
--- a/tests/ref/pixfmt/rgb48-yuv422p
+++ b/tests/ref/pixfmt/rgb48-yuv422p
@@ -1,2 +1,2 @@
-93e26e8d94e78fdd26bad819af6e0fb2 *tests/data/pixfmt/rgb48-yuv422p.yuv
+3b28c8e681c049147917feffcc0f7791 *tests/data/pixfmt/rgb48-yuv422p.yuv
 15206400 tests/data/pixfmt/rgb48-yuv422p.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv422p10be b/tests/ref/pixfmt/rgb48-yuv422p10be
index aea4559bbd..f1ea32160f 100644
--- a/tests/ref/pixfmt/rgb48-yuv422p10be
+++ b/tests/ref/pixfmt/rgb48-yuv422p10be
@@ -1,2 +1,2 @@
-6fe225140a49ded3cb63fa4e7d09f8ba *tests/data/pixfmt/rgb48-yuv422p10be.yuv
+5a453404824e144ba9431c180bb6fb9d *tests/data/pixfmt/rgb48-yuv422p10be.yuv
 15206400 tests/data/pixfmt/rgb48-yuv422p10be.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv422p10le b/tests/ref/pixfmt/rgb48-yuv422p10le
index 4f28b08f3d..1e044c5fd6 100644
--- a/tests/ref/pixfmt/rgb48-yuv422p10le
+++ b/tests/ref/pixfmt/rgb48-yuv422p10le
@@ -1,2 +1,2 @@
-6fe225140a49ded3cb63fa4e7d09f8ba *tests/data/pixfmt/rgb48-yuv422p10le.yuv
+5a453404824e144ba9431c180bb6fb9d *tests/data/pixfmt/rgb48-yuv422p10le.yuv
 15206400 tests/data/pixfmt/rgb48-yuv422p10le.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv422p12be b/tests/ref/pixfmt/rgb48-yuv422p12be
index 8a64f6e737..f3ff89f84b 100644
--- a/tests/ref/pixfmt/rgb48-yuv422p12be
+++ b/tests/ref/pixfmt/rgb48-yuv422p12be
@@ -1,2 +1,2 @@
-89c6e9a5ceeaf98fd119b2726abde280 *tests/data/pixfmt/rgb48-yuv422p12be.yuv
+5d6359c61820d6d0097f535b16912ad1 *tests/data/pixfmt/rgb48-yuv422p12be.yuv
 15206400 tests/data/pixfmt/rgb48-yuv422p12be.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv422p12le b/tests/ref/pixfmt/rgb48-yuv422p12le
index b280282873..575f3a91c2 100644
--- a/tests/ref/pixfmt/rgb48-yuv422p12le
+++ b/tests/ref/pixfmt/rgb48-yuv422p12le
@@ -1,2 +1,2 @@
-89c6e9a5ceeaf98fd119b2726abde280 *tests/data/pixfmt/rgb48-yuv422p12le.yuv
+5d6359c61820d6d0097f535b16912ad1 *tests/data/pixfmt/rgb48-yuv422p12le.yuv
 15206400 tests/data/pixfmt/rgb48-yuv422p12le.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv422p16be b/tests/ref/pixfmt/rgb48-yuv422p16be
index 6509318775..2c47c1f192 100644
--- a/tests/ref/pixfmt/rgb48-yuv422p16be
+++ b/tests/ref/pixfmt/rgb48-yuv422p16be
@@ -1,2 +1,2 @@
-cb77542fc810d89ac810cbc65ed77508 *tests/data/pixfmt/rgb48-yuv422p16be.yuv
+0cc1b467fc4a2842d84e489adff1e626 *tests/data/pixfmt/rgb48-yuv422p16be.yuv
 15206400 tests/data/pixfmt/rgb48-yuv422p16be.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv422p16le b/tests/ref/pixfmt/rgb48-yuv422p16le
index 602868bc3a..4db8a98073 100644
--- a/tests/ref/pixfmt/rgb48-yuv422p16le
+++ b/tests/ref/pixfmt/rgb48-yuv422p16le
@@ -1,2 +1,2 @@
-cb77542fc810d89ac810cbc65ed77508 *tests/data/pixfmt/rgb48-yuv422p16le.yuv
+0cc1b467fc4a2842d84e489adff1e626 *tests/data/pixfmt/rgb48-yuv422p16le.yuv
 15206400 tests/data/pixfmt/rgb48-yuv422p16le.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv440p b/tests/ref/pixfmt/rgb48-yuv440p
index 4c20df5c82..26c2a76c96 100644
--- a/tests/ref/pixfmt/rgb48-yuv440p
+++ b/tests/ref/pixfmt/rgb48-yuv440p
@@ -1,2 +1,2 @@
-741d0a28a33feac7c57ef165d7c534dd *tests/data/pixfmt/rgb48-yuv440p.yuv
+afb3b0b2cca7f80e66c6f9cda626703d *tests/data/pixfmt/rgb48-yuv440p.yuv
 15206400 tests/data/pixfmt/rgb48-yuv440p.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv440p10be b/tests/ref/pixfmt/rgb48-yuv440p10be
index 6f0bce127b..dd0e42d8fb 100644
--- a/tests/ref/pixfmt/rgb48-yuv440p10be
+++ b/tests/ref/pixfmt/rgb48-yuv440p10be
@@ -1,2 +1,2 @@
-a7c1e021256023ca151792f079d1b561 *tests/data/pixfmt/rgb48-yuv440p10be.yuv
+cb8c1202c8fc8137e6f55e1bccbf6500 *tests/data/pixfmt/rgb48-yuv440p10be.yuv
 15206400 tests/data/pixfmt/rgb48-yuv440p10be.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv440p10le b/tests/ref/pixfmt/rgb48-yuv440p10le
index 034e8ddd1a..4530786483 100644
--- a/tests/ref/pixfmt/rgb48-yuv440p10le
+++ b/tests/ref/pixfmt/rgb48-yuv440p10le
@@ -1,2 +1,2 @@
-a7c1e021256023ca151792f079d1b561 *tests/data/pixfmt/rgb48-yuv440p10le.yuv
+cb8c1202c8fc8137e6f55e1bccbf6500 *tests/data/pixfmt/rgb48-yuv440p10le.yuv
 15206400 tests/data/pixfmt/rgb48-yuv440p10le.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv440p12be b/tests/ref/pixfmt/rgb48-yuv440p12be
index 4b755657be..e984844363 100644
--- a/tests/ref/pixfmt/rgb48-yuv440p12be
+++ b/tests/ref/pixfmt/rgb48-yuv440p12be
@@ -1,2 +1,2 @@
-0a2eb7ffa3a1997103a2fd1b26cfdb97 *tests/data/pixfmt/rgb48-yuv440p12be.yuv
+f49e09a299e72a5c6004427132228f0d *tests/data/pixfmt/rgb48-yuv440p12be.yuv
 15206400 tests/data/pixfmt/rgb48-yuv440p12be.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuv440p12le b/tests/ref/pixfmt/rgb48-yuv440p12le
index bb4a2637fb..66b04c1577 100644
--- a/tests/ref/pixfmt/rgb48-yuv440p12le
+++ b/tests/ref/pixfmt/rgb48-yuv440p12le
@@ -1,2 +1,2 @@
-0a2eb7ffa3a1997103a2fd1b26cfdb97 *tests/data/pixfmt/rgb48-yuv440p12le.yuv
+f49e09a299e72a5c6004427132228f0d *tests/data/pixfmt/rgb48-yuv440p12le.yuv
 15206400 tests/data/pixfmt/rgb48-yuv440p12le.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuvj420p b/tests/ref/pixfmt/rgb48-yuvj420p
index 9491e084cb..6ff3adedc3 100644
--- a/tests/ref/pixfmt/rgb48-yuvj420p
+++ b/tests/ref/pixfmt/rgb48-yuvj420p
@@ -1,2 +1,2 @@
-2eacfd477a912e71171caf352c8cdbb0 *tests/data/pixfmt/rgb48-yuvj420p.yuv
+01f85aeb77318cdd865943b193f7c129 *tests/data/pixfmt/rgb48-yuvj420p.yuv
 15206400 tests/data/pixfmt/rgb48-yuvj420p.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuvj422p b/tests/ref/pixfmt/rgb48-yuvj422p
index 89240328db..f1ffd4441b 100644
--- a/tests/ref/pixfmt/rgb48-yuvj422p
+++ b/tests/ref/pixfmt/rgb48-yuvj422p
@@ -1,2 +1,2 @@
-44a0f9dbcef84b2cb00e7aba61e95ed9 *tests/data/pixfmt/rgb48-yuvj422p.yuv
+fe211a24e74462b0306d6f0503245933 *tests/data/pixfmt/rgb48-yuvj422p.yuv
 15206400 tests/data/pixfmt/rgb48-yuvj422p.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuvj440p b/tests/ref/pixfmt/rgb48-yuvj440p
index 2a713eda1f..283b91b060 100644
--- a/tests/ref/pixfmt/rgb48-yuvj440p
+++ b/tests/ref/pixfmt/rgb48-yuvj440p
@@ -1,2 +1,2 @@
-7b6afca286c2a551ad5c10147c6c9127 *tests/data/pixfmt/rgb48-yuvj440p.yuv
+41c810f56eccd81595deb796499bed88 *tests/data/pixfmt/rgb48-yuvj440p.yuv
 15206400 tests/data/pixfmt/rgb48-yuvj440p.yuv
diff --git a/tests/ref/pixfmt/rgb48-yuyv422 b/tests/ref/pixfmt/rgb48-yuyv422
index c04b7e4fcc..95a02b6560 100644
--- a/tests/ref/pixfmt/rgb48-yuyv422
+++ b/tests/ref/pixfmt/rgb48-yuyv422
@@ -1,2 +1,2 @@
-06a931c33e33596a5bec92547d0bd66c *tests/data/pixfmt/rgb48-yuyv422.yuv
+e0e1fb879d5ec8e9e0711cccd31be8b8 *tests/data/pixfmt/rgb48-yuyv422.yuv
 15206400 tests/data/pixfmt/rgb48-yuyv422.yuv
diff --git a/tests/ref/pixfmt/rgb48-yvyu422 b/tests/ref/pixfmt/rgb48-yvyu422
index 99f0e35063..3b2fc2aa24 100644
--- a/tests/ref/pixfmt/rgb48-yvyu422
+++ b/tests/ref/pixfmt/rgb48-yvyu422
@@ -1,2 +1,2 @@
-06a931c33e33596a5bec92547d0bd66c *tests/data/pixfmt/rgb48-yvyu422.yuv
+e0e1fb879d5ec8e9e0711cccd31be8b8 *tests/data/pixfmt/rgb48-yvyu422.yuv
 15206400 tests/data/pixfmt/rgb48-yvyu422.yuv
diff --git a/tests/ref/pixfmt/xyz12le b/tests/ref/pixfmt/xyz12le
index 870d5ce683..62fde44ee7 100644
--- a/tests/ref/pixfmt/xyz12le
+++ b/tests/ref/pixfmt/xyz12le
@@ -1,2 +1,2 @@
-47b890678bb9195107c2f7afb2344bbf *tests/data/pixfmt/xyz12le.yuv
+8a7b2f8f2fef66059d1c0776adef89da *tests/data/pixfmt/xyz12le.yuv
 304128 tests/data/pixfmt/xyz12le.yuv
diff --git a/tests/ref/seek/lavf-gif b/tests/ref/seek/lavf-gif
index 9ce8308767..336c144e02 100644
--- a/tests/ref/seek/lavf-gif
+++ b/tests/ref/seek/lavf-gif
@@ -1,40 +1,40 @@
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret: 0         st:-1 flags:0  ts:-1.000000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret: 0         st:-1 flags:1  ts: 1.894167
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret:-1         st: 0 flags:0  ts: 0.790000
 ret:-1         st: 0 flags:1  ts:-0.320000
 ret:-1         st:-1 flags:0  ts: 2.576668
 ret: 0         st:-1 flags:1  ts: 1.470835
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret:-1         st: 0 flags:0  ts: 0.370000
 ret:-1         st: 0 flags:1  ts:-0.740000
 ret:-1         st:-1 flags:0  ts: 2.153336
 ret: 0         st:-1 flags:1  ts: 1.047503
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret: 0         st: 0 flags:0  ts:-0.060000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret: 0         st: 0 flags:1  ts: 2.840000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret:-1         st:-1 flags:0  ts: 1.730004
 ret: 0         st:-1 flags:1  ts: 0.624171
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret: 0         st: 0 flags:0  ts:-0.480000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret: 0         st: 0 flags:1  ts: 2.410000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret:-1         st:-1 flags:0  ts: 1.306672
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret: 0         st: 0 flags:0  ts:-0.900000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret: 0         st: 0 flags:1  ts: 1.990000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret:-1         st:-1 flags:0  ts: 0.883340
 ret:-1         st:-1 flags:1  ts:-0.222493
 ret:-1         st: 0 flags:0  ts: 2.670000
 ret: 0         st: 0 flags:1  ts: 1.570000
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 81501
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:      0 size: 88068
 ret:-1         st:-1 flags:0  ts: 0.460008
 ret:-1         st:-1 flags:1  ts:-0.645825
diff --git a/tests/ref/seek/lavf-pcx b/tests/ref/seek/lavf-pcx
index ba21627e86..ec91cbdaf9 100644
--- a/tests/ref/seek/lavf-pcx
+++ b/tests/ref/seek/lavf-pcx
@@ -1,4 +1,4 @@
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:364047
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:350149
 ret:-EINVAL    st:-1 flags:0  ts:-1.000000
 ret:-EINVAL    st:-1 flags:1  ts: 1.894167
 ret:-EINVAL    st: 0 flags:0  ts: 0.800000
@@ -6,7 +6,7 @@ ret:-EINVAL    st: 0 flags:1  ts:-0.320000
 ret:-EINVAL    st:-1 flags:0  ts: 2.576668
 ret:-EINVAL    st:-1 flags:1  ts: 1.470835
 ret: 0         st: 0 flags:0  ts: 0.360000
-ret: 0         st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:     -1 size:363107
+ret: 0         st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:     -1 size:349598
 ret:-EINVAL    st: 0 flags:1  ts:-0.760000
 ret:-EINVAL    st:-1 flags:0  ts: 2.153336
 ret:-EINVAL    st:-1 flags:1  ts: 1.047503
@@ -18,7 +18,7 @@ ret:-EINVAL    st: 0 flags:0  ts:-0.480000
 ret:-EINVAL    st: 0 flags:1  ts: 2.400000
 ret:-EINVAL    st:-1 flags:0  ts: 1.306672
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos:     -1 size:364760
+ret: 0         st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos:     -1 size:350623
 ret:-EINVAL    st: 0 flags:0  ts:-0.920000
 ret:-EINVAL    st: 0 flags:1  ts: 2.000000
 ret:-EINVAL    st:-1 flags:0  ts: 0.883340
@@ -26,5 +26,5 @@ ret:-EINVAL    st:-1 flags:1  ts:-0.222493
 ret:-EINVAL    st: 0 flags:0  ts: 2.680000
 ret:-EINVAL    st: 0 flags:1  ts: 1.560000
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:     -1 size:362983
+ret: 0         st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:     -1 size:348609
 ret:-EINVAL    st:-1 flags:1  ts:-0.645825
diff --git a/tests/ref/seek/lavf-sgi b/tests/ref/seek/lavf-sgi
index fac6ad9769..e87d4c9a01 100644
--- a/tests/ref/seek/lavf-sgi
+++ b/tests/ref/seek/lavf-sgi
@@ -1,4 +1,4 @@
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:307472
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:303017
 ret:-EINVAL    st:-1 flags:0  ts:-1.000000
 ret:-EINVAL    st:-1 flags:1  ts: 1.894167
 ret:-EINVAL    st: 0 flags:0  ts: 0.800000
@@ -6,7 +6,7 @@ ret:-EINVAL    st: 0 flags:1  ts:-0.320000
 ret:-EINVAL    st:-1 flags:0  ts: 2.576668
 ret:-EINVAL    st:-1 flags:1  ts: 1.470835
 ret: 0         st: 0 flags:0  ts: 0.360000
-ret: 0         st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:     -1 size:307708
+ret: 0         st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:     -1 size:303208
 ret:-EINVAL    st: 0 flags:1  ts:-0.760000
 ret:-EINVAL    st:-1 flags:0  ts: 2.153336
 ret:-EINVAL    st:-1 flags:1  ts: 1.047503
@@ -18,7 +18,7 @@ ret:-EINVAL    st: 0 flags:0  ts:-0.480000
 ret:-EINVAL    st: 0 flags:1  ts: 2.400000
 ret:-EINVAL    st:-1 flags:0  ts: 1.306672
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos:     -1 size:307430
+ret: 0         st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos:     -1 size:303084
 ret:-EINVAL    st: 0 flags:0  ts:-0.920000
 ret:-EINVAL    st: 0 flags:1  ts: 2.000000
 ret:-EINVAL    st:-1 flags:0  ts: 0.883340
@@ -26,5 +26,5 @@ ret:-EINVAL    st:-1 flags:1  ts:-0.222493
 ret:-EINVAL    st: 0 flags:0  ts: 2.680000
 ret:-EINVAL    st: 0 flags:1  ts: 1.560000
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:     -1 size:306909
+ret: 0         st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:     -1 size:302331
 ret:-EINVAL    st:-1 flags:1  ts:-0.645825
diff --git a/tests/ref/seek/lavf-tiff b/tests/ref/seek/lavf-tiff
index 0d9fb04484..fb1017f0a9 100644
--- a/tests/ref/seek/lavf-tiff
+++ b/tests/ref/seek/lavf-tiff
@@ -1,4 +1,4 @@
-ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:307124
+ret: 0         st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos:     -1 size:307153
 ret:-EINVAL    st:-1 flags:0  ts:-1.000000
 ret:-EINVAL    st:-1 flags:1  ts: 1.894167
 ret:-EINVAL    st: 0 flags:0  ts: 0.800000
@@ -6,7 +6,7 @@ ret:-EINVAL    st: 0 flags:1  ts:-0.320000
 ret:-EINVAL    st:-1 flags:0  ts: 2.576668
 ret:-EINVAL    st:-1 flags:1  ts: 1.470835
 ret: 0         st: 0 flags:0  ts: 0.360000
-ret: 0         st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:     -1 size:307150
+ret: 0         st: 0 flags:1 dts: 0.360000 pts: 0.360000 pos:     -1 size:307154
 ret:-EINVAL    st: 0 flags:1  ts:-0.760000
 ret:-EINVAL    st:-1 flags:0  ts: 2.153336
 ret:-EINVAL    st:-1 flags:1  ts: 1.047503
@@ -18,7 +18,7 @@ ret:-EINVAL    st: 0 flags:0  ts:-0.480000
 ret:-EINVAL    st: 0 flags:1  ts: 2.400000
 ret:-EINVAL    st:-1 flags:0  ts: 1.306672
 ret: 0         st:-1 flags:1  ts: 0.200839
-ret: 0         st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos:     -1 size:307140
+ret: 0         st: 0 flags:1 dts: 0.200000 pts: 0.200000 pos:     -1 size:307150
 ret:-EINVAL    st: 0 flags:0  ts:-0.920000
 ret:-EINVAL    st: 0 flags:1  ts: 2.000000
 ret:-EINVAL    st:-1 flags:0  ts: 0.883340
@@ -26,5 +26,5 @@ ret:-EINVAL    st:-1 flags:1  ts:-0.222493
 ret:-EINVAL    st: 0 flags:0  ts: 2.680000
 ret:-EINVAL    st: 0 flags:1  ts: 1.560000
 ret: 0         st:-1 flags:0  ts: 0.460008
-ret: 0         st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:     -1 size:307140
+ret: 0         st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos:     -1 size:307157
 ret:-EINVAL    st:-1 flags:1  ts:-0.645825
diff --git a/tests/ref/vsynth/vsynth1-bpp15 b/tests/ref/vsynth/vsynth1-bpp15
index d687b963d6..a281b185c4 100644
--- a/tests/ref/vsynth/vsynth1-bpp15
+++ b/tests/ref/vsynth/vsynth1-bpp15
@@ -1,4 +1,4 @@
 6147f5f235657fa9ced6ec6146be6ff0 *tests/data/fate/vsynth1-bpp15.avi
 10144452 tests/data/fate/vsynth1-bpp15.avi
-3aee2d6e82a9507d7f01844c04d2b57b *tests/data/fate/vsynth1-bpp15.out.rawvideo
-stddev:   38.44 PSNR: 16.43 MAXDIFF:  159 bytes:  7603200/  7603200
+3b36e01d2c28ac6a137c909ca962f694 *tests/data/fate/vsynth1-bpp15.out.rawvideo
+stddev:   38.34 PSNR: 16.46 MAXDIFF:  156 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-cinepak b/tests/ref/vsynth/vsynth1-cinepak
index 7cb33220e7..324d5d546d 100644
--- a/tests/ref/vsynth/vsynth1-cinepak
+++ b/tests/ref/vsynth/vsynth1-cinepak
@@ -1,4 +1,4 @@
-6b9b4d2b32854fd8b0f84ee4d76b1fed *tests/data/fate/vsynth1-cinepak.avi
-408910 tests/data/fate/vsynth1-cinepak.avi
-4acdcc3e664d12facbcefc389079cfa6 *tests/data/fate/vsynth1-cinepak.out.rawvideo
-stddev:   61.38 PSNR: 12.37 MAXDIFF:  223 bytes:  7603200/   921600
+eb6b493b4dea2755d89e382e1a48e88f *tests/data/fate/vsynth1-cinepak.avi
+408310 tests/data/fate/vsynth1-cinepak.avi
+c95bf806799bc9eb17a8947ab70d14bb *tests/data/fate/vsynth1-cinepak.out.rawvideo
+stddev:   61.17 PSNR: 12.40 MAXDIFF:  228 bytes:  7603200/   921600
diff --git a/tests/ref/vsynth/vsynth1-jpeg2000 b/tests/ref/vsynth/vsynth1-jpeg2000
index f8e987f95d..52a22c50ed 100644
--- a/tests/ref/vsynth/vsynth1-jpeg2000
+++ b/tests/ref/vsynth/vsynth1-jpeg2000
@@ -1,4 +1,4 @@
-95add005faf68fcf8f16e86eab079ca2 *tests/data/fate/vsynth1-jpeg2000.avi
-2263192 tests/data/fate/vsynth1-jpeg2000.avi
-b7f48a8965f78011c76483277befc6fc *tests/data/fate/vsynth1-jpeg2000.out.rawvideo
-stddev:    5.35 PSNR: 33.56 MAXDIFF:   59 bytes:  7603200/  7603200
+2ce46a92e9cc399b79c22534d8ae8350 *tests/data/fate/vsynth1-jpeg2000.avi
+2250458 tests/data/fate/vsynth1-jpeg2000.avi
+7980403710bc90ccb5c8d016581df711 *tests/data/fate/vsynth1-jpeg2000.out.rawvideo
+stddev:    5.57 PSNR: 33.21 MAXDIFF:   54 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-jpeg2000-97 b/tests/ref/vsynth/vsynth1-jpeg2000-97
index 820249c6c0..698b619442 100644
--- a/tests/ref/vsynth/vsynth1-jpeg2000-97
+++ b/tests/ref/vsynth/vsynth1-jpeg2000-97
@@ -1,4 +1,4 @@
-803c2e8a4d054c5d603eed4c77abe492 *tests/data/fate/vsynth1-jpeg2000-97.avi
-4466514 tests/data/fate/vsynth1-jpeg2000-97.avi
-c9cf5a4580f10b00056c8d8731d21395 *tests/data/fate/vsynth1-jpeg2000-97.out.rawvideo
-stddev:    3.82 PSNR: 36.49 MAXDIFF:   49 bytes:  7603200/  7603200
+558aede84e4792596595dfa15729c730 *tests/data/fate/vsynth1-jpeg2000-97.avi
+4303250 tests/data/fate/vsynth1-jpeg2000-97.avi
+a1ff0cdd46f6f3ed2646fd47874aa405 *tests/data/fate/vsynth1-jpeg2000-97.out.rawvideo
+stddev:    4.08 PSNR: 35.90 MAXDIFF:   48 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12 b/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12
index 0c6d47778f..8d15116b0b 100644
--- a/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12
+++ b/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12
@@ -1,4 +1,4 @@
 78b35a445001d2879386fdad16a2f0be *tests/data/fate/vsynth1-jpeg2000-gbrp12.avi
 8163968 tests/data/fate/vsynth1-jpeg2000-gbrp12.avi
-e934632ff63a00b4f2c9b3061f9c410e *tests/data/fate/vsynth1-jpeg2000-gbrp12.out.rawvideo
-stddev:    3.51 PSNR: 37.21 MAXDIFF:   43 bytes:  7603200/  7603200
+d8969ef75c8ba574512730b5e9bea980 *tests/data/fate/vsynth1-jpeg2000-gbrp12.out.rawvideo
+stddev:    3.71 PSNR: 36.72 MAXDIFF:   47 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-mov-bgr24 b/tests/ref/vsynth/vsynth1-mov-bgr24
index 6639d0d544..0c6a8461ae 100644
--- a/tests/ref/vsynth/vsynth1-mov-bgr24
+++ b/tests/ref/vsynth/vsynth1-mov-bgr24
@@ -1,4 +1,4 @@
-ba9d5cbc4b432db076fb501b1d5fa536 *tests/data/fate/vsynth1-mov-bgr24.mov
+87c924fb0a492bebfbb2afc594414efa *tests/data/fate/vsynth1-mov-bgr24.mov
 15207169 tests/data/fate/vsynth1-mov-bgr24.mov
-93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-mov-bgr24.out.rawvideo
-stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
+36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-mov-bgr24.out.rawvideo
+stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-mov-bpp15 b/tests/ref/vsynth/vsynth1-mov-bpp15
index d42c40b19a..ee50a2a896 100644
--- a/tests/ref/vsynth/vsynth1-mov-bpp15
+++ b/tests/ref/vsynth/vsynth1-mov-bpp15
@@ -1,4 +1,4 @@
 dfd88a906ae74dddd4caf3c455224fa3 *tests/data/fate/vsynth1-mov-bpp15.mov
 10138329 tests/data/fate/vsynth1-mov-bpp15.mov
-99bece160cfb0da47f446b60d42fa3ae *tests/data/fate/vsynth1-mov-bpp15.out.rawvideo
-stddev:    4.06 PSNR: 35.94 MAXDIFF:   47 bytes:  7603200/  7603200
+23d89c693d78c049c6029c1e70b37e6f *tests/data/fate/vsynth1-mov-bpp15.out.rawvideo
+stddev:    4.37 PSNR: 35.31 MAXDIFF:   47 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-mov-bpp16 b/tests/ref/vsynth/vsynth1-mov-bpp16
index bdafbf14ce..32cbf60854 100644
--- a/tests/ref/vsynth/vsynth1-mov-bpp16
+++ b/tests/ref/vsynth/vsynth1-mov-bpp16
@@ -1,4 +1,4 @@
 3d7e3f8bd238c341b0b4d55a30d8f5a2 *tests/data/fate/vsynth1-mov-bpp16.mov
 10138329 tests/data/fate/vsynth1-mov-bpp16.mov
-0cea382b9b0a4ce88260c1edc20b3f5b *tests/data/fate/vsynth1-mov-bpp16.out.rawvideo
-stddev:    3.79 PSNR: 36.55 MAXDIFF:   46 bytes:  7603200/  7603200
+efa9a6c6e5c7dd60703b1af19192a838 *tests/data/fate/vsynth1-mov-bpp16.out.rawvideo
+stddev:    4.11 PSNR: 35.84 MAXDIFF:   46 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-mpng b/tests/ref/vsynth/vsynth1-mpng
index 64f2f2d4a1..5eea00546d 100644
--- a/tests/ref/vsynth/vsynth1-mpng
+++ b/tests/ref/vsynth/vsynth1-mpng
@@ -1,4 +1,4 @@
-40e37e28a693ada8605ea24dce8c2420 *tests/data/fate/vsynth1-mpng.avi
-7658772 tests/data/fate/vsynth1-mpng.avi
-93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-mpng.out.rawvideo
-stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
+5eaacc54fdb23eb50bb22b65e0f26fd8 *tests/data/fate/vsynth1-mpng.avi
+7954812 tests/data/fate/vsynth1-mpng.avi
+36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-mpng.out.rawvideo
+stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-msrle b/tests/ref/vsynth/vsynth1-msrle
index 6174ff57f8..aab56f5cfb 100644
--- a/tests/ref/vsynth/vsynth1-msrle
+++ b/tests/ref/vsynth/vsynth1-msrle
@@ -1,4 +1,4 @@
-b19bc15e2c5866f3c7942aad47ce0261 *tests/data/fate/vsynth1-msrle.avi
-5216296 tests/data/fate/vsynth1-msrle.avi
-f142ee03bf9f37bb2e1902fe32366bbf *tests/data/fate/vsynth1-msrle.out.rawvideo
-stddev:    8.69 PSNR: 29.34 MAXDIFF:   64 bytes:  7603200/  7603200
+9f206d87340172a3dc901b4e2c61d192 *tests/data/fate/vsynth1-msrle.avi
+5297246 tests/data/fate/vsynth1-msrle.avi
+2d512b58773c7c2858effc5cc23f0942 *tests/data/fate/vsynth1-msrle.out.rawvideo
+stddev:    7.50 PSNR: 30.62 MAXDIFF:   54 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-msvideo1 b/tests/ref/vsynth/vsynth1-msvideo1
index e7435a97ad..ab2df28b9b 100644
--- a/tests/ref/vsynth/vsynth1-msvideo1
+++ b/tests/ref/vsynth/vsynth1-msvideo1
@@ -1,4 +1,4 @@
 41c8ec9813bb32831c4cf279677e631b *tests/data/fate/vsynth1-msvideo1.avi
 2051896 tests/data/fate/vsynth1-msvideo1.avi
-f4605ac6df556a3ca7053c49aaac04d8 *tests/data/fate/vsynth1-msvideo1.out.rawvideo
-stddev:   11.89 PSNR: 26.62 MAXDIFF:  159 bytes:  7603200/  7603200
+c98e5f57cb9c679fca30e2c7780a1f17 *tests/data/fate/vsynth1-msvideo1.out.rawvideo
+stddev:   11.96 PSNR: 26.57 MAXDIFF:  159 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-qtrle b/tests/ref/vsynth/vsynth1-qtrle
index 02164ddb92..ab74718308 100644
--- a/tests/ref/vsynth/vsynth1-qtrle
+++ b/tests/ref/vsynth/vsynth1-qtrle
@@ -1,4 +1,4 @@
-fb84d62fc821cf063b5877c61b975e62 *tests/data/fate/vsynth1-qtrle.mov
-15263158 tests/data/fate/vsynth1-qtrle.mov
-93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-qtrle.out.rawvideo
-stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
+4672582331e5d2453ea58864fc7352e2 *tests/data/fate/vsynth1-qtrle.mov
+15279123 tests/data/fate/vsynth1-qtrle.mov
+36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-qtrle.out.rawvideo
+stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-rgb b/tests/ref/vsynth/vsynth1-rgb
index 6d9629b5e9..a82083c40a 100644
--- a/tests/ref/vsynth/vsynth1-rgb
+++ b/tests/ref/vsynth/vsynth1-rgb
@@ -1,4 +1,4 @@
-9d2bd1fa569a803c41b5dc5dd03f088e *tests/data/fate/vsynth1-rgb.avi
+5479c9edf9ebb30ba82a8a38ddbcce1e *tests/data/fate/vsynth1-rgb.avi
 15213252 tests/data/fate/vsynth1-rgb.avi
-93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-rgb.out.rawvideo
-stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
+36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-rgb.out.rawvideo
+stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-rpza b/tests/ref/vsynth/vsynth1-rpza
index b238b245d3..3731f1d524 100644
--- a/tests/ref/vsynth/vsynth1-rpza
+++ b/tests/ref/vsynth/vsynth1-rpza
@@ -1,4 +1,4 @@
 e4e9660c4a13709b277aac42419b9a23 *tests/data/fate/vsynth1-rpza.mov
 10138529 tests/data/fate/vsynth1-rpza.mov
-99bece160cfb0da47f446b60d42fa3ae *tests/data/fate/vsynth1-rpza.out.rawvideo
-stddev:    4.06 PSNR: 35.94 MAXDIFF:   47 bytes:  7603200/  7603200
+23d89c693d78c049c6029c1e70b37e6f *tests/data/fate/vsynth1-rpza.out.rawvideo
+stddev:    4.37 PSNR: 35.31 MAXDIFF:   47 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-smc b/tests/ref/vsynth/vsynth1-smc
index 09f4bd4ce1..bc480b9cac 100644
--- a/tests/ref/vsynth/vsynth1-smc
+++ b/tests/ref/vsynth/vsynth1-smc
@@ -1,4 +1,4 @@
-b92226742d745515732a5e7b8a03e7b7 *tests/data/fate/vsynth1-smc.mov
-4613320 tests/data/fate/vsynth1-smc.mov
-f142ee03bf9f37bb2e1902fe32366bbf *tests/data/fate/vsynth1-smc.out.rawvideo
-stddev:    8.69 PSNR: 29.34 MAXDIFF:   64 bytes:  7603200/  7603200
+457d18e8328c6cef9487e630afaa74ed *tests/data/fate/vsynth1-smc.mov
+4745117 tests/data/fate/vsynth1-smc.mov
+2d512b58773c7c2858effc5cc23f0942 *tests/data/fate/vsynth1-smc.out.rawvideo
+stddev:    7.50 PSNR: 30.62 MAXDIFF:   54 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-zlib b/tests/ref/vsynth/vsynth1-zlib
index 419c6a6b3a..cbed901aca 100644
--- a/tests/ref/vsynth/vsynth1-zlib
+++ b/tests/ref/vsynth/vsynth1-zlib
@@ -1,4 +1,4 @@
-fd44e7bf6322f4be46f4f0dada728849 *tests/data/fate/vsynth1-zlib.avi
-12108636 tests/data/fate/vsynth1-zlib.avi
-93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-zlib.out.rawvideo
-stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
+96871637623fbe316e265d68d5fa3149 *tests/data/fate/vsynth1-zlib.avi
+12692390 tests/data/fate/vsynth1-zlib.avi
+36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-zlib.out.rawvideo
+stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-bpp15 b/tests/ref/vsynth/vsynth2-bpp15
index 9236c25b95..af20f47de0 100644
--- a/tests/ref/vsynth/vsynth2-bpp15
+++ b/tests/ref/vsynth/vsynth2-bpp15
@@ -1,4 +1,4 @@
 1760b76ddf1df0092333434f1a97407b *tests/data/fate/vsynth2-bpp15.avi
 10144452 tests/data/fate/vsynth2-bpp15.avi
-9a40133384e3f22c960d70c8cfe51781 *tests/data/fate/vsynth2-bpp15.out.rawvideo
-stddev:   33.97 PSNR: 17.51 MAXDIFF:  154 bytes:  7603200/  7603200
+c773217c174b6fc98e066ad97725c817 *tests/data/fate/vsynth2-bpp15.out.rawvideo
+stddev:   33.96 PSNR: 17.51 MAXDIFF:  154 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-cinepak b/tests/ref/vsynth/vsynth2-cinepak
index 72b8794116..7fd90fc5f1 100644
--- a/tests/ref/vsynth/vsynth2-cinepak
+++ b/tests/ref/vsynth/vsynth2-cinepak
@@ -1,4 +1,4 @@
-675d6a4370c315dc53c219a9271be4c6 *tests/data/fate/vsynth2-cinepak.avi
-400720 tests/data/fate/vsynth2-cinepak.avi
-cbf6900b882b484bc531f9b4799c226e *tests/data/fate/vsynth2-cinepak.out.rawvideo
-stddev:   80.96 PSNR:  9.96 MAXDIFF:  229 bytes:  7603200/   921600
+c6e2df6fa59e754c081be80af0de28d2 *tests/data/fate/vsynth2-cinepak.avi
+400184 tests/data/fate/vsynth2-cinepak.avi
+47bce92dcbf5eae5b2f21db623d25df0 *tests/data/fate/vsynth2-cinepak.out.rawvideo
+stddev:   81.04 PSNR:  9.96 MAXDIFF:  228 bytes:  7603200/   921600
diff --git a/tests/ref/vsynth/vsynth2-jpeg2000 b/tests/ref/vsynth/vsynth2-jpeg2000
index b60307d5da..1fe086ec4c 100644
--- a/tests/ref/vsynth/vsynth2-jpeg2000
+++ b/tests/ref/vsynth/vsynth2-jpeg2000
@@ -1,4 +1,4 @@
-bfe90391779a02319aab98b06dd18e6c *tests/data/fate/vsynth2-jpeg2000.avi
-1538724 tests/data/fate/vsynth2-jpeg2000.avi
-64fadc87447268cf90503cb294db7f61 *tests/data/fate/vsynth2-jpeg2000.out.rawvideo
-stddev:    4.91 PSNR: 34.29 MAXDIFF:   55 bytes:  7603200/  7603200
+3b01582597c20714fc916bdb4379a2f7 *tests/data/fate/vsynth2-jpeg2000.avi
+1519794 tests/data/fate/vsynth2-jpeg2000.avi
+e412aa6545900abcfad0f9e45a00689d *tests/data/fate/vsynth2-jpeg2000.out.rawvideo
+stddev:    4.92 PSNR: 34.29 MAXDIFF:   56 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-jpeg2000-97 b/tests/ref/vsynth/vsynth2-jpeg2000-97
index e40dca5b9a..ccef53a7e4 100644
--- a/tests/ref/vsynth/vsynth2-jpeg2000-97
+++ b/tests/ref/vsynth/vsynth2-jpeg2000-97
@@ -1,4 +1,4 @@
-c189c8b89c7aee3ab4f4a5aafdf7568f *tests/data/fate/vsynth2-jpeg2000-97.avi
-3225460 tests/data/fate/vsynth2-jpeg2000-97.avi
-4c0fbd7af969085d19dfabeb9634cddb *tests/data/fate/vsynth2-jpeg2000-97.out.rawvideo
-stddev:    2.55 PSNR: 39.98 MAXDIFF:   22 bytes:  7603200/  7603200
+551ec89326193c390e9720eeca4f7d4b *tests/data/fate/vsynth2-jpeg2000-97.avi
+3179676 tests/data/fate/vsynth2-jpeg2000-97.avi
+21d27a0cf7254edb498569497fab1ffc *tests/data/fate/vsynth2-jpeg2000-97.out.rawvideo
+stddev:    2.41 PSNR: 40.47 MAXDIFF:   24 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12 b/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12
index fad6af5741..22259fd154 100644
--- a/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12
+++ b/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12
@@ -1,4 +1,4 @@
 3b20090f3d1f8804789c0dfdc68049fb *tests/data/fate/vsynth2-jpeg2000-gbrp12.avi
 8484786 tests/data/fate/vsynth2-jpeg2000-gbrp12.avi
-44c4232da8e05ce034558ee1c5899e0a *tests/data/fate/vsynth2-jpeg2000-gbrp12.out.rawvideo
-stddev:    1.23 PSNR: 46.30 MAXDIFF:   14 bytes:  7603200/  7603200
+df854504d00e02e0ee5ff235a8f95e04 *tests/data/fate/vsynth2-jpeg2000-gbrp12.out.rawvideo
+stddev:    1.25 PSNR: 46.18 MAXDIFF:   14 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-mov-bgr24 b/tests/ref/vsynth/vsynth2-mov-bgr24
index 1db6aee655..0543b6e6b8 100644
--- a/tests/ref/vsynth/vsynth2-mov-bgr24
+++ b/tests/ref/vsynth/vsynth2-mov-bgr24
@@ -1,4 +1,4 @@
-1c5a5b9e299c5e02e757d8be98999cf4 *tests/data/fate/vsynth2-mov-bgr24.mov
+413965bd8ae046d5535778fd048b4868 *tests/data/fate/vsynth2-mov-bgr24.mov
 15207169 tests/data/fate/vsynth2-mov-bgr24.mov
-32fae3e665407bb4317b3f90fedb903c *tests/data/fate/vsynth2-mov-bgr24.out.rawvideo
-stddev:    1.54 PSNR: 44.37 MAXDIFF:   17 bytes:  7603200/  7603200
+9f3f66e5203d0112a558d9c9a1c9a72c *tests/data/fate/vsynth2-mov-bgr24.out.rawvideo
+stddev:    1.21 PSNR: 46.46 MAXDIFF:   14 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-mov-bpp15 b/tests/ref/vsynth/vsynth2-mov-bpp15
index ce1c13a346..2b99deff54 100644
--- a/tests/ref/vsynth/vsynth2-mov-bpp15
+++ b/tests/ref/vsynth/vsynth2-mov-bpp15
@@ -1,4 +1,4 @@
 a004683db50f49520abd74479b25cbd1 *tests/data/fate/vsynth2-mov-bpp15.mov
 10138329 tests/data/fate/vsynth2-mov-bpp15.mov
-eb3f0c974ed17ede7cd3ce30ce417d8d *tests/data/fate/vsynth2-mov-bpp15.out.rawvideo
-stddev:    2.81 PSNR: 39.14 MAXDIFF:   19 bytes:  7603200/  7603200
+33c4e41a4e5594988dd8972becac3924 *tests/data/fate/vsynth2-mov-bpp15.out.rawvideo
+stddev:    2.82 PSNR: 39.12 MAXDIFF:   19 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-mov-bpp16 b/tests/ref/vsynth/vsynth2-mov-bpp16
index f7f40c58c1..0d6bc84a0c 100644
--- a/tests/ref/vsynth/vsynth2-mov-bpp16
+++ b/tests/ref/vsynth/vsynth2-mov-bpp16
@@ -1,4 +1,4 @@
 b7ffee543580662d2cae327233816fca *tests/data/fate/vsynth2-mov-bpp16.mov
 10138329 tests/data/fate/vsynth2-mov-bpp16.mov
-7747ab837f0e832be2124120d4f7df1c *tests/data/fate/vsynth2-mov-bpp16.out.rawvideo
-stddev:    2.21 PSNR: 41.24 MAXDIFF:   18 bytes:  7603200/  7603200
+7d11db91b52084bb71a2ef32bfa1068c *tests/data/fate/vsynth2-mov-bpp16.out.rawvideo
+stddev:    2.21 PSNR: 41.21 MAXDIFF:   18 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-mpng b/tests/ref/vsynth/vsynth2-mpng
index 0e031f671d..257f870a33 100644
--- a/tests/ref/vsynth/vsynth2-mpng
+++ b/tests/ref/vsynth/vsynth2-mpng
@@ -1,4 +1,4 @@
-72b7353224c03854583d5809dfd56a77 *tests/data/fate/vsynth2-mpng.avi
-9754234 tests/data/fate/vsynth2-mpng.avi
-32fae3e665407bb4317b3f90fedb903c *tests/data/fate/vsynth2-mpng.out.rawvideo
-stddev:    1.54 PSNR: 44.37 MAXDIFF:   17 bytes:  7603200/  7603200
+4d53b987e03da300fa8ab0d2bf4e57c4 *tests/data/fate/vsynth2-mpng.avi
+9843988 tests/data/fate/vsynth2-mpng.avi
+9f3f66e5203d0112a558d9c9a1c9a72c *tests/data/fate/vsynth2-mpng.out.rawvideo
+stddev:    1.21 PSNR: 46.46 MAXDIFF:   14 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-msrle b/tests/ref/vsynth/vsynth2-msrle
index dd579b6ee9..cab07a5a70 100644
--- a/tests/ref/vsynth/vsynth2-msrle
+++ b/tests/ref/vsynth/vsynth2-msrle
@@ -1,4 +1,4 @@
-850744d6d38ab09adb2fbd685d5df740 *tests/data/fate/vsynth2-msrle.avi
-4556642 tests/data/fate/vsynth2-msrle.avi
-df26a524cad8ebf0cf5ba4376c5f115f *tests/data/fate/vsynth2-msrle.out.rawvideo
-stddev:    7.57 PSNR: 30.54 MAXDIFF:   35 bytes:  7603200/  7603200
+1409699df1d1f37c74b8f11953b2c79c *tests/data/fate/vsynth2-msrle.avi
+4995588 tests/data/fate/vsynth2-msrle.avi
+8e83da779b45e2494d68bade740a1217 *tests/data/fate/vsynth2-msrle.out.rawvideo
+stddev:    6.51 PSNR: 31.85 MAXDIFF:   73 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-msvideo1 b/tests/ref/vsynth/vsynth2-msvideo1
index 0d13c90dfc..e402243a17 100644
--- a/tests/ref/vsynth/vsynth2-msvideo1
+++ b/tests/ref/vsynth/vsynth2-msvideo1
@@ -1,4 +1,4 @@
 92708a8eb94d1dc80ae3508c4f712e54 *tests/data/fate/vsynth2-msvideo1.avi
 1301740 tests/data/fate/vsynth2-msvideo1.avi
-9b6e5905b00c64ed936293f85abbd6cf *tests/data/fate/vsynth2-msvideo1.out.rawvideo
-stddev:    9.04 PSNR: 29.01 MAXDIFF:  169 bytes:  7603200/  7603200
+e58e8e0292e68d93ea3dde0cd4667e1e *tests/data/fate/vsynth2-msvideo1.out.rawvideo
+stddev:    9.03 PSNR: 29.02 MAXDIFF:  169 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-qtrle b/tests/ref/vsynth/vsynth2-qtrle
index 8593845d92..d016e377e5 100644
--- a/tests/ref/vsynth/vsynth2-qtrle
+++ b/tests/ref/vsynth/vsynth2-qtrle
@@ -1,4 +1,4 @@
-492bef0aea081c076307d668d94fb9c4 *tests/data/fate/vsynth2-qtrle.mov
-14035926 tests/data/fate/vsynth2-qtrle.mov
-32fae3e665407bb4317b3f90fedb903c *tests/data/fate/vsynth2-qtrle.out.rawvideo
-stddev:    1.54 PSNR: 44.37 MAXDIFF:   17 bytes:  7603200/  7603200
+43a6aa995556734c350d887b425c9115 *tests/data/fate/vsynth2-qtrle.mov
+14593061 tests/data/fate/vsynth2-qtrle.mov
+9f3f66e5203d0112a558d9c9a1c9a72c *tests/data/fate/vsynth2-qtrle.out.rawvideo
+stddev:    1.21 PSNR: 46.46 MAXDIFF:   14 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-rgb b/tests/ref/vsynth/vsynth2-rgb
index 6d44b25489..2777c98760 100644
--- a/tests/ref/vsynth/vsynth2-rgb
+++ b/tests/ref/vsynth/vsynth2-rgb
@@ -1,4 +1,4 @@
-3f8f04636aa027d1fc8245b08c7a8414 *tests/data/fate/vsynth2-rgb.avi
+53fb54ae888a611b736fe757efa9a2eb *tests/data/fate/vsynth2-rgb.avi
 15213252 tests/data/fate/vsynth2-rgb.avi
-32fae3e665407bb4317b3f90fedb903c *tests/data/fate/vsynth2-rgb.out.rawvideo
-stddev:    1.54 PSNR: 44.37 MAXDIFF:   17 bytes:  7603200/  7603200
+9f3f66e5203d0112a558d9c9a1c9a72c *tests/data/fate/vsynth2-rgb.out.rawvideo
+stddev:    1.21 PSNR: 46.46 MAXDIFF:   14 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-rpza b/tests/ref/vsynth/vsynth2-rpza
index 1913688751..2469abc025 100644
--- a/tests/ref/vsynth/vsynth2-rpza
+++ b/tests/ref/vsynth/vsynth2-rpza
@@ -1,4 +1,4 @@
 b67a1d20eda31a463291de90067c6013 *tests/data/fate/vsynth2-rpza.mov
 8473292 tests/data/fate/vsynth2-rpza.mov
-0f3567cb28439a55a15f2b33275efeae *tests/data/fate/vsynth2-rpza.out.rawvideo
-stddev:    3.11 PSNR: 38.27 MAXDIFF:   19 bytes:  7603200/  7603200
+f6c01340f13170bec960769510ac4641 *tests/data/fate/vsynth2-rpza.out.rawvideo
+stddev:    3.11 PSNR: 38.26 MAXDIFF:   19 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-smc b/tests/ref/vsynth/vsynth2-smc
index 3ce6478e56..617338e6fe 100644
--- a/tests/ref/vsynth/vsynth2-smc
+++ b/tests/ref/vsynth/vsynth2-smc
@@ -1,4 +1,4 @@
-6e97e428fb20e96a5b8fc8a21f427504 *tests/data/fate/vsynth2-smc.mov
-3475261 tests/data/fate/vsynth2-smc.mov
-df26a524cad8ebf0cf5ba4376c5f115f *tests/data/fate/vsynth2-smc.out.rawvideo
-stddev:    7.57 PSNR: 30.54 MAXDIFF:   35 bytes:  7603200/  7603200
+e042746570dede7cb3fb881402376823 *tests/data/fate/vsynth2-smc.mov
+3503543 tests/data/fate/vsynth2-smc.mov
+8e83da779b45e2494d68bade740a1217 *tests/data/fate/vsynth2-smc.out.rawvideo
+stddev:    6.51 PSNR: 31.85 MAXDIFF:   73 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-zlib b/tests/ref/vsynth/vsynth2-zlib
index 9dfb0d679e..252ae9fc79 100644
--- a/tests/ref/vsynth/vsynth2-zlib
+++ b/tests/ref/vsynth/vsynth2-zlib
@@ -1,4 +1,4 @@
-8d2783483b354e7836cfc45a7241c4eb *tests/data/fate/vsynth2-zlib.avi
-11760520 tests/data/fate/vsynth2-zlib.avi
-32fae3e665407bb4317b3f90fedb903c *tests/data/fate/vsynth2-zlib.out.rawvideo
-stddev:    1.54 PSNR: 44.37 MAXDIFF:   17 bytes:  7603200/  7603200
+63e45e69680f783f43c19f21234c690f *tests/data/fate/vsynth2-zlib.avi
+12690140 tests/data/fate/vsynth2-zlib.avi
+9f3f66e5203d0112a558d9c9a1c9a72c *tests/data/fate/vsynth2-zlib.out.rawvideo
+stddev:    1.21 PSNR: 46.46 MAXDIFF:   14 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth3-bpp15 b/tests/ref/vsynth/vsynth3-bpp15
index fe67e1a980..7b291a70c7 100644
--- a/tests/ref/vsynth/vsynth3-bpp15
+++ b/tests/ref/vsynth/vsynth3-bpp15
@@ -1,4 +1,4 @@
 ad67910bcee1f3fe49ba7312499a3b16 *tests/data/fate/vsynth3-bpp15.avi
 122452 tests/data/fate/vsynth3-bpp15.avi
-85ac2fa98252ae907b97a7a561ca676f *tests/data/fate/vsynth3-bpp15.out.rawvideo
-stddev:   37.76 PSNR: 16.59 MAXDIFF:  156 bytes:    86700/    86700
+c7e50783720f4f7f51da02b7c7b36519 *tests/data/fate/vsynth3-bpp15.out.rawvideo
+stddev:   37.60 PSNR: 16.63 MAXDIFF:  156 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-jpeg2000 b/tests/ref/vsynth/vsynth3-jpeg2000
index 894dba27dc..53f4a761de 100644
--- a/tests/ref/vsynth/vsynth3-jpeg2000
+++ b/tests/ref/vsynth/vsynth3-jpeg2000
@@ -1,4 +1,4 @@
-1d039969504abdc143b410f99b5f9171 *tests/data/fate/vsynth3-jpeg2000.avi
-67354 tests/data/fate/vsynth3-jpeg2000.avi
-098f5980667e1fcd50452b1dc1a74f61 *tests/data/fate/vsynth3-jpeg2000.out.rawvideo
-stddev:    5.47 PSNR: 33.36 MAXDIFF:   48 bytes:    86700/    86700
+a0d55800efe98237feb895009aefe2e3 *tests/data/fate/vsynth3-jpeg2000.avi
+67216 tests/data/fate/vsynth3-jpeg2000.avi
+61cd335039efc6f5c4f9e731fb867ee6 *tests/data/fate/vsynth3-jpeg2000.out.rawvideo
+stddev:    5.84 PSNR: 32.80 MAXDIFF:   50 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-jpeg2000-97 b/tests/ref/vsynth/vsynth3-jpeg2000-97
index 92376e64cf..eb7b3a47a6 100644
--- a/tests/ref/vsynth/vsynth3-jpeg2000-97
+++ b/tests/ref/vsynth/vsynth3-jpeg2000-97
@@ -1,4 +1,4 @@
-943cbdefa18b4a83175943f4e81e037c *tests/data/fate/vsynth3-jpeg2000-97.avi
-95642 tests/data/fate/vsynth3-jpeg2000-97.avi
-c4d58f0da2e8be602f54f032b58a581b *tests/data/fate/vsynth3-jpeg2000-97.out.rawvideo
-stddev:    4.11 PSNR: 35.84 MAXDIFF:   46 bytes:    86700/    86700
+25a418e6663058322bec4fc9e8f66e79 *tests/data/fate/vsynth3-jpeg2000-97.avi
+94146 tests/data/fate/vsynth3-jpeg2000-97.avi
+52969accb7e8597a8a85d487c68944b9 *tests/data/fate/vsynth3-jpeg2000-97.out.rawvideo
+stddev:    4.48 PSNR: 35.09 MAXDIFF:   49 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-jpeg2000-gbrp12 b/tests/ref/vsynth/vsynth3-jpeg2000-gbrp12
index 0010dbed58..06e980536e 100644
--- a/tests/ref/vsynth/vsynth3-jpeg2000-gbrp12
+++ b/tests/ref/vsynth/vsynth3-jpeg2000-gbrp12
@@ -1,4 +1,4 @@
 1ca41231325bbacd1dc3b60785ba7fcc *tests/data/fate/vsynth3-jpeg2000-gbrp12.avi
 143116 tests/data/fate/vsynth3-jpeg2000-gbrp12.avi
-3a84f9e8db1b0f1f5dbf14062eb7975d *tests/data/fate/vsynth3-jpeg2000-gbrp12.out.rawvideo
-stddev:    3.83 PSNR: 36.45 MAXDIFF:   42 bytes:    86700/    86700
+6591a7c96834f3da6dd8e0674248fc78 *tests/data/fate/vsynth3-jpeg2000-gbrp12.out.rawvideo
+stddev:    4.08 PSNR: 35.90 MAXDIFF:   47 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-mov-bgr24 b/tests/ref/vsynth/vsynth3-mov-bgr24
index 4fc3cc979f..be1dca4070 100644
--- a/tests/ref/vsynth/vsynth3-mov-bgr24
+++ b/tests/ref/vsynth/vsynth3-mov-bgr24
@@ -1,4 +1,4 @@
-0141cd3b6e8eea836d392adf6949afc4 *tests/data/fate/vsynth3-mov-bgr24.mov
+5a02329343cdde447ebcaf3391f0db1d *tests/data/fate/vsynth3-mov-bgr24.mov
 174093 tests/data/fate/vsynth3-mov-bgr24.mov
-693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-mov-bgr24.out.rawvideo
-stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
+d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-mov-bgr24.out.rawvideo
+stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-mov-bpp15 b/tests/ref/vsynth/vsynth3-mov-bpp15
index 4c289cf161..5d41c08f64 100644
--- a/tests/ref/vsynth/vsynth3-mov-bpp15
+++ b/tests/ref/vsynth/vsynth3-mov-bpp15
@@ -1,4 +1,4 @@
 96e1406b041b16e9598092d928ea9d3e *tests/data/fate/vsynth3-mov-bpp15.mov
 116293 tests/data/fate/vsynth3-mov-bpp15.mov
-19f61c34cbdef98b0f4aca6c19f59ed4 *tests/data/fate/vsynth3-mov-bpp15.out.rawvideo
-stddev:    4.35 PSNR: 35.35 MAXDIFF:   46 bytes:    86700/    86700
+42006d8675be53cb4bdfc77031e39f70 *tests/data/fate/vsynth3-mov-bpp15.out.rawvideo
+stddev:    4.71 PSNR: 34.65 MAXDIFF:   46 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-mov-bpp16 b/tests/ref/vsynth/vsynth3-mov-bpp16
index 55537d4bfd..2a95c6f504 100644
--- a/tests/ref/vsynth/vsynth3-mov-bpp16
+++ b/tests/ref/vsynth/vsynth3-mov-bpp16
@@ -1,4 +1,4 @@
 65b51e9a83da767fae244fd6816f2bc7 *tests/data/fate/vsynth3-mov-bpp16.mov
 116293 tests/data/fate/vsynth3-mov-bpp16.mov
-756f68dd5412d245d4bbeda7b5d51829 *tests/data/fate/vsynth3-mov-bpp16.out.rawvideo
-stddev:    4.07 PSNR: 35.93 MAXDIFF:   46 bytes:    86700/    86700
+685ab3882e155c5f2a5c1716089a0435 *tests/data/fate/vsynth3-mov-bpp16.out.rawvideo
+stddev:    4.45 PSNR: 35.16 MAXDIFF:   46 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-mpng b/tests/ref/vsynth/vsynth3-mpng
index 2948b50763..0716f9abfa 100644
--- a/tests/ref/vsynth/vsynth3-mpng
+++ b/tests/ref/vsynth/vsynth3-mpng
@@ -1,4 +1,4 @@
-28177b90f3b5a90043f11dc14b84f3f0 *tests/data/fate/vsynth3-mpng.avi
-132202 tests/data/fate/vsynth3-mpng.avi
-693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-mpng.out.rawvideo
-stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
+dbdf75517de7429576be3feac44e65a2 *tests/data/fate/vsynth3-mpng.avi
+138628 tests/data/fate/vsynth3-mpng.avi
+d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-mpng.out.rawvideo
+stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-msrle b/tests/ref/vsynth/vsynth3-msrle
index 9cc92be036..d32a959476 100644
--- a/tests/ref/vsynth/vsynth3-msrle
+++ b/tests/ref/vsynth/vsynth3-msrle
@@ -1,4 +1,4 @@
-ee8f4d86f117d69919be69fbc976981a *tests/data/fate/vsynth3-msrle.avi
-72866 tests/data/fate/vsynth3-msrle.avi
-fa6042492a3116c1ae9a32b487caa677 *tests/data/fate/vsynth3-msrle.out.rawvideo
-stddev:    8.88 PSNR: 29.16 MAXDIFF:   51 bytes:    86700/    86700
+e87c3e7ef874360fa6366b01d081b4df *tests/data/fate/vsynth3-msrle.avi
+74032 tests/data/fate/vsynth3-msrle.avi
+d2c1481427cb9c233f8d8188146625f0 *tests/data/fate/vsynth3-msrle.out.rawvideo
+stddev:    7.74 PSNR: 30.35 MAXDIFF:   51 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-qtrle b/tests/ref/vsynth/vsynth3-qtrle
index 2056e1b7e2..9bf29b8c89 100644
--- a/tests/ref/vsynth/vsynth3-qtrle
+++ b/tests/ref/vsynth/vsynth3-qtrle
@@ -1,4 +1,4 @@
-b9152e4c2931818140086903c9d9a8ae *tests/data/fate/vsynth3-qtrle.mov
-179656 tests/data/fate/vsynth3-qtrle.mov
-693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-qtrle.out.rawvideo
-stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
+1840ff45097f40041248f0b8def3be10 *tests/data/fate/vsynth3-qtrle.mov
+179758 tests/data/fate/vsynth3-qtrle.mov
+d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-qtrle.out.rawvideo
+stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-rgb b/tests/ref/vsynth/vsynth3-rgb
index 1a882ce104..3225fb8203 100644
--- a/tests/ref/vsynth/vsynth3-rgb
+++ b/tests/ref/vsynth/vsynth3-rgb
@@ -1,4 +1,4 @@
-3e2909a69865eb88df72916c38d265de *tests/data/fate/vsynth3-rgb.avi
+4805cf50c8bc287e50123d796c6e5aa5 *tests/data/fate/vsynth3-rgb.avi
 183652 tests/data/fate/vsynth3-rgb.avi
-693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-rgb.out.rawvideo
-stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
+d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-rgb.out.rawvideo
+stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-rpza b/tests/ref/vsynth/vsynth3-rpza
index c933a44c4b..cc8b244be4 100644
--- a/tests/ref/vsynth/vsynth3-rpza
+++ b/tests/ref/vsynth/vsynth3-rpza
@@ -1,4 +1,4 @@
 791ad5931c5d54eff406c639be0c79e2 *tests/data/fate/vsynth3-rpza.mov
 130493 tests/data/fate/vsynth3-rpza.mov
-19f61c34cbdef98b0f4aca6c19f59ed4 *tests/data/fate/vsynth3-rpza.out.rawvideo
-stddev:    4.35 PSNR: 35.35 MAXDIFF:   46 bytes:    86700/    86700
+42006d8675be53cb4bdfc77031e39f70 *tests/data/fate/vsynth3-rpza.out.rawvideo
+stddev:    4.71 PSNR: 34.65 MAXDIFF:   46 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-smc b/tests/ref/vsynth/vsynth3-smc
index ed9efd92e2..997b46105c 100644
--- a/tests/ref/vsynth/vsynth3-smc
+++ b/tests/ref/vsynth/vsynth3-smc
@@ -1,4 +1,4 @@
-e4eb9909095e02577b59004e209ad8ec *tests/data/fate/vsynth3-smc.mov
-65521 tests/data/fate/vsynth3-smc.mov
-fa6042492a3116c1ae9a32b487caa677 *tests/data/fate/vsynth3-smc.out.rawvideo
-stddev:    8.88 PSNR: 29.16 MAXDIFF:   51 bytes:    86700/    86700
+76d492e6ebf99aee7e792583bfe8d18c *tests/data/fate/vsynth3-smc.mov
+64722 tests/data/fate/vsynth3-smc.mov
+d2c1481427cb9c233f8d8188146625f0 *tests/data/fate/vsynth3-smc.out.rawvideo
+stddev:    7.74 PSNR: 30.35 MAXDIFF:   51 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth3-zlib b/tests/ref/vsynth/vsynth3-zlib
index 55d65f30e0..f26236b4ea 100644
--- a/tests/ref/vsynth/vsynth3-zlib
+++ b/tests/ref/vsynth/vsynth3-zlib
@@ -1,4 +1,4 @@
-d3705acfc90b16968d0d4a3ac56b049c *tests/data/fate/vsynth3-zlib.avi
-174882 tests/data/fate/vsynth3-zlib.avi
-693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-zlib.out.rawvideo
-stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
+b102ed61dc12da9afc830279bf0ad99f *tests/data/fate/vsynth3-zlib.avi
+178678 tests/data/fate/vsynth3-zlib.avi
+d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-zlib.out.rawvideo
+stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
diff --git a/tests/ref/vsynth/vsynth_lena-bpp15 b/tests/ref/vsynth/vsynth_lena-bpp15
index 65bff0bfd0..247bec0e10 100644
--- a/tests/ref/vsynth/vsynth_lena-bpp15
+++ b/tests/ref/vsynth/vsynth_lena-bpp15
@@ -1,4 +1,4 @@
 64516ba947d531db2bccc2ecc338b7be *tests/data/fate/vsynth_lena-bpp15.avi
 10144452 tests/data/fate/vsynth_lena-bpp15.avi
-ccf6fc507e938e8cc5c2a97b644de51c *tests/data/fate/vsynth_lena-bpp15.out.rawvideo
-stddev:   32.84 PSNR: 17.80 MAXDIFF:   92 bytes:  7603200/  7603200
+494e984a40e5a901a66e2cb2eaecb287 *tests/data/fate/vsynth_lena-bpp15.out.rawvideo
+stddev:   32.83 PSNR: 17.80 MAXDIFF:   92 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-cinepak b/tests/ref/vsynth/vsynth_lena-cinepak
index c9cb2cfaba..5d9ee3d45e 100644
--- a/tests/ref/vsynth/vsynth_lena-cinepak
+++ b/tests/ref/vsynth/vsynth_lena-cinepak
@@ -1,4 +1,4 @@
-a79f907fecb95c8a5b5de670ccda215b *tests/data/fate/vsynth_lena-cinepak.avi
-407952 tests/data/fate/vsynth_lena-cinepak.avi
-2664cdff5f14508e891477b498cc840e *tests/data/fate/vsynth_lena-cinepak.out.rawvideo
-stddev:   58.10 PSNR: 12.85 MAXDIFF:  185 bytes:  7603200/   921600
+a210cba926431ec528bec7af6835455e *tests/data/fate/vsynth_lena-cinepak.avi
+408370 tests/data/fate/vsynth_lena-cinepak.avi
+78ab8ec2e164162ab10f713521f39cee *tests/data/fate/vsynth_lena-cinepak.out.rawvideo
+stddev:   57.98 PSNR: 12.87 MAXDIFF:  188 bytes:  7603200/   921600
diff --git a/tests/ref/vsynth/vsynth_lena-jpeg2000 b/tests/ref/vsynth/vsynth_lena-jpeg2000
index e2cbc899d3..c7ef1e1c3b 100644
--- a/tests/ref/vsynth/vsynth_lena-jpeg2000
+++ b/tests/ref/vsynth/vsynth_lena-jpeg2000
@@ -1,4 +1,4 @@
-51f061731d7fb987ff4e71789785225e *tests/data/fate/vsynth_lena-jpeg2000.avi
-1188882 tests/data/fate/vsynth_lena-jpeg2000.avi
-39a2c5b61cd0cf2821c6fb4cceba2fa8 *tests/data/fate/vsynth_lena-jpeg2000.out.rawvideo
-stddev:    4.30 PSNR: 35.45 MAXDIFF:   45 bytes:  7603200/  7603200
+38047b4d25db6c61f4e15b95a6c07304 *tests/data/fate/vsynth_lena-jpeg2000.avi
+1177406 tests/data/fate/vsynth_lena-jpeg2000.avi
+f565090959935644d27b42ae4c51ea48 *tests/data/fate/vsynth_lena-jpeg2000.out.rawvideo
+stddev:    4.30 PSNR: 35.45 MAXDIFF:   48 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-jpeg2000-97 b/tests/ref/vsynth/vsynth_lena-jpeg2000-97
index dd2819b8cb..fc5bce83ad 100644
--- a/tests/ref/vsynth/vsynth_lena-jpeg2000-97
+++ b/tests/ref/vsynth/vsynth_lena-jpeg2000-97
@@ -1,4 +1,4 @@
-9e2f5705be9d08494530724b625e17a4 *tests/data/fate/vsynth_lena-jpeg2000-97.avi
-2599714 tests/data/fate/vsynth_lena-jpeg2000-97.avi
-ab207505ec9c8a16bb45621404199e5c *tests/data/fate/vsynth_lena-jpeg2000-97.out.rawvideo
-stddev:    2.23 PSNR: 41.16 MAXDIFF:   20 bytes:  7603200/  7603200
+fc7a83a0971808a22cebeaf436e3be71 *tests/data/fate/vsynth_lena-jpeg2000-97.avi
+2548698 tests/data/fate/vsynth_lena-jpeg2000-97.avi
+fa215e5332e3753c8a7f21aca6a5bbea *tests/data/fate/vsynth_lena-jpeg2000-97.out.rawvideo
+stddev:    2.04 PSNR: 41.93 MAXDIFF:   21 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-jpeg2000-gbrp12 b/tests/ref/vsynth/vsynth_lena-jpeg2000-gbrp12
index d008d84753..135fa084ff 100644
--- a/tests/ref/vsynth/vsynth_lena-jpeg2000-gbrp12
+++ b/tests/ref/vsynth/vsynth_lena-jpeg2000-gbrp12
@@ -1,4 +1,4 @@
 04c3662db7b6e91640c94877a631a277 *tests/data/fate/vsynth_lena-jpeg2000-gbrp12.avi
 8023408 tests/data/fate/vsynth_lena-jpeg2000-gbrp12.avi
-c7e9b9e26292975e04046984aa3646cd *tests/data/fate/vsynth_lena-jpeg2000-gbrp12.out.rawvideo
-stddev:    0.81 PSNR: 49.93 MAXDIFF:   12 bytes:  7603200/  7603200
+3a2f8f11a368d8a53e9037625444a9c2 *tests/data/fate/vsynth_lena-jpeg2000-gbrp12.out.rawvideo
+stddev:    0.83 PSNR: 49.72 MAXDIFF:   12 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-mov-bgr24 b/tests/ref/vsynth/vsynth_lena-mov-bgr24
index 098dd91258..a38d5b2ade 100644
--- a/tests/ref/vsynth/vsynth_lena-mov-bgr24
+++ b/tests/ref/vsynth/vsynth_lena-mov-bgr24
@@ -1,4 +1,4 @@
-3656f10647727ff16119ad54e11ed09d *tests/data/fate/vsynth_lena-mov-bgr24.mov
+125bb862fddecefc2159bff751feca9c *tests/data/fate/vsynth_lena-mov-bgr24.mov
 15207169 tests/data/fate/vsynth_lena-mov-bgr24.mov
-98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-mov-bgr24.out.rawvideo
-stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
+726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-mov-bgr24.out.rawvideo
+stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-mov-bpp15 b/tests/ref/vsynth/vsynth_lena-mov-bpp15
index 7a61797ef2..06ce40b6ec 100644
--- a/tests/ref/vsynth/vsynth_lena-mov-bpp15
+++ b/tests/ref/vsynth/vsynth_lena-mov-bpp15
@@ -1,4 +1,4 @@
 846672fbdf449e0345cec63e1611661a *tests/data/fate/vsynth_lena-mov-bpp15.mov
 10138329 tests/data/fate/vsynth_lena-mov-bpp15.mov
-be0e64bdf519ce1097613063804eded9 *tests/data/fate/vsynth_lena-mov-bpp15.out.rawvideo
-stddev:    2.16 PSNR: 41.43 MAXDIFF:   17 bytes:  7603200/  7603200
+22f4650b3a6227df2fe88847603d9f4e *tests/data/fate/vsynth_lena-mov-bpp15.out.rawvideo
+stddev:    2.16 PSNR: 41.41 MAXDIFF:   17 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-mov-bpp16 b/tests/ref/vsynth/vsynth_lena-mov-bpp16
index 4e4cb44daa..ababb6f01d 100644
--- a/tests/ref/vsynth/vsynth_lena-mov-bpp16
+++ b/tests/ref/vsynth/vsynth_lena-mov-bpp16
@@ -1,4 +1,4 @@
 f425fe7f36bd821d4afa260088542cf9 *tests/data/fate/vsynth_lena-mov-bpp16.mov
 10138329 tests/data/fate/vsynth_lena-mov-bpp16.mov
-789bfa1dc2a72f498928f2ae85e461c3 *tests/data/fate/vsynth_lena-mov-bpp16.out.rawvideo
-stddev:    1.76 PSNR: 43.18 MAXDIFF:   17 bytes:  7603200/  7603200
+49d2bfd2c4b9ab76fdd917783fa5b954 *tests/data/fate/vsynth_lena-mov-bpp16.out.rawvideo
+stddev:    1.77 PSNR: 43.13 MAXDIFF:   17 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-mpng b/tests/ref/vsynth/vsynth_lena-mpng
index 06e7d10618..e940360109 100644
--- a/tests/ref/vsynth/vsynth_lena-mpng
+++ b/tests/ref/vsynth/vsynth_lena-mpng
@@ -1,4 +1,4 @@
-0e83d89b738f387cc747a772d1c2a3c0 *tests/data/fate/vsynth_lena-mpng.avi
-9433204 tests/data/fate/vsynth_lena-mpng.avi
-98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-mpng.out.rawvideo
-stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
+e44a4e807e3b2cbe2e814cb12ff89c48 *tests/data/fate/vsynth_lena-mpng.avi
+9441342 tests/data/fate/vsynth_lena-mpng.avi
+726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-mpng.out.rawvideo
+stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-msrle b/tests/ref/vsynth/vsynth_lena-msrle
index 67226f05a2..347e5671ec 100644
--- a/tests/ref/vsynth/vsynth_lena-msrle
+++ b/tests/ref/vsynth/vsynth_lena-msrle
@@ -1,4 +1,4 @@
-9654924690cbaf6348ea798e442e819c *tests/data/fate/vsynth_lena-msrle.avi
-4671320 tests/data/fate/vsynth_lena-msrle.avi
-db453693ceae6f65c173dd716ee2662e *tests/data/fate/vsynth_lena-msrle.out.rawvideo
-stddev:    8.07 PSNR: 29.99 MAXDIFF:   32 bytes:  7603200/  7603200
+ae7636b1dccad22ef92551160ff54994 *tests/data/fate/vsynth_lena-msrle.avi
+5212238 tests/data/fate/vsynth_lena-msrle.avi
+32f11f7e0567b59d688268f296dd2994 *tests/data/fate/vsynth_lena-msrle.out.rawvideo
+stddev:    7.01 PSNR: 31.21 MAXDIFF:   35 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-msvideo1 b/tests/ref/vsynth/vsynth_lena-msvideo1
index 4f7de4010d..a04e381eee 100644
--- a/tests/ref/vsynth/vsynth_lena-msvideo1
+++ b/tests/ref/vsynth/vsynth_lena-msvideo1
@@ -1,4 +1,4 @@
 f2d42ddffd6546b6ca71bbb6e3b62c00 *tests/data/fate/vsynth_lena-msvideo1.avi
 914564 tests/data/fate/vsynth_lena-msvideo1.avi
-9a6ac7c0171286f009d159b59fdc1154 *tests/data/fate/vsynth_lena-msvideo1.out.rawvideo
-stddev:    7.97 PSNR: 30.10 MAXDIFF:  123 bytes:  7603200/  7603200
+7bfede936dbb69ed1799fe887bd2c9be *tests/data/fate/vsynth_lena-msvideo1.out.rawvideo
+stddev:    7.95 PSNR: 30.11 MAXDIFF:  123 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-qtrle b/tests/ref/vsynth/vsynth_lena-qtrle
index f426fe0ab6..0fc0e1d0da 100644
--- a/tests/ref/vsynth/vsynth_lena-qtrle
+++ b/tests/ref/vsynth/vsynth_lena-qtrle
@@ -1,4 +1,4 @@
-513ca7d64af25676f5f99f00e2287ced *tests/data/fate/vsynth_lena-qtrle.mov
-14798345 tests/data/fate/vsynth_lena-qtrle.mov
-98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-qtrle.out.rawvideo
-stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
+46eeb339a5875699e10b42b5307e558b *tests/data/fate/vsynth_lena-qtrle.mov
+15158084 tests/data/fate/vsynth_lena-qtrle.mov
+726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-qtrle.out.rawvideo
+stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-rgb b/tests/ref/vsynth/vsynth_lena-rgb
index f3d232e76c..bdad1e1b18 100644
--- a/tests/ref/vsynth/vsynth_lena-rgb
+++ b/tests/ref/vsynth/vsynth_lena-rgb
@@ -1,4 +1,4 @@
-6ffbbd6939b3fe9f5dcf036ee46aad2d *tests/data/fate/vsynth_lena-rgb.avi
+e14e020266f730a3d1459ea497673c6a *tests/data/fate/vsynth_lena-rgb.avi
 15213252 tests/data/fate/vsynth_lena-rgb.avi
-98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-rgb.out.rawvideo
-stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
+726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-rgb.out.rawvideo
+stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-rpza b/tests/ref/vsynth/vsynth_lena-rpza
index abdb56ff7a..c17ac35290 100644
--- a/tests/ref/vsynth/vsynth_lena-rpza
+++ b/tests/ref/vsynth/vsynth_lena-rpza
@@ -1,4 +1,4 @@
 c9850c9f02376ccad32188ec3fd0109d *tests/data/fate/vsynth_lena-rpza.mov
 8795888 tests/data/fate/vsynth_lena-rpza.mov
-94ab32b81b82e1f24a7aeb4435668f84 *tests/data/fate/vsynth_lena-rpza.out.rawvideo
-stddev:    2.47 PSNR: 40.25 MAXDIFF:   17 bytes:  7603200/  7603200
+1d0b05545e34f95c4edf87860ef3afdf *tests/data/fate/vsynth_lena-rpza.out.rawvideo
+stddev:    2.48 PSNR: 40.23 MAXDIFF:   17 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-smc b/tests/ref/vsynth/vsynth_lena-smc
index 2f9f5c1e87..4ec3c7eb95 100644
--- a/tests/ref/vsynth/vsynth_lena-smc
+++ b/tests/ref/vsynth/vsynth_lena-smc
@@ -1,4 +1,4 @@
-037fa90a1ac659ff4dca22fb375dc7e1 *tests/data/fate/vsynth_lena-smc.mov
-3502732 tests/data/fate/vsynth_lena-smc.mov
-db453693ceae6f65c173dd716ee2662e *tests/data/fate/vsynth_lena-smc.out.rawvideo
-stddev:    8.07 PSNR: 29.99 MAXDIFF:   32 bytes:  7603200/  7603200
+094a941499269f9191239807d4d80e23 *tests/data/fate/vsynth_lena-smc.mov
+3713079 tests/data/fate/vsynth_lena-smc.mov
+32f11f7e0567b59d688268f296dd2994 *tests/data/fate/vsynth_lena-smc.out.rawvideo
+stddev:    7.01 PSNR: 31.21 MAXDIFF:   35 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth_lena-zlib b/tests/ref/vsynth/vsynth_lena-zlib
index 009bcad853..3a6a151302 100644
--- a/tests/ref/vsynth/vsynth_lena-zlib
+++ b/tests/ref/vsynth/vsynth_lena-zlib
@@ -1,4 +1,4 @@
-abbfccc551b173a357024d8392de21dd *tests/data/fate/vsynth_lena-zlib.avi
-12517180 tests/data/fate/vsynth_lena-zlib.avi
-98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-zlib.out.rawvideo
-stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
+f9b68121e76eb314b8ead287d7bfb47e *tests/data/fate/vsynth_lena-zlib.avi
+13891878 tests/data/fate/vsynth_lena-zlib.avi
+726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-zlib.out.rawvideo
+stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
-- 
2.45.1


[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [FFmpeg-devel] [PATCH] swscale/options: use accurate rounding and full chroma by default
  2025-06-08 23:52 [FFmpeg-devel] [PATCH] swscale/options: use accurate rounding and full chroma by default rcombs via ffmpeg-devel
@ 2025-06-09 12:17 ` Michael Niedermayer
  2025-06-09 22:02   ` Ridley Combs via ffmpeg-devel
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Niedermayer @ 2025-06-09 12:17 UTC (permalink / raw)
  To: FFmpeg development discussions and patches


[-- Attachment #1.1: Type: text/plain, Size: 22945 bytes --]

Hi

On Sun, Jun 08, 2025 at 04:52:35PM -0700, rcombs via ffmpeg-devel wrote:
> Date: Sun,  8 Jun 2025 16:52:35 -0700
> From: rcombs <rcombs@rcombs.me>
> To: ffmpeg-devel@ffmpeg.org
> Subject: [PATCH] swscale/options: use accurate rounding and full chroma by default
> 
> This has been causing quality degradation for people since the dawn of sws,
> and the performance concerns that originally led to this default have been
> soundly defeated by the march of time.
> ---
[...]

Do we know why the cases below become worse ?


> --- a/tests/ref/vsynth/vsynth1-jpeg2000
> +++ b/tests/ref/vsynth/vsynth1-jpeg2000
> @@ -1,4 +1,4 @@
> -95add005faf68fcf8f16e86eab079ca2 *tests/data/fate/vsynth1-jpeg2000.avi
> -2263192 tests/data/fate/vsynth1-jpeg2000.avi
> -b7f48a8965f78011c76483277befc6fc *tests/data/fate/vsynth1-jpeg2000.out.rawvideo
> -stddev:    5.35 PSNR: 33.56 MAXDIFF:   59 bytes:  7603200/  7603200
> +2ce46a92e9cc399b79c22534d8ae8350 *tests/data/fate/vsynth1-jpeg2000.avi
> +2250458 tests/data/fate/vsynth1-jpeg2000.avi
> +7980403710bc90ccb5c8d016581df711 *tests/data/fate/vsynth1-jpeg2000.out.rawvideo
> +stddev:    5.57 PSNR: 33.21 MAXDIFF:   54 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth1-jpeg2000-97 b/tests/ref/vsynth/vsynth1-jpeg2000-97
> index 820249c6c0..698b619442 100644
> --- a/tests/ref/vsynth/vsynth1-jpeg2000-97
> +++ b/tests/ref/vsynth/vsynth1-jpeg2000-97
> @@ -1,4 +1,4 @@
> -803c2e8a4d054c5d603eed4c77abe492 *tests/data/fate/vsynth1-jpeg2000-97.avi
> -4466514 tests/data/fate/vsynth1-jpeg2000-97.avi
> -c9cf5a4580f10b00056c8d8731d21395 *tests/data/fate/vsynth1-jpeg2000-97.out.rawvideo
> -stddev:    3.82 PSNR: 36.49 MAXDIFF:   49 bytes:  7603200/  7603200
> +558aede84e4792596595dfa15729c730 *tests/data/fate/vsynth1-jpeg2000-97.avi
> +4303250 tests/data/fate/vsynth1-jpeg2000-97.avi
> +a1ff0cdd46f6f3ed2646fd47874aa405 *tests/data/fate/vsynth1-jpeg2000-97.out.rawvideo
> +stddev:    4.08 PSNR: 35.90 MAXDIFF:   48 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12 b/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12
> index 0c6d47778f..8d15116b0b 100644
> --- a/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12
> +++ b/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12
> @@ -1,4 +1,4 @@
>  78b35a445001d2879386fdad16a2f0be *tests/data/fate/vsynth1-jpeg2000-gbrp12.avi
>  8163968 tests/data/fate/vsynth1-jpeg2000-gbrp12.avi
> -e934632ff63a00b4f2c9b3061f9c410e *tests/data/fate/vsynth1-jpeg2000-gbrp12.out.rawvideo
> -stddev:    3.51 PSNR: 37.21 MAXDIFF:   43 bytes:  7603200/  7603200
> +d8969ef75c8ba574512730b5e9bea980 *tests/data/fate/vsynth1-jpeg2000-gbrp12.out.rawvideo
> +stddev:    3.71 PSNR: 36.72 MAXDIFF:   47 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth1-mov-bgr24 b/tests/ref/vsynth/vsynth1-mov-bgr24
> index 6639d0d544..0c6a8461ae 100644
> --- a/tests/ref/vsynth/vsynth1-mov-bgr24
> +++ b/tests/ref/vsynth/vsynth1-mov-bgr24
> @@ -1,4 +1,4 @@
> -ba9d5cbc4b432db076fb501b1d5fa536 *tests/data/fate/vsynth1-mov-bgr24.mov
> +87c924fb0a492bebfbb2afc594414efa *tests/data/fate/vsynth1-mov-bgr24.mov
>  15207169 tests/data/fate/vsynth1-mov-bgr24.mov
> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-mov-bgr24.out.rawvideo
> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-mov-bgr24.out.rawvideo
> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth1-mov-bpp15 b/tests/ref/vsynth/vsynth1-mov-bpp15
> index d42c40b19a..ee50a2a896 100644
> --- a/tests/ref/vsynth/vsynth1-mov-bpp15
> +++ b/tests/ref/vsynth/vsynth1-mov-bpp15
> @@ -1,4 +1,4 @@
>  dfd88a906ae74dddd4caf3c455224fa3 *tests/data/fate/vsynth1-mov-bpp15.mov
>  10138329 tests/data/fate/vsynth1-mov-bpp15.mov
> -99bece160cfb0da47f446b60d42fa3ae *tests/data/fate/vsynth1-mov-bpp15.out.rawvideo
> -stddev:    4.06 PSNR: 35.94 MAXDIFF:   47 bytes:  7603200/  7603200
> +23d89c693d78c049c6029c1e70b37e6f *tests/data/fate/vsynth1-mov-bpp15.out.rawvideo
> +stddev:    4.37 PSNR: 35.31 MAXDIFF:   47 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth1-mov-bpp16 b/tests/ref/vsynth/vsynth1-mov-bpp16
> index bdafbf14ce..32cbf60854 100644
> --- a/tests/ref/vsynth/vsynth1-mov-bpp16
> +++ b/tests/ref/vsynth/vsynth1-mov-bpp16
> @@ -1,4 +1,4 @@
>  3d7e3f8bd238c341b0b4d55a30d8f5a2 *tests/data/fate/vsynth1-mov-bpp16.mov
>  10138329 tests/data/fate/vsynth1-mov-bpp16.mov
> -0cea382b9b0a4ce88260c1edc20b3f5b *tests/data/fate/vsynth1-mov-bpp16.out.rawvideo
> -stddev:    3.79 PSNR: 36.55 MAXDIFF:   46 bytes:  7603200/  7603200
> +efa9a6c6e5c7dd60703b1af19192a838 *tests/data/fate/vsynth1-mov-bpp16.out.rawvideo
> +stddev:    4.11 PSNR: 35.84 MAXDIFF:   46 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth1-mpng b/tests/ref/vsynth/vsynth1-mpng
> index 64f2f2d4a1..5eea00546d 100644
> --- a/tests/ref/vsynth/vsynth1-mpng
> +++ b/tests/ref/vsynth/vsynth1-mpng
> @@ -1,4 +1,4 @@
> -40e37e28a693ada8605ea24dce8c2420 *tests/data/fate/vsynth1-mpng.avi
> -7658772 tests/data/fate/vsynth1-mpng.avi
> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-mpng.out.rawvideo
> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
> +5eaacc54fdb23eb50bb22b65e0f26fd8 *tests/data/fate/vsynth1-mpng.avi
> +7954812 tests/data/fate/vsynth1-mpng.avi
> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-mpng.out.rawvideo
> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth1-msrle b/tests/ref/vsynth/vsynth1-msrle
> index 6174ff57f8..aab56f5cfb 100644
[...]
> --- a/tests/ref/vsynth/vsynth1-msvideo1
> +++ b/tests/ref/vsynth/vsynth1-msvideo1
> @@ -1,4 +1,4 @@
>  41c8ec9813bb32831c4cf279677e631b *tests/data/fate/vsynth1-msvideo1.avi
>  2051896 tests/data/fate/vsynth1-msvideo1.avi
> -f4605ac6df556a3ca7053c49aaac04d8 *tests/data/fate/vsynth1-msvideo1.out.rawvideo
> -stddev:   11.89 PSNR: 26.62 MAXDIFF:  159 bytes:  7603200/  7603200
> +c98e5f57cb9c679fca30e2c7780a1f17 *tests/data/fate/vsynth1-msvideo1.out.rawvideo
> +stddev:   11.96 PSNR: 26.57 MAXDIFF:  159 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth1-qtrle b/tests/ref/vsynth/vsynth1-qtrle
> index 02164ddb92..ab74718308 100644
> --- a/tests/ref/vsynth/vsynth1-qtrle
> +++ b/tests/ref/vsynth/vsynth1-qtrle
> @@ -1,4 +1,4 @@
> -fb84d62fc821cf063b5877c61b975e62 *tests/data/fate/vsynth1-qtrle.mov
> -15263158 tests/data/fate/vsynth1-qtrle.mov
> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-qtrle.out.rawvideo
> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
> +4672582331e5d2453ea58864fc7352e2 *tests/data/fate/vsynth1-qtrle.mov
> +15279123 tests/data/fate/vsynth1-qtrle.mov
> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-qtrle.out.rawvideo
> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth1-rgb b/tests/ref/vsynth/vsynth1-rgb
> index 6d9629b5e9..a82083c40a 100644
> --- a/tests/ref/vsynth/vsynth1-rgb
> +++ b/tests/ref/vsynth/vsynth1-rgb
> @@ -1,4 +1,4 @@
> -9d2bd1fa569a803c41b5dc5dd03f088e *tests/data/fate/vsynth1-rgb.avi
> +5479c9edf9ebb30ba82a8a38ddbcce1e *tests/data/fate/vsynth1-rgb.avi
>  15213252 tests/data/fate/vsynth1-rgb.avi
> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-rgb.out.rawvideo
> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-rgb.out.rawvideo
> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth1-rpza b/tests/ref/vsynth/vsynth1-rpza
> index b238b245d3..3731f1d524 100644
> --- a/tests/ref/vsynth/vsynth1-rpza
> +++ b/tests/ref/vsynth/vsynth1-rpza
> @@ -1,4 +1,4 @@
>  e4e9660c4a13709b277aac42419b9a23 *tests/data/fate/vsynth1-rpza.mov
>  10138529 tests/data/fate/vsynth1-rpza.mov
> -99bece160cfb0da47f446b60d42fa3ae *tests/data/fate/vsynth1-rpza.out.rawvideo
> -stddev:    4.06 PSNR: 35.94 MAXDIFF:   47 bytes:  7603200/  7603200
> +23d89c693d78c049c6029c1e70b37e6f *tests/data/fate/vsynth1-rpza.out.rawvideo
> +stddev:    4.37 PSNR: 35.31 MAXDIFF:   47 bytes:  7603200/  7603200
[...]
> diff --git a/tests/ref/vsynth/vsynth1-zlib b/tests/ref/vsynth/vsynth1-zlib
> index 419c6a6b3a..cbed901aca 100644
> --- a/tests/ref/vsynth/vsynth1-zlib
> +++ b/tests/ref/vsynth/vsynth1-zlib
> @@ -1,4 +1,4 @@
> -fd44e7bf6322f4be46f4f0dada728849 *tests/data/fate/vsynth1-zlib.avi
> -12108636 tests/data/fate/vsynth1-zlib.avi
> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-zlib.out.rawvideo
> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
> +96871637623fbe316e265d68d5fa3149 *tests/data/fate/vsynth1-zlib.avi
> +12692390 tests/data/fate/vsynth1-zlib.avi
> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-zlib.out.rawvideo
> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth2-bpp15 b/tests/ref/vsynth/vsynth2-bpp15
> index 9236c25b95..af20f47de0 100644
[...]
> --- a/tests/ref/vsynth/vsynth2-cinepak
> +++ b/tests/ref/vsynth/vsynth2-cinepak
> @@ -1,4 +1,4 @@
> -675d6a4370c315dc53c219a9271be4c6 *tests/data/fate/vsynth2-cinepak.avi
> -400720 tests/data/fate/vsynth2-cinepak.avi
> -cbf6900b882b484bc531f9b4799c226e *tests/data/fate/vsynth2-cinepak.out.rawvideo
> -stddev:   80.96 PSNR:  9.96 MAXDIFF:  229 bytes:  7603200/   921600
> +c6e2df6fa59e754c081be80af0de28d2 *tests/data/fate/vsynth2-cinepak.avi
> +400184 tests/data/fate/vsynth2-cinepak.avi
> +47bce92dcbf5eae5b2f21db623d25df0 *tests/data/fate/vsynth2-cinepak.out.rawvideo
> +stddev:   81.04 PSNR:  9.96 MAXDIFF:  228 bytes:  7603200/   921600
> diff --git a/tests/ref/vsynth/vsynth2-jpeg2000 b/tests/ref/vsynth/vsynth2-jpeg2000
> index b60307d5da..1fe086ec4c 100644
> --- a/tests/ref/vsynth/vsynth2-jpeg2000
> +++ b/tests/ref/vsynth/vsynth2-jpeg2000
> @@ -1,4 +1,4 @@
> -bfe90391779a02319aab98b06dd18e6c *tests/data/fate/vsynth2-jpeg2000.avi
> -1538724 tests/data/fate/vsynth2-jpeg2000.avi
> -64fadc87447268cf90503cb294db7f61 *tests/data/fate/vsynth2-jpeg2000.out.rawvideo
> -stddev:    4.91 PSNR: 34.29 MAXDIFF:   55 bytes:  7603200/  7603200
> +3b01582597c20714fc916bdb4379a2f7 *tests/data/fate/vsynth2-jpeg2000.avi
> +1519794 tests/data/fate/vsynth2-jpeg2000.avi
> +e412aa6545900abcfad0f9e45a00689d *tests/data/fate/vsynth2-jpeg2000.out.rawvideo
> +stddev:    4.92 PSNR: 34.29 MAXDIFF:   56 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth2-jpeg2000-97 b/tests/ref/vsynth/vsynth2-jpeg2000-97
> index e40dca5b9a..ccef53a7e4 100644
[...]
> diff --git a/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12 b/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12
> index fad6af5741..22259fd154 100644
> --- a/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12
> +++ b/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12
> @@ -1,4 +1,4 @@
>  3b20090f3d1f8804789c0dfdc68049fb *tests/data/fate/vsynth2-jpeg2000-gbrp12.avi
>  8484786 tests/data/fate/vsynth2-jpeg2000-gbrp12.avi
> -44c4232da8e05ce034558ee1c5899e0a *tests/data/fate/vsynth2-jpeg2000-gbrp12.out.rawvideo
> -stddev:    1.23 PSNR: 46.30 MAXDIFF:   14 bytes:  7603200/  7603200
> +df854504d00e02e0ee5ff235a8f95e04 *tests/data/fate/vsynth2-jpeg2000-gbrp12.out.rawvideo
> +stddev:    1.25 PSNR: 46.18 MAXDIFF:   14 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth2-mov-bgr24 b/tests/ref/vsynth/vsynth2-mov-bgr24
> index 1db6aee655..0543b6e6b8 100644
[...]
> --- a/tests/ref/vsynth/vsynth2-mov-bpp15
> +++ b/tests/ref/vsynth/vsynth2-mov-bpp15
> @@ -1,4 +1,4 @@
>  a004683db50f49520abd74479b25cbd1 *tests/data/fate/vsynth2-mov-bpp15.mov
>  10138329 tests/data/fate/vsynth2-mov-bpp15.mov
> -eb3f0c974ed17ede7cd3ce30ce417d8d *tests/data/fate/vsynth2-mov-bpp15.out.rawvideo
> -stddev:    2.81 PSNR: 39.14 MAXDIFF:   19 bytes:  7603200/  7603200
> +33c4e41a4e5594988dd8972becac3924 *tests/data/fate/vsynth2-mov-bpp15.out.rawvideo
> +stddev:    2.82 PSNR: 39.12 MAXDIFF:   19 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth2-mov-bpp16 b/tests/ref/vsynth/vsynth2-mov-bpp16
> index f7f40c58c1..0d6bc84a0c 100644
[...]
> diff --git a/tests/ref/vsynth/vsynth3-jpeg2000 b/tests/ref/vsynth/vsynth3-jpeg2000
> index 894dba27dc..53f4a761de 100644
> --- a/tests/ref/vsynth/vsynth3-jpeg2000
> +++ b/tests/ref/vsynth/vsynth3-jpeg2000
> @@ -1,4 +1,4 @@
> -1d039969504abdc143b410f99b5f9171 *tests/data/fate/vsynth3-jpeg2000.avi
> -67354 tests/data/fate/vsynth3-jpeg2000.avi
> -098f5980667e1fcd50452b1dc1a74f61 *tests/data/fate/vsynth3-jpeg2000.out.rawvideo
> -stddev:    5.47 PSNR: 33.36 MAXDIFF:   48 bytes:    86700/    86700
> +a0d55800efe98237feb895009aefe2e3 *tests/data/fate/vsynth3-jpeg2000.avi
> +67216 tests/data/fate/vsynth3-jpeg2000.avi
> +61cd335039efc6f5c4f9e731fb867ee6 *tests/data/fate/vsynth3-jpeg2000.out.rawvideo
> +stddev:    5.84 PSNR: 32.80 MAXDIFF:   50 bytes:    86700/    86700
[...]
> diff --git a/tests/ref/vsynth/vsynth3-mov-bgr24 b/tests/ref/vsynth/vsynth3-mov-bgr24
> index 4fc3cc979f..be1dca4070 100644
> --- a/tests/ref/vsynth/vsynth3-mov-bgr24
> +++ b/tests/ref/vsynth/vsynth3-mov-bgr24
> @@ -1,4 +1,4 @@
> -0141cd3b6e8eea836d392adf6949afc4 *tests/data/fate/vsynth3-mov-bgr24.mov
> +5a02329343cdde447ebcaf3391f0db1d *tests/data/fate/vsynth3-mov-bgr24.mov
>  174093 tests/data/fate/vsynth3-mov-bgr24.mov
> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-mov-bgr24.out.rawvideo
> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-mov-bgr24.out.rawvideo
> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
> diff --git a/tests/ref/vsynth/vsynth3-mov-bpp15 b/tests/ref/vsynth/vsynth3-mov-bpp15
> index 4c289cf161..5d41c08f64 100644
> --- a/tests/ref/vsynth/vsynth3-mov-bpp15
> +++ b/tests/ref/vsynth/vsynth3-mov-bpp15
> @@ -1,4 +1,4 @@
>  96e1406b041b16e9598092d928ea9d3e *tests/data/fate/vsynth3-mov-bpp15.mov
>  116293 tests/data/fate/vsynth3-mov-bpp15.mov
> -19f61c34cbdef98b0f4aca6c19f59ed4 *tests/data/fate/vsynth3-mov-bpp15.out.rawvideo
> -stddev:    4.35 PSNR: 35.35 MAXDIFF:   46 bytes:    86700/    86700
> +42006d8675be53cb4bdfc77031e39f70 *tests/data/fate/vsynth3-mov-bpp15.out.rawvideo
> +stddev:    4.71 PSNR: 34.65 MAXDIFF:   46 bytes:    86700/    86700
> diff --git a/tests/ref/vsynth/vsynth3-mov-bpp16 b/tests/ref/vsynth/vsynth3-mov-bpp16
> index 55537d4bfd..2a95c6f504 100644
> --- a/tests/ref/vsynth/vsynth3-mov-bpp16
> +++ b/tests/ref/vsynth/vsynth3-mov-bpp16
> @@ -1,4 +1,4 @@
>  65b51e9a83da767fae244fd6816f2bc7 *tests/data/fate/vsynth3-mov-bpp16.mov
>  116293 tests/data/fate/vsynth3-mov-bpp16.mov
> -756f68dd5412d245d4bbeda7b5d51829 *tests/data/fate/vsynth3-mov-bpp16.out.rawvideo
> -stddev:    4.07 PSNR: 35.93 MAXDIFF:   46 bytes:    86700/    86700
> +685ab3882e155c5f2a5c1716089a0435 *tests/data/fate/vsynth3-mov-bpp16.out.rawvideo
> +stddev:    4.45 PSNR: 35.16 MAXDIFF:   46 bytes:    86700/    86700
> diff --git a/tests/ref/vsynth/vsynth3-mpng b/tests/ref/vsynth/vsynth3-mpng
> index 2948b50763..0716f9abfa 100644
> --- a/tests/ref/vsynth/vsynth3-mpng
> +++ b/tests/ref/vsynth/vsynth3-mpng
> @@ -1,4 +1,4 @@
> -28177b90f3b5a90043f11dc14b84f3f0 *tests/data/fate/vsynth3-mpng.avi
> -132202 tests/data/fate/vsynth3-mpng.avi
> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-mpng.out.rawvideo
> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
> +dbdf75517de7429576be3feac44e65a2 *tests/data/fate/vsynth3-mpng.avi
> +138628 tests/data/fate/vsynth3-mpng.avi
> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-mpng.out.rawvideo
> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
[...]
> diff --git a/tests/ref/vsynth/vsynth3-qtrle b/tests/ref/vsynth/vsynth3-qtrle
> index 2056e1b7e2..9bf29b8c89 100644
> --- a/tests/ref/vsynth/vsynth3-qtrle
> +++ b/tests/ref/vsynth/vsynth3-qtrle
> @@ -1,4 +1,4 @@
> -b9152e4c2931818140086903c9d9a8ae *tests/data/fate/vsynth3-qtrle.mov
> -179656 tests/data/fate/vsynth3-qtrle.mov
> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-qtrle.out.rawvideo
> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
> +1840ff45097f40041248f0b8def3be10 *tests/data/fate/vsynth3-qtrle.mov
> +179758 tests/data/fate/vsynth3-qtrle.mov
> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-qtrle.out.rawvideo
> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
> diff --git a/tests/ref/vsynth/vsynth3-rgb b/tests/ref/vsynth/vsynth3-rgb
> index 1a882ce104..3225fb8203 100644
> --- a/tests/ref/vsynth/vsynth3-rgb
> +++ b/tests/ref/vsynth/vsynth3-rgb
> @@ -1,4 +1,4 @@
> -3e2909a69865eb88df72916c38d265de *tests/data/fate/vsynth3-rgb.avi
> +4805cf50c8bc287e50123d796c6e5aa5 *tests/data/fate/vsynth3-rgb.avi
>  183652 tests/data/fate/vsynth3-rgb.avi
> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-rgb.out.rawvideo
> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-rgb.out.rawvideo
> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
> diff --git a/tests/ref/vsynth/vsynth3-rpza b/tests/ref/vsynth/vsynth3-rpza
> index c933a44c4b..cc8b244be4 100644
> --- a/tests/ref/vsynth/vsynth3-rpza
> +++ b/tests/ref/vsynth/vsynth3-rpza
> @@ -1,4 +1,4 @@
>  791ad5931c5d54eff406c639be0c79e2 *tests/data/fate/vsynth3-rpza.mov
>  130493 tests/data/fate/vsynth3-rpza.mov
> -19f61c34cbdef98b0f4aca6c19f59ed4 *tests/data/fate/vsynth3-rpza.out.rawvideo
> -stddev:    4.35 PSNR: 35.35 MAXDIFF:   46 bytes:    86700/    86700
> +42006d8675be53cb4bdfc77031e39f70 *tests/data/fate/vsynth3-rpza.out.rawvideo
> +stddev:    4.71 PSNR: 34.65 MAXDIFF:   46 bytes:    86700/    86700
[...]
> diff --git a/tests/ref/vsynth/vsynth3-zlib b/tests/ref/vsynth/vsynth3-zlib
> index 55d65f30e0..f26236b4ea 100644
> --- a/tests/ref/vsynth/vsynth3-zlib
> +++ b/tests/ref/vsynth/vsynth3-zlib
> @@ -1,4 +1,4 @@
> -d3705acfc90b16968d0d4a3ac56b049c *tests/data/fate/vsynth3-zlib.avi
> -174882 tests/data/fate/vsynth3-zlib.avi
> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-zlib.out.rawvideo
> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
> +b102ed61dc12da9afc830279bf0ad99f *tests/data/fate/vsynth3-zlib.avi
> +178678 tests/data/fate/vsynth3-zlib.avi
> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-zlib.out.rawvideo
> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
[...]
> diff --git a/tests/ref/vsynth/vsynth_lena-mov-bgr24 b/tests/ref/vsynth/vsynth_lena-mov-bgr24
> index 098dd91258..a38d5b2ade 100644
> --- a/tests/ref/vsynth/vsynth_lena-mov-bgr24
> +++ b/tests/ref/vsynth/vsynth_lena-mov-bgr24
> @@ -1,4 +1,4 @@
> -3656f10647727ff16119ad54e11ed09d *tests/data/fate/vsynth_lena-mov-bgr24.mov
> +125bb862fddecefc2159bff751feca9c *tests/data/fate/vsynth_lena-mov-bgr24.mov
>  15207169 tests/data/fate/vsynth_lena-mov-bgr24.mov
> -98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-mov-bgr24.out.rawvideo
> -stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
> +726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-mov-bgr24.out.rawvideo
> +stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
[...]
> diff --git a/tests/ref/vsynth/vsynth_lena-msvideo1 b/tests/ref/vsynth/vsynth_lena-msvideo1
> index 4f7de4010d..a04e381eee 100644
> --- a/tests/ref/vsynth/vsynth_lena-msvideo1
> +++ b/tests/ref/vsynth/vsynth_lena-msvideo1
> @@ -1,4 +1,4 @@
>  f2d42ddffd6546b6ca71bbb6e3b62c00 *tests/data/fate/vsynth_lena-msvideo1.avi
>  914564 tests/data/fate/vsynth_lena-msvideo1.avi
> -9a6ac7c0171286f009d159b59fdc1154 *tests/data/fate/vsynth_lena-msvideo1.out.rawvideo
> -stddev:    7.97 PSNR: 30.10 MAXDIFF:  123 bytes:  7603200/  7603200
> +7bfede936dbb69ed1799fe887bd2c9be *tests/data/fate/vsynth_lena-msvideo1.out.rawvideo
> +stddev:    7.95 PSNR: 30.11 MAXDIFF:  123 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth_lena-qtrle b/tests/ref/vsynth/vsynth_lena-qtrle
> index f426fe0ab6..0fc0e1d0da 100644
> --- a/tests/ref/vsynth/vsynth_lena-qtrle
> +++ b/tests/ref/vsynth/vsynth_lena-qtrle
> @@ -1,4 +1,4 @@
> -513ca7d64af25676f5f99f00e2287ced *tests/data/fate/vsynth_lena-qtrle.mov
> -14798345 tests/data/fate/vsynth_lena-qtrle.mov
> -98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-qtrle.out.rawvideo
> -stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
> +46eeb339a5875699e10b42b5307e558b *tests/data/fate/vsynth_lena-qtrle.mov
> +15158084 tests/data/fate/vsynth_lena-qtrle.mov
> +726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-qtrle.out.rawvideo
> +stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
> diff --git a/tests/ref/vsynth/vsynth_lena-rgb b/tests/ref/vsynth/vsynth_lena-rgb
> index f3d232e76c..bdad1e1b18 100644
> --- a/tests/ref/vsynth/vsynth_lena-rgb
> +++ b/tests/ref/vsynth/vsynth_lena-rgb
> @@ -1,4 +1,4 @@
> -6ffbbd6939b3fe9f5dcf036ee46aad2d *tests/data/fate/vsynth_lena-rgb.avi
> +e14e020266f730a3d1459ea497673c6a *tests/data/fate/vsynth_lena-rgb.avi
>  15213252 tests/data/fate/vsynth_lena-rgb.avi
> -98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-rgb.out.rawvideo
> -stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
> +726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-rgb.out.rawvideo
> +stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
[...]
> diff --git a/tests/ref/vsynth/vsynth_lena-smc b/tests/ref/vsynth/vsynth_lena-smc
> index 2f9f5c1e87..4ec3c7eb95 100644
> --- a/tests/ref/vsynth/vsynth_lena-smc
> +++ b/tests/ref/vsynth/vsynth_lena-smc
> @@ -1,4 +1,4 @@
> -037fa90a1ac659ff4dca22fb375dc7e1 *tests/data/fate/vsynth_lena-smc.mov
> -3502732 tests/data/fate/vsynth_lena-smc.mov
> -db453693ceae6f65c173dd716ee2662e *tests/data/fate/vsynth_lena-smc.out.rawvideo
> -stddev:    8.07 PSNR: 29.99 MAXDIFF:   32 bytes:  7603200/  7603200
> +094a941499269f9191239807d4d80e23 *tests/data/fate/vsynth_lena-smc.mov
> +3713079 tests/data/fate/vsynth_lena-smc.mov
> +32f11f7e0567b59d688268f296dd2994 *tests/data/fate/vsynth_lena-smc.out.rawvideo
> +stddev:    7.01 PSNR: 31.21 MAXDIFF:   35 bytes:  7603200/  7603200

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Whats the most studid thing your enemy could do ? Blow himself up
Whats the most studid thing you could do ? Give up your rights and
freedom because your enemy blew himself up.


[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [FFmpeg-devel] [PATCH] swscale/options: use accurate rounding and full chroma by default
  2025-06-09 12:17 ` Michael Niedermayer
@ 2025-06-09 22:02   ` Ridley Combs via ffmpeg-devel
  2025-06-09 22:30     ` Michael Niedermayer
  0 siblings, 1 reply; 5+ messages in thread
From: Ridley Combs via ffmpeg-devel @ 2025-06-09 22:02 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Ridley Combs

[-- Attachment #1: Type: message/rfc822, Size: 27682 bytes --]

From: Ridley Combs <rcombs@rcombs.me>
To: ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] swscale/options: use accurate rounding and full chroma by default
Date: Mon, 9 Jun 2025 15:02:44 -0700
Message-ID: <C290E880-E47B-4055-B75D-56C884224E69@rcombs.me>



> On Jun 9, 2025, at 05:17, Michael Niedermayer <michael@niedermayer.cc> wrote:
> 
> Hi
> 
> On Sun, Jun 08, 2025 at 04:52:35PM -0700, rcombs via ffmpeg-devel wrote:
>> Date: Sun,  8 Jun 2025 16:52:35 -0700
>> From: rcombs <rcombs@rcombs.me>
>> To: ffmpeg-devel@ffmpeg.org
>> Subject: [PATCH] swscale/options: use accurate rounding and full chroma by default
>> 
>> This has been causing quality degradation for people since the dawn of sws,
>> and the performance concerns that originally led to this default have been
>> soundly defeated by the march of time.
>> ---
> [...]
> 
> Do we know why the cases below become worse ?

I'm not sure; it seems like similar numbers of cases moved in each direction, and I'm kinda inclined to chalk it up to noise. It does look like a lot of them are cases where we round-trip yuv420 -> rgb -> yuv420, and it's possible that the current code path just happens to give better PSNR on that some of the time?

> 
> 
>> --- a/tests/ref/vsynth/vsynth1-jpeg2000
>> +++ b/tests/ref/vsynth/vsynth1-jpeg2000
>> @@ -1,4 +1,4 @@
>> -95add005faf68fcf8f16e86eab079ca2 *tests/data/fate/vsynth1-jpeg2000.avi
>> -2263192 tests/data/fate/vsynth1-jpeg2000.avi
>> -b7f48a8965f78011c76483277befc6fc *tests/data/fate/vsynth1-jpeg2000.out.rawvideo
>> -stddev:    5.35 PSNR: 33.56 MAXDIFF:   59 bytes:  7603200/  7603200
>> +2ce46a92e9cc399b79c22534d8ae8350 *tests/data/fate/vsynth1-jpeg2000.avi
>> +2250458 tests/data/fate/vsynth1-jpeg2000.avi
>> +7980403710bc90ccb5c8d016581df711 *tests/data/fate/vsynth1-jpeg2000.out.rawvideo
>> +stddev:    5.57 PSNR: 33.21 MAXDIFF:   54 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth1-jpeg2000-97 b/tests/ref/vsynth/vsynth1-jpeg2000-97
>> index 820249c6c0..698b619442 100644
>> --- a/tests/ref/vsynth/vsynth1-jpeg2000-97
>> +++ b/tests/ref/vsynth/vsynth1-jpeg2000-97
>> @@ -1,4 +1,4 @@
>> -803c2e8a4d054c5d603eed4c77abe492 *tests/data/fate/vsynth1-jpeg2000-97.avi
>> -4466514 tests/data/fate/vsynth1-jpeg2000-97.avi
>> -c9cf5a4580f10b00056c8d8731d21395 *tests/data/fate/vsynth1-jpeg2000-97.out.rawvideo
>> -stddev:    3.82 PSNR: 36.49 MAXDIFF:   49 bytes:  7603200/  7603200
>> +558aede84e4792596595dfa15729c730 *tests/data/fate/vsynth1-jpeg2000-97.avi
>> +4303250 tests/data/fate/vsynth1-jpeg2000-97.avi
>> +a1ff0cdd46f6f3ed2646fd47874aa405 *tests/data/fate/vsynth1-jpeg2000-97.out.rawvideo
>> +stddev:    4.08 PSNR: 35.90 MAXDIFF:   48 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12 b/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12
>> index 0c6d47778f..8d15116b0b 100644
>> --- a/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12
>> +++ b/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12
>> @@ -1,4 +1,4 @@
>> 78b35a445001d2879386fdad16a2f0be *tests/data/fate/vsynth1-jpeg2000-gbrp12.avi
>> 8163968 tests/data/fate/vsynth1-jpeg2000-gbrp12.avi
>> -e934632ff63a00b4f2c9b3061f9c410e *tests/data/fate/vsynth1-jpeg2000-gbrp12.out.rawvideo
>> -stddev:    3.51 PSNR: 37.21 MAXDIFF:   43 bytes:  7603200/  7603200
>> +d8969ef75c8ba574512730b5e9bea980 *tests/data/fate/vsynth1-jpeg2000-gbrp12.out.rawvideo
>> +stddev:    3.71 PSNR: 36.72 MAXDIFF:   47 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth1-mov-bgr24 b/tests/ref/vsynth/vsynth1-mov-bgr24
>> index 6639d0d544..0c6a8461ae 100644
>> --- a/tests/ref/vsynth/vsynth1-mov-bgr24
>> +++ b/tests/ref/vsynth/vsynth1-mov-bgr24
>> @@ -1,4 +1,4 @@
>> -ba9d5cbc4b432db076fb501b1d5fa536 *tests/data/fate/vsynth1-mov-bgr24.mov
>> +87c924fb0a492bebfbb2afc594414efa *tests/data/fate/vsynth1-mov-bgr24.mov
>> 15207169 tests/data/fate/vsynth1-mov-bgr24.mov
>> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-mov-bgr24.out.rawvideo
>> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
>> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-mov-bgr24.out.rawvideo
>> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth1-mov-bpp15 b/tests/ref/vsynth/vsynth1-mov-bpp15
>> index d42c40b19a..ee50a2a896 100644
>> --- a/tests/ref/vsynth/vsynth1-mov-bpp15
>> +++ b/tests/ref/vsynth/vsynth1-mov-bpp15
>> @@ -1,4 +1,4 @@
>> dfd88a906ae74dddd4caf3c455224fa3 *tests/data/fate/vsynth1-mov-bpp15.mov
>> 10138329 tests/data/fate/vsynth1-mov-bpp15.mov
>> -99bece160cfb0da47f446b60d42fa3ae *tests/data/fate/vsynth1-mov-bpp15.out.rawvideo
>> -stddev:    4.06 PSNR: 35.94 MAXDIFF:   47 bytes:  7603200/  7603200
>> +23d89c693d78c049c6029c1e70b37e6f *tests/data/fate/vsynth1-mov-bpp15.out.rawvideo
>> +stddev:    4.37 PSNR: 35.31 MAXDIFF:   47 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth1-mov-bpp16 b/tests/ref/vsynth/vsynth1-mov-bpp16
>> index bdafbf14ce..32cbf60854 100644
>> --- a/tests/ref/vsynth/vsynth1-mov-bpp16
>> +++ b/tests/ref/vsynth/vsynth1-mov-bpp16
>> @@ -1,4 +1,4 @@
>> 3d7e3f8bd238c341b0b4d55a30d8f5a2 *tests/data/fate/vsynth1-mov-bpp16.mov
>> 10138329 tests/data/fate/vsynth1-mov-bpp16.mov
>> -0cea382b9b0a4ce88260c1edc20b3f5b *tests/data/fate/vsynth1-mov-bpp16.out.rawvideo
>> -stddev:    3.79 PSNR: 36.55 MAXDIFF:   46 bytes:  7603200/  7603200
>> +efa9a6c6e5c7dd60703b1af19192a838 *tests/data/fate/vsynth1-mov-bpp16.out.rawvideo
>> +stddev:    4.11 PSNR: 35.84 MAXDIFF:   46 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth1-mpng b/tests/ref/vsynth/vsynth1-mpng
>> index 64f2f2d4a1..5eea00546d 100644
>> --- a/tests/ref/vsynth/vsynth1-mpng
>> +++ b/tests/ref/vsynth/vsynth1-mpng
>> @@ -1,4 +1,4 @@
>> -40e37e28a693ada8605ea24dce8c2420 *tests/data/fate/vsynth1-mpng.avi
>> -7658772 tests/data/fate/vsynth1-mpng.avi
>> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-mpng.out.rawvideo
>> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
>> +5eaacc54fdb23eb50bb22b65e0f26fd8 *tests/data/fate/vsynth1-mpng.avi
>> +7954812 tests/data/fate/vsynth1-mpng.avi
>> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-mpng.out.rawvideo
>> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth1-msrle b/tests/ref/vsynth/vsynth1-msrle
>> index 6174ff57f8..aab56f5cfb 100644
> [...]
>> --- a/tests/ref/vsynth/vsynth1-msvideo1
>> +++ b/tests/ref/vsynth/vsynth1-msvideo1
>> @@ -1,4 +1,4 @@
>> 41c8ec9813bb32831c4cf279677e631b *tests/data/fate/vsynth1-msvideo1.avi
>> 2051896 tests/data/fate/vsynth1-msvideo1.avi
>> -f4605ac6df556a3ca7053c49aaac04d8 *tests/data/fate/vsynth1-msvideo1.out.rawvideo
>> -stddev:   11.89 PSNR: 26.62 MAXDIFF:  159 bytes:  7603200/  7603200
>> +c98e5f57cb9c679fca30e2c7780a1f17 *tests/data/fate/vsynth1-msvideo1.out.rawvideo
>> +stddev:   11.96 PSNR: 26.57 MAXDIFF:  159 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth1-qtrle b/tests/ref/vsynth/vsynth1-qtrle
>> index 02164ddb92..ab74718308 100644
>> --- a/tests/ref/vsynth/vsynth1-qtrle
>> +++ b/tests/ref/vsynth/vsynth1-qtrle
>> @@ -1,4 +1,4 @@
>> -fb84d62fc821cf063b5877c61b975e62 *tests/data/fate/vsynth1-qtrle.mov
>> -15263158 tests/data/fate/vsynth1-qtrle.mov
>> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-qtrle.out.rawvideo
>> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
>> +4672582331e5d2453ea58864fc7352e2 *tests/data/fate/vsynth1-qtrle.mov
>> +15279123 tests/data/fate/vsynth1-qtrle.mov
>> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-qtrle.out.rawvideo
>> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth1-rgb b/tests/ref/vsynth/vsynth1-rgb
>> index 6d9629b5e9..a82083c40a 100644
>> --- a/tests/ref/vsynth/vsynth1-rgb
>> +++ b/tests/ref/vsynth/vsynth1-rgb
>> @@ -1,4 +1,4 @@
>> -9d2bd1fa569a803c41b5dc5dd03f088e *tests/data/fate/vsynth1-rgb.avi
>> +5479c9edf9ebb30ba82a8a38ddbcce1e *tests/data/fate/vsynth1-rgb.avi
>> 15213252 tests/data/fate/vsynth1-rgb.avi
>> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-rgb.out.rawvideo
>> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
>> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-rgb.out.rawvideo
>> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth1-rpza b/tests/ref/vsynth/vsynth1-rpza
>> index b238b245d3..3731f1d524 100644
>> --- a/tests/ref/vsynth/vsynth1-rpza
>> +++ b/tests/ref/vsynth/vsynth1-rpza
>> @@ -1,4 +1,4 @@
>> e4e9660c4a13709b277aac42419b9a23 *tests/data/fate/vsynth1-rpza.mov
>> 10138529 tests/data/fate/vsynth1-rpza.mov
>> -99bece160cfb0da47f446b60d42fa3ae *tests/data/fate/vsynth1-rpza.out.rawvideo
>> -stddev:    4.06 PSNR: 35.94 MAXDIFF:   47 bytes:  7603200/  7603200
>> +23d89c693d78c049c6029c1e70b37e6f *tests/data/fate/vsynth1-rpza.out.rawvideo
>> +stddev:    4.37 PSNR: 35.31 MAXDIFF:   47 bytes:  7603200/  7603200
> [...]
>> diff --git a/tests/ref/vsynth/vsynth1-zlib b/tests/ref/vsynth/vsynth1-zlib
>> index 419c6a6b3a..cbed901aca 100644
>> --- a/tests/ref/vsynth/vsynth1-zlib
>> +++ b/tests/ref/vsynth/vsynth1-zlib
>> @@ -1,4 +1,4 @@
>> -fd44e7bf6322f4be46f4f0dada728849 *tests/data/fate/vsynth1-zlib.avi
>> -12108636 tests/data/fate/vsynth1-zlib.avi
>> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-zlib.out.rawvideo
>> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
>> +96871637623fbe316e265d68d5fa3149 *tests/data/fate/vsynth1-zlib.avi
>> +12692390 tests/data/fate/vsynth1-zlib.avi
>> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-zlib.out.rawvideo
>> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth2-bpp15 b/tests/ref/vsynth/vsynth2-bpp15
>> index 9236c25b95..af20f47de0 100644
> [...]
>> --- a/tests/ref/vsynth/vsynth2-cinepak
>> +++ b/tests/ref/vsynth/vsynth2-cinepak
>> @@ -1,4 +1,4 @@
>> -675d6a4370c315dc53c219a9271be4c6 *tests/data/fate/vsynth2-cinepak.avi
>> -400720 tests/data/fate/vsynth2-cinepak.avi
>> -cbf6900b882b484bc531f9b4799c226e *tests/data/fate/vsynth2-cinepak.out.rawvideo
>> -stddev:   80.96 PSNR:  9.96 MAXDIFF:  229 bytes:  7603200/   921600
>> +c6e2df6fa59e754c081be80af0de28d2 *tests/data/fate/vsynth2-cinepak.avi
>> +400184 tests/data/fate/vsynth2-cinepak.avi
>> +47bce92dcbf5eae5b2f21db623d25df0 *tests/data/fate/vsynth2-cinepak.out.rawvideo
>> +stddev:   81.04 PSNR:  9.96 MAXDIFF:  228 bytes:  7603200/   921600
>> diff --git a/tests/ref/vsynth/vsynth2-jpeg2000 b/tests/ref/vsynth/vsynth2-jpeg2000
>> index b60307d5da..1fe086ec4c 100644
>> --- a/tests/ref/vsynth/vsynth2-jpeg2000
>> +++ b/tests/ref/vsynth/vsynth2-jpeg2000
>> @@ -1,4 +1,4 @@
>> -bfe90391779a02319aab98b06dd18e6c *tests/data/fate/vsynth2-jpeg2000.avi
>> -1538724 tests/data/fate/vsynth2-jpeg2000.avi
>> -64fadc87447268cf90503cb294db7f61 *tests/data/fate/vsynth2-jpeg2000.out.rawvideo
>> -stddev:    4.91 PSNR: 34.29 MAXDIFF:   55 bytes:  7603200/  7603200
>> +3b01582597c20714fc916bdb4379a2f7 *tests/data/fate/vsynth2-jpeg2000.avi
>> +1519794 tests/data/fate/vsynth2-jpeg2000.avi
>> +e412aa6545900abcfad0f9e45a00689d *tests/data/fate/vsynth2-jpeg2000.out.rawvideo
>> +stddev:    4.92 PSNR: 34.29 MAXDIFF:   56 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth2-jpeg2000-97 b/tests/ref/vsynth/vsynth2-jpeg2000-97
>> index e40dca5b9a..ccef53a7e4 100644
> [...]
>> diff --git a/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12 b/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12
>> index fad6af5741..22259fd154 100644
>> --- a/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12
>> +++ b/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12
>> @@ -1,4 +1,4 @@
>> 3b20090f3d1f8804789c0dfdc68049fb *tests/data/fate/vsynth2-jpeg2000-gbrp12.avi
>> 8484786 tests/data/fate/vsynth2-jpeg2000-gbrp12.avi
>> -44c4232da8e05ce034558ee1c5899e0a *tests/data/fate/vsynth2-jpeg2000-gbrp12.out.rawvideo
>> -stddev:    1.23 PSNR: 46.30 MAXDIFF:   14 bytes:  7603200/  7603200
>> +df854504d00e02e0ee5ff235a8f95e04 *tests/data/fate/vsynth2-jpeg2000-gbrp12.out.rawvideo
>> +stddev:    1.25 PSNR: 46.18 MAXDIFF:   14 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth2-mov-bgr24 b/tests/ref/vsynth/vsynth2-mov-bgr24
>> index 1db6aee655..0543b6e6b8 100644
> [...]
>> --- a/tests/ref/vsynth/vsynth2-mov-bpp15
>> +++ b/tests/ref/vsynth/vsynth2-mov-bpp15
>> @@ -1,4 +1,4 @@
>> a004683db50f49520abd74479b25cbd1 *tests/data/fate/vsynth2-mov-bpp15.mov
>> 10138329 tests/data/fate/vsynth2-mov-bpp15.mov
>> -eb3f0c974ed17ede7cd3ce30ce417d8d *tests/data/fate/vsynth2-mov-bpp15.out.rawvideo
>> -stddev:    2.81 PSNR: 39.14 MAXDIFF:   19 bytes:  7603200/  7603200
>> +33c4e41a4e5594988dd8972becac3924 *tests/data/fate/vsynth2-mov-bpp15.out.rawvideo
>> +stddev:    2.82 PSNR: 39.12 MAXDIFF:   19 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth2-mov-bpp16 b/tests/ref/vsynth/vsynth2-mov-bpp16
>> index f7f40c58c1..0d6bc84a0c 100644
> [...]
>> diff --git a/tests/ref/vsynth/vsynth3-jpeg2000 b/tests/ref/vsynth/vsynth3-jpeg2000
>> index 894dba27dc..53f4a761de 100644
>> --- a/tests/ref/vsynth/vsynth3-jpeg2000
>> +++ b/tests/ref/vsynth/vsynth3-jpeg2000
>> @@ -1,4 +1,4 @@
>> -1d039969504abdc143b410f99b5f9171 *tests/data/fate/vsynth3-jpeg2000.avi
>> -67354 tests/data/fate/vsynth3-jpeg2000.avi
>> -098f5980667e1fcd50452b1dc1a74f61 *tests/data/fate/vsynth3-jpeg2000.out.rawvideo
>> -stddev:    5.47 PSNR: 33.36 MAXDIFF:   48 bytes:    86700/    86700
>> +a0d55800efe98237feb895009aefe2e3 *tests/data/fate/vsynth3-jpeg2000.avi
>> +67216 tests/data/fate/vsynth3-jpeg2000.avi
>> +61cd335039efc6f5c4f9e731fb867ee6 *tests/data/fate/vsynth3-jpeg2000.out.rawvideo
>> +stddev:    5.84 PSNR: 32.80 MAXDIFF:   50 bytes:    86700/    86700
> [...]
>> diff --git a/tests/ref/vsynth/vsynth3-mov-bgr24 b/tests/ref/vsynth/vsynth3-mov-bgr24
>> index 4fc3cc979f..be1dca4070 100644
>> --- a/tests/ref/vsynth/vsynth3-mov-bgr24
>> +++ b/tests/ref/vsynth/vsynth3-mov-bgr24
>> @@ -1,4 +1,4 @@
>> -0141cd3b6e8eea836d392adf6949afc4 *tests/data/fate/vsynth3-mov-bgr24.mov
>> +5a02329343cdde447ebcaf3391f0db1d *tests/data/fate/vsynth3-mov-bgr24.mov
>> 174093 tests/data/fate/vsynth3-mov-bgr24.mov
>> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-mov-bgr24.out.rawvideo
>> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
>> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-mov-bgr24.out.rawvideo
>> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
>> diff --git a/tests/ref/vsynth/vsynth3-mov-bpp15 b/tests/ref/vsynth/vsynth3-mov-bpp15
>> index 4c289cf161..5d41c08f64 100644
>> --- a/tests/ref/vsynth/vsynth3-mov-bpp15
>> +++ b/tests/ref/vsynth/vsynth3-mov-bpp15
>> @@ -1,4 +1,4 @@
>> 96e1406b041b16e9598092d928ea9d3e *tests/data/fate/vsynth3-mov-bpp15.mov
>> 116293 tests/data/fate/vsynth3-mov-bpp15.mov
>> -19f61c34cbdef98b0f4aca6c19f59ed4 *tests/data/fate/vsynth3-mov-bpp15.out.rawvideo
>> -stddev:    4.35 PSNR: 35.35 MAXDIFF:   46 bytes:    86700/    86700
>> +42006d8675be53cb4bdfc77031e39f70 *tests/data/fate/vsynth3-mov-bpp15.out.rawvideo
>> +stddev:    4.71 PSNR: 34.65 MAXDIFF:   46 bytes:    86700/    86700
>> diff --git a/tests/ref/vsynth/vsynth3-mov-bpp16 b/tests/ref/vsynth/vsynth3-mov-bpp16
>> index 55537d4bfd..2a95c6f504 100644
>> --- a/tests/ref/vsynth/vsynth3-mov-bpp16
>> +++ b/tests/ref/vsynth/vsynth3-mov-bpp16
>> @@ -1,4 +1,4 @@
>> 65b51e9a83da767fae244fd6816f2bc7 *tests/data/fate/vsynth3-mov-bpp16.mov
>> 116293 tests/data/fate/vsynth3-mov-bpp16.mov
>> -756f68dd5412d245d4bbeda7b5d51829 *tests/data/fate/vsynth3-mov-bpp16.out.rawvideo
>> -stddev:    4.07 PSNR: 35.93 MAXDIFF:   46 bytes:    86700/    86700
>> +685ab3882e155c5f2a5c1716089a0435 *tests/data/fate/vsynth3-mov-bpp16.out.rawvideo
>> +stddev:    4.45 PSNR: 35.16 MAXDIFF:   46 bytes:    86700/    86700
>> diff --git a/tests/ref/vsynth/vsynth3-mpng b/tests/ref/vsynth/vsynth3-mpng
>> index 2948b50763..0716f9abfa 100644
>> --- a/tests/ref/vsynth/vsynth3-mpng
>> +++ b/tests/ref/vsynth/vsynth3-mpng
>> @@ -1,4 +1,4 @@
>> -28177b90f3b5a90043f11dc14b84f3f0 *tests/data/fate/vsynth3-mpng.avi
>> -132202 tests/data/fate/vsynth3-mpng.avi
>> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-mpng.out.rawvideo
>> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
>> +dbdf75517de7429576be3feac44e65a2 *tests/data/fate/vsynth3-mpng.avi
>> +138628 tests/data/fate/vsynth3-mpng.avi
>> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-mpng.out.rawvideo
>> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
> [...]
>> diff --git a/tests/ref/vsynth/vsynth3-qtrle b/tests/ref/vsynth/vsynth3-qtrle
>> index 2056e1b7e2..9bf29b8c89 100644
>> --- a/tests/ref/vsynth/vsynth3-qtrle
>> +++ b/tests/ref/vsynth/vsynth3-qtrle
>> @@ -1,4 +1,4 @@
>> -b9152e4c2931818140086903c9d9a8ae *tests/data/fate/vsynth3-qtrle.mov
>> -179656 tests/data/fate/vsynth3-qtrle.mov
>> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-qtrle.out.rawvideo
>> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
>> +1840ff45097f40041248f0b8def3be10 *tests/data/fate/vsynth3-qtrle.mov
>> +179758 tests/data/fate/vsynth3-qtrle.mov
>> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-qtrle.out.rawvideo
>> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
>> diff --git a/tests/ref/vsynth/vsynth3-rgb b/tests/ref/vsynth/vsynth3-rgb
>> index 1a882ce104..3225fb8203 100644
>> --- a/tests/ref/vsynth/vsynth3-rgb
>> +++ b/tests/ref/vsynth/vsynth3-rgb
>> @@ -1,4 +1,4 @@
>> -3e2909a69865eb88df72916c38d265de *tests/data/fate/vsynth3-rgb.avi
>> +4805cf50c8bc287e50123d796c6e5aa5 *tests/data/fate/vsynth3-rgb.avi
>> 183652 tests/data/fate/vsynth3-rgb.avi
>> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-rgb.out.rawvideo
>> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
>> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-rgb.out.rawvideo
>> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
>> diff --git a/tests/ref/vsynth/vsynth3-rpza b/tests/ref/vsynth/vsynth3-rpza
>> index c933a44c4b..cc8b244be4 100644
>> --- a/tests/ref/vsynth/vsynth3-rpza
>> +++ b/tests/ref/vsynth/vsynth3-rpza
>> @@ -1,4 +1,4 @@
>> 791ad5931c5d54eff406c639be0c79e2 *tests/data/fate/vsynth3-rpza.mov
>> 130493 tests/data/fate/vsynth3-rpza.mov
>> -19f61c34cbdef98b0f4aca6c19f59ed4 *tests/data/fate/vsynth3-rpza.out.rawvideo
>> -stddev:    4.35 PSNR: 35.35 MAXDIFF:   46 bytes:    86700/    86700
>> +42006d8675be53cb4bdfc77031e39f70 *tests/data/fate/vsynth3-rpza.out.rawvideo
>> +stddev:    4.71 PSNR: 34.65 MAXDIFF:   46 bytes:    86700/    86700
> [...]
>> diff --git a/tests/ref/vsynth/vsynth3-zlib b/tests/ref/vsynth/vsynth3-zlib
>> index 55d65f30e0..f26236b4ea 100644
>> --- a/tests/ref/vsynth/vsynth3-zlib
>> +++ b/tests/ref/vsynth/vsynth3-zlib
>> @@ -1,4 +1,4 @@
>> -d3705acfc90b16968d0d4a3ac56b049c *tests/data/fate/vsynth3-zlib.avi
>> -174882 tests/data/fate/vsynth3-zlib.avi
>> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-zlib.out.rawvideo
>> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
>> +b102ed61dc12da9afc830279bf0ad99f *tests/data/fate/vsynth3-zlib.avi
>> +178678 tests/data/fate/vsynth3-zlib.avi
>> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-zlib.out.rawvideo
>> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
> [...]
>> diff --git a/tests/ref/vsynth/vsynth_lena-mov-bgr24 b/tests/ref/vsynth/vsynth_lena-mov-bgr24
>> index 098dd91258..a38d5b2ade 100644
>> --- a/tests/ref/vsynth/vsynth_lena-mov-bgr24
>> +++ b/tests/ref/vsynth/vsynth_lena-mov-bgr24
>> @@ -1,4 +1,4 @@
>> -3656f10647727ff16119ad54e11ed09d *tests/data/fate/vsynth_lena-mov-bgr24.mov
>> +125bb862fddecefc2159bff751feca9c *tests/data/fate/vsynth_lena-mov-bgr24.mov
>> 15207169 tests/data/fate/vsynth_lena-mov-bgr24.mov
>> -98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-mov-bgr24.out.rawvideo
>> -stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
>> +726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-mov-bgr24.out.rawvideo
>> +stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
> [...]
>> diff --git a/tests/ref/vsynth/vsynth_lena-msvideo1 b/tests/ref/vsynth/vsynth_lena-msvideo1
>> index 4f7de4010d..a04e381eee 100644
>> --- a/tests/ref/vsynth/vsynth_lena-msvideo1
>> +++ b/tests/ref/vsynth/vsynth_lena-msvideo1
>> @@ -1,4 +1,4 @@
>> f2d42ddffd6546b6ca71bbb6e3b62c00 *tests/data/fate/vsynth_lena-msvideo1.avi
>> 914564 tests/data/fate/vsynth_lena-msvideo1.avi
>> -9a6ac7c0171286f009d159b59fdc1154 *tests/data/fate/vsynth_lena-msvideo1.out.rawvideo
>> -stddev:    7.97 PSNR: 30.10 MAXDIFF:  123 bytes:  7603200/  7603200
>> +7bfede936dbb69ed1799fe887bd2c9be *tests/data/fate/vsynth_lena-msvideo1.out.rawvideo
>> +stddev:    7.95 PSNR: 30.11 MAXDIFF:  123 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth_lena-qtrle b/tests/ref/vsynth/vsynth_lena-qtrle
>> index f426fe0ab6..0fc0e1d0da 100644
>> --- a/tests/ref/vsynth/vsynth_lena-qtrle
>> +++ b/tests/ref/vsynth/vsynth_lena-qtrle
>> @@ -1,4 +1,4 @@
>> -513ca7d64af25676f5f99f00e2287ced *tests/data/fate/vsynth_lena-qtrle.mov
>> -14798345 tests/data/fate/vsynth_lena-qtrle.mov
>> -98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-qtrle.out.rawvideo
>> -stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
>> +46eeb339a5875699e10b42b5307e558b *tests/data/fate/vsynth_lena-qtrle.mov
>> +15158084 tests/data/fate/vsynth_lena-qtrle.mov
>> +726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-qtrle.out.rawvideo
>> +stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
>> diff --git a/tests/ref/vsynth/vsynth_lena-rgb b/tests/ref/vsynth/vsynth_lena-rgb
>> index f3d232e76c..bdad1e1b18 100644
>> --- a/tests/ref/vsynth/vsynth_lena-rgb
>> +++ b/tests/ref/vsynth/vsynth_lena-rgb
>> @@ -1,4 +1,4 @@
>> -6ffbbd6939b3fe9f5dcf036ee46aad2d *tests/data/fate/vsynth_lena-rgb.avi
>> +e14e020266f730a3d1459ea497673c6a *tests/data/fate/vsynth_lena-rgb.avi
>> 15213252 tests/data/fate/vsynth_lena-rgb.avi
>> -98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-rgb.out.rawvideo
>> -stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
>> +726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-rgb.out.rawvideo
>> +stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
> [...]
>> diff --git a/tests/ref/vsynth/vsynth_lena-smc b/tests/ref/vsynth/vsynth_lena-smc
>> index 2f9f5c1e87..4ec3c7eb95 100644
>> --- a/tests/ref/vsynth/vsynth_lena-smc
>> +++ b/tests/ref/vsynth/vsynth_lena-smc
>> @@ -1,4 +1,4 @@
>> -037fa90a1ac659ff4dca22fb375dc7e1 *tests/data/fate/vsynth_lena-smc.mov
>> -3502732 tests/data/fate/vsynth_lena-smc.mov
>> -db453693ceae6f65c173dd716ee2662e *tests/data/fate/vsynth_lena-smc.out.rawvideo
>> -stddev:    8.07 PSNR: 29.99 MAXDIFF:   32 bytes:  7603200/  7603200
>> +094a941499269f9191239807d4d80e23 *tests/data/fate/vsynth_lena-smc.mov
>> +3713079 tests/data/fate/vsynth_lena-smc.mov
>> +32f11f7e0567b59d688268f296dd2994 *tests/data/fate/vsynth_lena-smc.out.rawvideo
>> +stddev:    7.01 PSNR: 31.21 MAXDIFF:   35 bytes:  7603200/  7603200
> 
> [...]
> 
> -- 
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
> 
> Whats the most studid thing your enemy could do ? Blow himself up
> Whats the most studid thing you could do ? Give up your rights and
> freedom because your enemy blew himself up.
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".


[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [FFmpeg-devel] [PATCH] swscale/options: use accurate rounding and full chroma by default
  2025-06-09 22:02   ` Ridley Combs via ffmpeg-devel
@ 2025-06-09 22:30     ` Michael Niedermayer
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Niedermayer @ 2025-06-09 22:30 UTC (permalink / raw)
  To: FFmpeg development discussions and patches


[-- Attachment #1.1: Type: text/plain, Size: 26178 bytes --]

Hi

On Mon, Jun 09, 2025 at 03:02:44PM -0700, Ridley Combs via ffmpeg-devel wrote:
> Date: Mon, 9 Jun 2025 15:02:44 -0700
> From: Ridley Combs <rcombs@rcombs.me>
> To: ffmpeg-devel <ffmpeg-devel@ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH] swscale/options: use accurate rounding and full chroma by default
> 
> 
> 
> > On Jun 9, 2025, at 05:17, Michael Niedermayer <michael@niedermayer.cc> wrote:
> > 
> > Hi
> > 
> > On Sun, Jun 08, 2025 at 04:52:35PM -0700, rcombs via ffmpeg-devel wrote:
> >> Date: Sun,  8 Jun 2025 16:52:35 -0700
> >> From: rcombs <rcombs@rcombs.me>
> >> To: ffmpeg-devel@ffmpeg.org
> >> Subject: [PATCH] swscale/options: use accurate rounding and full chroma by default
> >> 
> >> This has been causing quality degradation for people since the dawn of sws,
> >> and the performance concerns that originally led to this default have been
> >> soundly defeated by the march of time.
> >> ---
> > [...]
> > 
> > Do we know why the cases below become worse ?
> 
> I'm not sure; it seems like similar numbers of cases moved in each direction,

> and I'm kinda inclined to chalk it up to noise.

> It does look like a lot of them are cases where we round-trip yuv420 -> rgb -> yuv420, and it's possible that the current code path just happens to give better PSNR on that some of the time?

what if  yuv420 -> rgb -> yuv420 is repeated 10 times ? what if 100 ?
does this result in something that we can visually see ?
like darkening or shift of the image in one direction?
this could allow identifying the cause maybe

is it specific for 420 ? what about 422 or 444 ?
what about 10, 12 or 16 bit ?

Iam asking these questions because maybe theres a bug somewhere



>
> >
> >
> >> --- a/tests/ref/vsynth/vsynth1-jpeg2000
> >> +++ b/tests/ref/vsynth/vsynth1-jpeg2000
> >> @@ -1,4 +1,4 @@
> >> -95add005faf68fcf8f16e86eab079ca2 *tests/data/fate/vsynth1-jpeg2000.avi
> >> -2263192 tests/data/fate/vsynth1-jpeg2000.avi
> >> -b7f48a8965f78011c76483277befc6fc *tests/data/fate/vsynth1-jpeg2000.out.rawvideo
> >> -stddev:    5.35 PSNR: 33.56 MAXDIFF:   59 bytes:  7603200/  7603200
> >> +2ce46a92e9cc399b79c22534d8ae8350 *tests/data/fate/vsynth1-jpeg2000.avi
> >> +2250458 tests/data/fate/vsynth1-jpeg2000.avi
> >> +7980403710bc90ccb5c8d016581df711 *tests/data/fate/vsynth1-jpeg2000.out.rawvideo
> >> +stddev:    5.57 PSNR: 33.21 MAXDIFF:   54 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth1-jpeg2000-97 b/tests/ref/vsynth/vsynth1-jpeg2000-97
> >> index 820249c6c0..698b619442 100644
> >> --- a/tests/ref/vsynth/vsynth1-jpeg2000-97
> >> +++ b/tests/ref/vsynth/vsynth1-jpeg2000-97
> >> @@ -1,4 +1,4 @@
> >> -803c2e8a4d054c5d603eed4c77abe492 *tests/data/fate/vsynth1-jpeg2000-97.avi
> >> -4466514 tests/data/fate/vsynth1-jpeg2000-97.avi
> >> -c9cf5a4580f10b00056c8d8731d21395 *tests/data/fate/vsynth1-jpeg2000-97.out.rawvideo
> >> -stddev:    3.82 PSNR: 36.49 MAXDIFF:   49 bytes:  7603200/  7603200
> >> +558aede84e4792596595dfa15729c730 *tests/data/fate/vsynth1-jpeg2000-97.avi
> >> +4303250 tests/data/fate/vsynth1-jpeg2000-97.avi
> >> +a1ff0cdd46f6f3ed2646fd47874aa405 *tests/data/fate/vsynth1-jpeg2000-97.out.rawvideo
> >> +stddev:    4.08 PSNR: 35.90 MAXDIFF:   48 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12 b/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12
> >> index 0c6d47778f..8d15116b0b 100644
> >> --- a/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12
> >> +++ b/tests/ref/vsynth/vsynth1-jpeg2000-gbrp12
> >> @@ -1,4 +1,4 @@
> >> 78b35a445001d2879386fdad16a2f0be *tests/data/fate/vsynth1-jpeg2000-gbrp12.avi
> >> 8163968 tests/data/fate/vsynth1-jpeg2000-gbrp12.avi
> >> -e934632ff63a00b4f2c9b3061f9c410e *tests/data/fate/vsynth1-jpeg2000-gbrp12.out.rawvideo
> >> -stddev:    3.51 PSNR: 37.21 MAXDIFF:   43 bytes:  7603200/  7603200
> >> +d8969ef75c8ba574512730b5e9bea980 *tests/data/fate/vsynth1-jpeg2000-gbrp12.out.rawvideo
> >> +stddev:    3.71 PSNR: 36.72 MAXDIFF:   47 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth1-mov-bgr24 b/tests/ref/vsynth/vsynth1-mov-bgr24
> >> index 6639d0d544..0c6a8461ae 100644
> >> --- a/tests/ref/vsynth/vsynth1-mov-bgr24
> >> +++ b/tests/ref/vsynth/vsynth1-mov-bgr24
> >> @@ -1,4 +1,4 @@
> >> -ba9d5cbc4b432db076fb501b1d5fa536 *tests/data/fate/vsynth1-mov-bgr24.mov
> >> +87c924fb0a492bebfbb2afc594414efa *tests/data/fate/vsynth1-mov-bgr24.mov
> >> 15207169 tests/data/fate/vsynth1-mov-bgr24.mov
> >> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-mov-bgr24.out.rawvideo
> >> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
> >> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-mov-bgr24.out.rawvideo
> >> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth1-mov-bpp15 b/tests/ref/vsynth/vsynth1-mov-bpp15
> >> index d42c40b19a..ee50a2a896 100644
> >> --- a/tests/ref/vsynth/vsynth1-mov-bpp15
> >> +++ b/tests/ref/vsynth/vsynth1-mov-bpp15
> >> @@ -1,4 +1,4 @@
> >> dfd88a906ae74dddd4caf3c455224fa3 *tests/data/fate/vsynth1-mov-bpp15.mov
> >> 10138329 tests/data/fate/vsynth1-mov-bpp15.mov
> >> -99bece160cfb0da47f446b60d42fa3ae *tests/data/fate/vsynth1-mov-bpp15.out.rawvideo
> >> -stddev:    4.06 PSNR: 35.94 MAXDIFF:   47 bytes:  7603200/  7603200
> >> +23d89c693d78c049c6029c1e70b37e6f *tests/data/fate/vsynth1-mov-bpp15.out.rawvideo
> >> +stddev:    4.37 PSNR: 35.31 MAXDIFF:   47 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth1-mov-bpp16 b/tests/ref/vsynth/vsynth1-mov-bpp16
> >> index bdafbf14ce..32cbf60854 100644
> >> --- a/tests/ref/vsynth/vsynth1-mov-bpp16
> >> +++ b/tests/ref/vsynth/vsynth1-mov-bpp16
> >> @@ -1,4 +1,4 @@
> >> 3d7e3f8bd238c341b0b4d55a30d8f5a2 *tests/data/fate/vsynth1-mov-bpp16.mov
> >> 10138329 tests/data/fate/vsynth1-mov-bpp16.mov
> >> -0cea382b9b0a4ce88260c1edc20b3f5b *tests/data/fate/vsynth1-mov-bpp16.out.rawvideo
> >> -stddev:    3.79 PSNR: 36.55 MAXDIFF:   46 bytes:  7603200/  7603200
> >> +efa9a6c6e5c7dd60703b1af19192a838 *tests/data/fate/vsynth1-mov-bpp16.out.rawvideo
> >> +stddev:    4.11 PSNR: 35.84 MAXDIFF:   46 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth1-mpng b/tests/ref/vsynth/vsynth1-mpng
> >> index 64f2f2d4a1..5eea00546d 100644
> >> --- a/tests/ref/vsynth/vsynth1-mpng
> >> +++ b/tests/ref/vsynth/vsynth1-mpng
> >> @@ -1,4 +1,4 @@
> >> -40e37e28a693ada8605ea24dce8c2420 *tests/data/fate/vsynth1-mpng.avi
> >> -7658772 tests/data/fate/vsynth1-mpng.avi
> >> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-mpng.out.rawvideo
> >> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
> >> +5eaacc54fdb23eb50bb22b65e0f26fd8 *tests/data/fate/vsynth1-mpng.avi
> >> +7954812 tests/data/fate/vsynth1-mpng.avi
> >> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-mpng.out.rawvideo
> >> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth1-msrle b/tests/ref/vsynth/vsynth1-msrle
> >> index 6174ff57f8..aab56f5cfb 100644
> > [...]
> >> --- a/tests/ref/vsynth/vsynth1-msvideo1
> >> +++ b/tests/ref/vsynth/vsynth1-msvideo1
> >> @@ -1,4 +1,4 @@
> >> 41c8ec9813bb32831c4cf279677e631b *tests/data/fate/vsynth1-msvideo1.avi
> >> 2051896 tests/data/fate/vsynth1-msvideo1.avi
> >> -f4605ac6df556a3ca7053c49aaac04d8 *tests/data/fate/vsynth1-msvideo1.out.rawvideo
> >> -stddev:   11.89 PSNR: 26.62 MAXDIFF:  159 bytes:  7603200/  7603200
> >> +c98e5f57cb9c679fca30e2c7780a1f17 *tests/data/fate/vsynth1-msvideo1.out.rawvideo
> >> +stddev:   11.96 PSNR: 26.57 MAXDIFF:  159 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth1-qtrle b/tests/ref/vsynth/vsynth1-qtrle
> >> index 02164ddb92..ab74718308 100644
> >> --- a/tests/ref/vsynth/vsynth1-qtrle
> >> +++ b/tests/ref/vsynth/vsynth1-qtrle
> >> @@ -1,4 +1,4 @@
> >> -fb84d62fc821cf063b5877c61b975e62 *tests/data/fate/vsynth1-qtrle.mov
> >> -15263158 tests/data/fate/vsynth1-qtrle.mov
> >> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-qtrle.out.rawvideo
> >> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
> >> +4672582331e5d2453ea58864fc7352e2 *tests/data/fate/vsynth1-qtrle.mov
> >> +15279123 tests/data/fate/vsynth1-qtrle.mov
> >> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-qtrle.out.rawvideo
> >> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth1-rgb b/tests/ref/vsynth/vsynth1-rgb
> >> index 6d9629b5e9..a82083c40a 100644
> >> --- a/tests/ref/vsynth/vsynth1-rgb
> >> +++ b/tests/ref/vsynth/vsynth1-rgb
> >> @@ -1,4 +1,4 @@
> >> -9d2bd1fa569a803c41b5dc5dd03f088e *tests/data/fate/vsynth1-rgb.avi
> >> +5479c9edf9ebb30ba82a8a38ddbcce1e *tests/data/fate/vsynth1-rgb.avi
> >> 15213252 tests/data/fate/vsynth1-rgb.avi
> >> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-rgb.out.rawvideo
> >> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
> >> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-rgb.out.rawvideo
> >> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth1-rpza b/tests/ref/vsynth/vsynth1-rpza
> >> index b238b245d3..3731f1d524 100644
> >> --- a/tests/ref/vsynth/vsynth1-rpza
> >> +++ b/tests/ref/vsynth/vsynth1-rpza
> >> @@ -1,4 +1,4 @@
> >> e4e9660c4a13709b277aac42419b9a23 *tests/data/fate/vsynth1-rpza.mov
> >> 10138529 tests/data/fate/vsynth1-rpza.mov
> >> -99bece160cfb0da47f446b60d42fa3ae *tests/data/fate/vsynth1-rpza.out.rawvideo
> >> -stddev:    4.06 PSNR: 35.94 MAXDIFF:   47 bytes:  7603200/  7603200
> >> +23d89c693d78c049c6029c1e70b37e6f *tests/data/fate/vsynth1-rpza.out.rawvideo
> >> +stddev:    4.37 PSNR: 35.31 MAXDIFF:   47 bytes:  7603200/  7603200
> > [...]
> >> diff --git a/tests/ref/vsynth/vsynth1-zlib b/tests/ref/vsynth/vsynth1-zlib
> >> index 419c6a6b3a..cbed901aca 100644
> >> --- a/tests/ref/vsynth/vsynth1-zlib
> >> +++ b/tests/ref/vsynth/vsynth1-zlib
> >> @@ -1,4 +1,4 @@
> >> -fd44e7bf6322f4be46f4f0dada728849 *tests/data/fate/vsynth1-zlib.avi
> >> -12108636 tests/data/fate/vsynth1-zlib.avi
> >> -93695a27c24a61105076ca7b1f010bbd *tests/data/fate/vsynth1-zlib.out.rawvideo
> >> -stddev:    3.42 PSNR: 37.44 MAXDIFF:   48 bytes:  7603200/  7603200
> >> +96871637623fbe316e265d68d5fa3149 *tests/data/fate/vsynth1-zlib.avi
> >> +12692390 tests/data/fate/vsynth1-zlib.avi
> >> +36e56ffc4ef51b8185a8b04c7a756c3e *tests/data/fate/vsynth1-zlib.out.rawvideo
> >> +stddev:    3.72 PSNR: 36.71 MAXDIFF:   48 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth2-bpp15 b/tests/ref/vsynth/vsynth2-bpp15
> >> index 9236c25b95..af20f47de0 100644
> > [...]
> >> --- a/tests/ref/vsynth/vsynth2-cinepak
> >> +++ b/tests/ref/vsynth/vsynth2-cinepak
> >> @@ -1,4 +1,4 @@
> >> -675d6a4370c315dc53c219a9271be4c6 *tests/data/fate/vsynth2-cinepak.avi
> >> -400720 tests/data/fate/vsynth2-cinepak.avi
> >> -cbf6900b882b484bc531f9b4799c226e *tests/data/fate/vsynth2-cinepak.out.rawvideo
> >> -stddev:   80.96 PSNR:  9.96 MAXDIFF:  229 bytes:  7603200/   921600
> >> +c6e2df6fa59e754c081be80af0de28d2 *tests/data/fate/vsynth2-cinepak.avi
> >> +400184 tests/data/fate/vsynth2-cinepak.avi
> >> +47bce92dcbf5eae5b2f21db623d25df0 *tests/data/fate/vsynth2-cinepak.out.rawvideo
> >> +stddev:   81.04 PSNR:  9.96 MAXDIFF:  228 bytes:  7603200/   921600
> >> diff --git a/tests/ref/vsynth/vsynth2-jpeg2000 b/tests/ref/vsynth/vsynth2-jpeg2000
> >> index b60307d5da..1fe086ec4c 100644
> >> --- a/tests/ref/vsynth/vsynth2-jpeg2000
> >> +++ b/tests/ref/vsynth/vsynth2-jpeg2000
> >> @@ -1,4 +1,4 @@
> >> -bfe90391779a02319aab98b06dd18e6c *tests/data/fate/vsynth2-jpeg2000.avi
> >> -1538724 tests/data/fate/vsynth2-jpeg2000.avi
> >> -64fadc87447268cf90503cb294db7f61 *tests/data/fate/vsynth2-jpeg2000.out.rawvideo
> >> -stddev:    4.91 PSNR: 34.29 MAXDIFF:   55 bytes:  7603200/  7603200
> >> +3b01582597c20714fc916bdb4379a2f7 *tests/data/fate/vsynth2-jpeg2000.avi
> >> +1519794 tests/data/fate/vsynth2-jpeg2000.avi
> >> +e412aa6545900abcfad0f9e45a00689d *tests/data/fate/vsynth2-jpeg2000.out.rawvideo
> >> +stddev:    4.92 PSNR: 34.29 MAXDIFF:   56 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth2-jpeg2000-97 b/tests/ref/vsynth/vsynth2-jpeg2000-97
> >> index e40dca5b9a..ccef53a7e4 100644
> > [...]
> >> diff --git a/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12 b/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12
> >> index fad6af5741..22259fd154 100644
> >> --- a/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12
> >> +++ b/tests/ref/vsynth/vsynth2-jpeg2000-gbrp12
> >> @@ -1,4 +1,4 @@
> >> 3b20090f3d1f8804789c0dfdc68049fb *tests/data/fate/vsynth2-jpeg2000-gbrp12.avi
> >> 8484786 tests/data/fate/vsynth2-jpeg2000-gbrp12.avi
> >> -44c4232da8e05ce034558ee1c5899e0a *tests/data/fate/vsynth2-jpeg2000-gbrp12.out.rawvideo
> >> -stddev:    1.23 PSNR: 46.30 MAXDIFF:   14 bytes:  7603200/  7603200
> >> +df854504d00e02e0ee5ff235a8f95e04 *tests/data/fate/vsynth2-jpeg2000-gbrp12.out.rawvideo
> >> +stddev:    1.25 PSNR: 46.18 MAXDIFF:   14 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth2-mov-bgr24 b/tests/ref/vsynth/vsynth2-mov-bgr24
> >> index 1db6aee655..0543b6e6b8 100644
> > [...]
> >> --- a/tests/ref/vsynth/vsynth2-mov-bpp15
> >> +++ b/tests/ref/vsynth/vsynth2-mov-bpp15
> >> @@ -1,4 +1,4 @@
> >> a004683db50f49520abd74479b25cbd1 *tests/data/fate/vsynth2-mov-bpp15.mov
> >> 10138329 tests/data/fate/vsynth2-mov-bpp15.mov
> >> -eb3f0c974ed17ede7cd3ce30ce417d8d *tests/data/fate/vsynth2-mov-bpp15.out.rawvideo
> >> -stddev:    2.81 PSNR: 39.14 MAXDIFF:   19 bytes:  7603200/  7603200
> >> +33c4e41a4e5594988dd8972becac3924 *tests/data/fate/vsynth2-mov-bpp15.out.rawvideo
> >> +stddev:    2.82 PSNR: 39.12 MAXDIFF:   19 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth2-mov-bpp16 b/tests/ref/vsynth/vsynth2-mov-bpp16
> >> index f7f40c58c1..0d6bc84a0c 100644
> > [...]
> >> diff --git a/tests/ref/vsynth/vsynth3-jpeg2000 b/tests/ref/vsynth/vsynth3-jpeg2000
> >> index 894dba27dc..53f4a761de 100644
> >> --- a/tests/ref/vsynth/vsynth3-jpeg2000
> >> +++ b/tests/ref/vsynth/vsynth3-jpeg2000
> >> @@ -1,4 +1,4 @@
> >> -1d039969504abdc143b410f99b5f9171 *tests/data/fate/vsynth3-jpeg2000.avi
> >> -67354 tests/data/fate/vsynth3-jpeg2000.avi
> >> -098f5980667e1fcd50452b1dc1a74f61 *tests/data/fate/vsynth3-jpeg2000.out.rawvideo
> >> -stddev:    5.47 PSNR: 33.36 MAXDIFF:   48 bytes:    86700/    86700
> >> +a0d55800efe98237feb895009aefe2e3 *tests/data/fate/vsynth3-jpeg2000.avi
> >> +67216 tests/data/fate/vsynth3-jpeg2000.avi
> >> +61cd335039efc6f5c4f9e731fb867ee6 *tests/data/fate/vsynth3-jpeg2000.out.rawvideo
> >> +stddev:    5.84 PSNR: 32.80 MAXDIFF:   50 bytes:    86700/    86700
> > [...]
> >> diff --git a/tests/ref/vsynth/vsynth3-mov-bgr24 b/tests/ref/vsynth/vsynth3-mov-bgr24
> >> index 4fc3cc979f..be1dca4070 100644
> >> --- a/tests/ref/vsynth/vsynth3-mov-bgr24
> >> +++ b/tests/ref/vsynth/vsynth3-mov-bgr24
> >> @@ -1,4 +1,4 @@
> >> -0141cd3b6e8eea836d392adf6949afc4 *tests/data/fate/vsynth3-mov-bgr24.mov
> >> +5a02329343cdde447ebcaf3391f0db1d *tests/data/fate/vsynth3-mov-bgr24.mov
> >> 174093 tests/data/fate/vsynth3-mov-bgr24.mov
> >> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-mov-bgr24.out.rawvideo
> >> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
> >> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-mov-bgr24.out.rawvideo
> >> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
> >> diff --git a/tests/ref/vsynth/vsynth3-mov-bpp15 b/tests/ref/vsynth/vsynth3-mov-bpp15
> >> index 4c289cf161..5d41c08f64 100644
> >> --- a/tests/ref/vsynth/vsynth3-mov-bpp15
> >> +++ b/tests/ref/vsynth/vsynth3-mov-bpp15
> >> @@ -1,4 +1,4 @@
> >> 96e1406b041b16e9598092d928ea9d3e *tests/data/fate/vsynth3-mov-bpp15.mov
> >> 116293 tests/data/fate/vsynth3-mov-bpp15.mov
> >> -19f61c34cbdef98b0f4aca6c19f59ed4 *tests/data/fate/vsynth3-mov-bpp15.out.rawvideo
> >> -stddev:    4.35 PSNR: 35.35 MAXDIFF:   46 bytes:    86700/    86700
> >> +42006d8675be53cb4bdfc77031e39f70 *tests/data/fate/vsynth3-mov-bpp15.out.rawvideo
> >> +stddev:    4.71 PSNR: 34.65 MAXDIFF:   46 bytes:    86700/    86700
> >> diff --git a/tests/ref/vsynth/vsynth3-mov-bpp16 b/tests/ref/vsynth/vsynth3-mov-bpp16
> >> index 55537d4bfd..2a95c6f504 100644
> >> --- a/tests/ref/vsynth/vsynth3-mov-bpp16
> >> +++ b/tests/ref/vsynth/vsynth3-mov-bpp16
> >> @@ -1,4 +1,4 @@
> >> 65b51e9a83da767fae244fd6816f2bc7 *tests/data/fate/vsynth3-mov-bpp16.mov
> >> 116293 tests/data/fate/vsynth3-mov-bpp16.mov
> >> -756f68dd5412d245d4bbeda7b5d51829 *tests/data/fate/vsynth3-mov-bpp16.out.rawvideo
> >> -stddev:    4.07 PSNR: 35.93 MAXDIFF:   46 bytes:    86700/    86700
> >> +685ab3882e155c5f2a5c1716089a0435 *tests/data/fate/vsynth3-mov-bpp16.out.rawvideo
> >> +stddev:    4.45 PSNR: 35.16 MAXDIFF:   46 bytes:    86700/    86700
> >> diff --git a/tests/ref/vsynth/vsynth3-mpng b/tests/ref/vsynth/vsynth3-mpng
> >> index 2948b50763..0716f9abfa 100644
> >> --- a/tests/ref/vsynth/vsynth3-mpng
> >> +++ b/tests/ref/vsynth/vsynth3-mpng
> >> @@ -1,4 +1,4 @@
> >> -28177b90f3b5a90043f11dc14b84f3f0 *tests/data/fate/vsynth3-mpng.avi
> >> -132202 tests/data/fate/vsynth3-mpng.avi
> >> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-mpng.out.rawvideo
> >> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
> >> +dbdf75517de7429576be3feac44e65a2 *tests/data/fate/vsynth3-mpng.avi
> >> +138628 tests/data/fate/vsynth3-mpng.avi
> >> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-mpng.out.rawvideo
> >> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
> > [...]
> >> diff --git a/tests/ref/vsynth/vsynth3-qtrle b/tests/ref/vsynth/vsynth3-qtrle
> >> index 2056e1b7e2..9bf29b8c89 100644
> >> --- a/tests/ref/vsynth/vsynth3-qtrle
> >> +++ b/tests/ref/vsynth/vsynth3-qtrle
> >> @@ -1,4 +1,4 @@
> >> -b9152e4c2931818140086903c9d9a8ae *tests/data/fate/vsynth3-qtrle.mov
> >> -179656 tests/data/fate/vsynth3-qtrle.mov
> >> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-qtrle.out.rawvideo
> >> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
> >> +1840ff45097f40041248f0b8def3be10 *tests/data/fate/vsynth3-qtrle.mov
> >> +179758 tests/data/fate/vsynth3-qtrle.mov
> >> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-qtrle.out.rawvideo
> >> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
> >> diff --git a/tests/ref/vsynth/vsynth3-rgb b/tests/ref/vsynth/vsynth3-rgb
> >> index 1a882ce104..3225fb8203 100644
> >> --- a/tests/ref/vsynth/vsynth3-rgb
> >> +++ b/tests/ref/vsynth/vsynth3-rgb
> >> @@ -1,4 +1,4 @@
> >> -3e2909a69865eb88df72916c38d265de *tests/data/fate/vsynth3-rgb.avi
> >> +4805cf50c8bc287e50123d796c6e5aa5 *tests/data/fate/vsynth3-rgb.avi
> >> 183652 tests/data/fate/vsynth3-rgb.avi
> >> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-rgb.out.rawvideo
> >> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
> >> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-rgb.out.rawvideo
> >> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
> >> diff --git a/tests/ref/vsynth/vsynth3-rpza b/tests/ref/vsynth/vsynth3-rpza
> >> index c933a44c4b..cc8b244be4 100644
> >> --- a/tests/ref/vsynth/vsynth3-rpza
> >> +++ b/tests/ref/vsynth/vsynth3-rpza
> >> @@ -1,4 +1,4 @@
> >> 791ad5931c5d54eff406c639be0c79e2 *tests/data/fate/vsynth3-rpza.mov
> >> 130493 tests/data/fate/vsynth3-rpza.mov
> >> -19f61c34cbdef98b0f4aca6c19f59ed4 *tests/data/fate/vsynth3-rpza.out.rawvideo
> >> -stddev:    4.35 PSNR: 35.35 MAXDIFF:   46 bytes:    86700/    86700
> >> +42006d8675be53cb4bdfc77031e39f70 *tests/data/fate/vsynth3-rpza.out.rawvideo
> >> +stddev:    4.71 PSNR: 34.65 MAXDIFF:   46 bytes:    86700/    86700
> > [...]
> >> diff --git a/tests/ref/vsynth/vsynth3-zlib b/tests/ref/vsynth/vsynth3-zlib
> >> index 55d65f30e0..f26236b4ea 100644
> >> --- a/tests/ref/vsynth/vsynth3-zlib
> >> +++ b/tests/ref/vsynth/vsynth3-zlib
> >> @@ -1,4 +1,4 @@
> >> -d3705acfc90b16968d0d4a3ac56b049c *tests/data/fate/vsynth3-zlib.avi
> >> -174882 tests/data/fate/vsynth3-zlib.avi
> >> -693aff10c094f8bd31693f74cf79d2b2 *tests/data/fate/vsynth3-zlib.out.rawvideo
> >> -stddev:    3.67 PSNR: 36.82 MAXDIFF:   43 bytes:    86700/    86700
> >> +b102ed61dc12da9afc830279bf0ad99f *tests/data/fate/vsynth3-zlib.avi
> >> +178678 tests/data/fate/vsynth3-zlib.avi
> >> +d34aec2dfd3d5ff04fd36841684b1249 *tests/data/fate/vsynth3-zlib.out.rawvideo
> >> +stddev:    4.09 PSNR: 35.89 MAXDIFF:   48 bytes:    86700/    86700
> > [...]
> >> diff --git a/tests/ref/vsynth/vsynth_lena-mov-bgr24 b/tests/ref/vsynth/vsynth_lena-mov-bgr24
> >> index 098dd91258..a38d5b2ade 100644
> >> --- a/tests/ref/vsynth/vsynth_lena-mov-bgr24
> >> +++ b/tests/ref/vsynth/vsynth_lena-mov-bgr24
> >> @@ -1,4 +1,4 @@
> >> -3656f10647727ff16119ad54e11ed09d *tests/data/fate/vsynth_lena-mov-bgr24.mov
> >> +125bb862fddecefc2159bff751feca9c *tests/data/fate/vsynth_lena-mov-bgr24.mov
> >> 15207169 tests/data/fate/vsynth_lena-mov-bgr24.mov
> >> -98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-mov-bgr24.out.rawvideo
> >> -stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
> >> +726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-mov-bgr24.out.rawvideo
> >> +stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
> > [...]
> >> diff --git a/tests/ref/vsynth/vsynth_lena-msvideo1 b/tests/ref/vsynth/vsynth_lena-msvideo1
> >> index 4f7de4010d..a04e381eee 100644
> >> --- a/tests/ref/vsynth/vsynth_lena-msvideo1
> >> +++ b/tests/ref/vsynth/vsynth_lena-msvideo1
> >> @@ -1,4 +1,4 @@
> >> f2d42ddffd6546b6ca71bbb6e3b62c00 *tests/data/fate/vsynth_lena-msvideo1.avi
> >> 914564 tests/data/fate/vsynth_lena-msvideo1.avi
> >> -9a6ac7c0171286f009d159b59fdc1154 *tests/data/fate/vsynth_lena-msvideo1.out.rawvideo
> >> -stddev:    7.97 PSNR: 30.10 MAXDIFF:  123 bytes:  7603200/  7603200
> >> +7bfede936dbb69ed1799fe887bd2c9be *tests/data/fate/vsynth_lena-msvideo1.out.rawvideo
> >> +stddev:    7.95 PSNR: 30.11 MAXDIFF:  123 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth_lena-qtrle b/tests/ref/vsynth/vsynth_lena-qtrle
> >> index f426fe0ab6..0fc0e1d0da 100644
> >> --- a/tests/ref/vsynth/vsynth_lena-qtrle
> >> +++ b/tests/ref/vsynth/vsynth_lena-qtrle
> >> @@ -1,4 +1,4 @@
> >> -513ca7d64af25676f5f99f00e2287ced *tests/data/fate/vsynth_lena-qtrle.mov
> >> -14798345 tests/data/fate/vsynth_lena-qtrle.mov
> >> -98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-qtrle.out.rawvideo
> >> -stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
> >> +46eeb339a5875699e10b42b5307e558b *tests/data/fate/vsynth_lena-qtrle.mov
> >> +15158084 tests/data/fate/vsynth_lena-qtrle.mov
> >> +726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-qtrle.out.rawvideo
> >> +stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
> >> diff --git a/tests/ref/vsynth/vsynth_lena-rgb b/tests/ref/vsynth/vsynth_lena-rgb
> >> index f3d232e76c..bdad1e1b18 100644
> >> --- a/tests/ref/vsynth/vsynth_lena-rgb
> >> +++ b/tests/ref/vsynth/vsynth_lena-rgb
> >> @@ -1,4 +1,4 @@
> >> -6ffbbd6939b3fe9f5dcf036ee46aad2d *tests/data/fate/vsynth_lena-rgb.avi
> >> +e14e020266f730a3d1459ea497673c6a *tests/data/fate/vsynth_lena-rgb.avi
> >> 15213252 tests/data/fate/vsynth_lena-rgb.avi
> >> -98d0e2854731472c5bf13d8638502d0a *tests/data/fate/vsynth_lena-rgb.out.rawvideo
> >> -stddev:    1.26 PSNR: 46.10 MAXDIFF:   13 bytes:  7603200/  7603200
> >> +726ef0c2868fe411e282ee0f443cf57b *tests/data/fate/vsynth_lena-rgb.out.rawvideo
> >> +stddev:    0.74 PSNR: 50.70 MAXDIFF:   12 bytes:  7603200/  7603200
> > [...]
> >> diff --git a/tests/ref/vsynth/vsynth_lena-smc b/tests/ref/vsynth/vsynth_lena-smc
> >> index 2f9f5c1e87..4ec3c7eb95 100644
> >> --- a/tests/ref/vsynth/vsynth_lena-smc
> >> +++ b/tests/ref/vsynth/vsynth_lena-smc
> >> @@ -1,4 +1,4 @@
> >> -037fa90a1ac659ff4dca22fb375dc7e1 *tests/data/fate/vsynth_lena-smc.mov
> >> -3502732 tests/data/fate/vsynth_lena-smc.mov
> >> -db453693ceae6f65c173dd716ee2662e *tests/data/fate/vsynth_lena-smc.out.rawvideo
> >> -stddev:    8.07 PSNR: 29.99 MAXDIFF:   32 bytes:  7603200/  7603200
> >> +094a941499269f9191239807d4d80e23 *tests/data/fate/vsynth_lena-smc.mov
> >> +3713079 tests/data/fate/vsynth_lena-smc.mov
> >> +32f11f7e0567b59d688268f296dd2994 *tests/data/fate/vsynth_lena-smc.out.rawvideo
> >> +stddev:    7.01 PSNR: 31.21 MAXDIFF:   35 bytes:  7603200/  7603200
> >
> > [...]
> >
> > --
> > Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
> >
> > Whats the most studid thing your enemy could do ? Blow himself up
> > Whats the most studid thing you could do ? Give up your rights and
> > freedom because your enemy blew himself up.
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>

> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".


-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If the United States is serious about tackling the national security threats 
related to an insecure 5G network, it needs to rethink the extent to which it
values corporate profits and government espionage over security.-Bruce Schneier

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [FFmpeg-devel] [PATCH] swscale/options: use accurate rounding and full chroma by default
@ 2025-06-08 21:23 rcombs via ffmpeg-devel
  0 siblings, 0 replies; 5+ messages in thread
From: rcombs via ffmpeg-devel @ 2025-06-08 21:23 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: rcombs

[-- Attachment #1: Type: message/rfc822, Size: 5937 bytes --]

From: rcombs <rcombs@rcombs.me>
To: ffmpeg-devel@ffmpeg.org
Subject: [PATCH] swscale/options: use accurate rounding and full chroma by default
Date: Sun,  8 Jun 2025 14:23:40 -0700
Message-ID: <20250608212340.37328-1-rcombs@rcombs.me>

This has been causing quality degradation for people since the dawn of sws,
and the performance concerns that originally led to this default have been
soundly defeated by the march of time.
---
 doc/APIchanges       | 3 +++
 libswscale/options.c | 4 +++-
 libswscale/version.h | 2 +-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/doc/APIchanges b/doc/APIchanges
index 91710bb27d..6d81048e48 100644
--- a/doc/APIchanges
+++ b/doc/APIchanges
@@ -2,6 +2,9 @@ The last version increases of all libraries were on 2025-03-28
 
 API changes, most recent first:
 
+2024-12-xx - xxxxxxxxxx - lsws 9.0.101 - swscale.h
+  Use accurate rounding and full chroma by default.
+
 2025-05-21 - xxxxxxxxxx - lavu 60.3.100 - avassert.h
   Add av_unreachable() and av_assume() macros.
 
diff --git a/libswscale/options.c b/libswscale/options.c
index feecae8c89..7d29a416cb 100644
--- a/libswscale/options.c
+++ b/libswscale/options.c
@@ -31,8 +31,10 @@ static const char *sws_context_to_name(void *ptr)
 #define DEFAULT 0
 #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 
+#define DEFAULT_FLAGS SWS_BICUBIC | SWS_ACCURATE_RND | SWS_FULL_CHR_H_INT | SWS_FULL_CHR_H_INP
+
 static const AVOption swscale_options[] = {
-    { "sws_flags",           "swscale flags",     OFFSET(flags),  AV_OPT_TYPE_FLAGS, { .i64 = SWS_BICUBIC        }, .flags = VE, .unit = "sws_flags", .max = UINT_MAX },
+    { "sws_flags",           "swscale flags",     OFFSET(flags),  AV_OPT_TYPE_FLAGS, { .i64 = DEFAULT_FLAGS      }, .flags = VE, .unit = "sws_flags", .max = UINT_MAX },
         { "fast_bilinear",   "fast bilinear",                 0,  AV_OPT_TYPE_CONST, { .i64 = SWS_FAST_BILINEAR  }, .flags = VE, .unit = "sws_flags" },
         { "bilinear",        "bilinear",                      0,  AV_OPT_TYPE_CONST, { .i64 = SWS_BILINEAR       }, .flags = VE, .unit = "sws_flags" },
         { "bicubic",         "bicubic",                       0,  AV_OPT_TYPE_CONST, { .i64 = SWS_BICUBIC        }, .flags = VE, .unit = "sws_flags" },
diff --git a/libswscale/version.h b/libswscale/version.h
index 148efd83eb..02baedad5b 100644
--- a/libswscale/version.h
+++ b/libswscale/version.h
@@ -29,7 +29,7 @@
 #include "version_major.h"
 
 #define LIBSWSCALE_VERSION_MINOR   0
-#define LIBSWSCALE_VERSION_MICRO 100
+#define LIBSWSCALE_VERSION_MICRO 101
 
 #define LIBSWSCALE_VERSION_INT  AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
                                                LIBSWSCALE_VERSION_MINOR, \
-- 
2.45.1


[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-09 22:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-08 23:52 [FFmpeg-devel] [PATCH] swscale/options: use accurate rounding and full chroma by default rcombs via ffmpeg-devel
2025-06-09 12:17 ` Michael Niedermayer
2025-06-09 22:02   ` Ridley Combs via ffmpeg-devel
2025-06-09 22:30     ` Michael Niedermayer
  -- strict thread matches above, loose matches on Subject: below --
2025-06-08 21:23 rcombs via ffmpeg-devel

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git