From 45d58cc268e2f79d7e319e988afee6c71c16a984 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Sat, 23 Sep 2023 14:57:47 +0200 Subject: [PATCH] test_save: Update crcs for jxl saver (libjxl 0.8.0) Also add a couple of missing ifdefs. --- test/test_save.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/test/test_save.cpp b/test/test_save.cpp index c984a05..87355d3 100644 --- a/test/test_save.cpp +++ b/test/test_save.cpp @@ -3,6 +3,9 @@ #include "config.h" #include #include +#ifdef BUILD_JXL_LOADER +#include +#endif #include "test.h" @@ -26,12 +29,24 @@ static const test_rec_t exts[] = { // { "ico", { 0, 0 } }, // { "id3", { 0, 0 } }, // { "j2k", { 0, 0 } }, +#ifdef BUILD_JPEG_LOADER { "jpeg", { 2458451111, 3483232328 } }, +#endif +#ifdef BUILD_JXL_LOADER +#if JPEGXL_NUMERIC_VERSION >= JPEGXL_COMPUTE_NUMERIC_VERSION(0, 8, 0) +#ifdef __i386__ + { "jxl", { 4232124886, 2621968888 } }, +#else + { "jxl", { 4232124886, 1010978750 } }, +#endif +#else #ifdef __i386__ { "jxl", { 2681286418, 3923017710 } }, #else - { "jxl", { 2681286418, 774897965 } }, + { "jxl", { 2681286418, 2516911844 } }, #endif +#endif +#endif // BUILD_JXL_LOADER // { "lbm", { 0, 0 } }, // { "lzma", { 0, 0 } }, { "png", { 1153555547, 2937827957 } }, @@ -40,7 +55,9 @@ static const test_rec_t exts[] = { // { "svg", { 0, 0 } }, { "tga", { 1153555547, 2937827957 } }, { "tiff", { 1153555547, 2937827957 } }, +#ifdef BUILD_WEBP_LOADER { "webp", { 1698406918, 1844000264 } }, +#endif { "xbm", { 4292907803, 914370483 } }, // { "xpm", { 0, 0 } }, // { "zlib", { 0, 0 } },