From: Carl Hetherington Date: Mon, 29 Jan 2024 11:41:29 +0000 (+0100) Subject: Fix flipped red and blue with rgba64_onto_* tests. X-Git-Tag: v2.16.74~7 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=3e00fd464bcd7e20fd2aa66508c249b42196da0f;p=dcpomatic.git Fix flipped red and blue with rgba64_onto_* tests. --- diff --git a/test/image_test.cc b/test/image_test.cc index 899961f50..4f4520a51 100644 --- a/test/image_test.cc +++ b/test/image_test.cc @@ -203,7 +203,7 @@ alpha_blend_test_rgba64be_onto(AVPixelFormat format, string suffix) for (int y = 0; y < 128; ++y) { auto p = reinterpret_cast(overlay->data()[0] + y * overlay->stride()[0]); for (int x = 0; x < 128; ++x) { - p[x * 4 + 2] = 65535; + p[x * 4 + 0] = 65535; p[x * 4 + 3] = 65535; } } @@ -219,7 +219,7 @@ alpha_blend_test_rgba64be_onto(AVPixelFormat format, string suffix) for (int y = 256; y < 384; ++y) { auto p = reinterpret_cast(overlay->data()[0] + y * overlay->stride()[0]); for (int x = 0; x < 128; ++x) { - p[x * 4] = 65535; + p[x * 4 + 2] = 65535; p[x * 4 + 3] = 65535; } }