From 2ccd1b1099eb32f57a6fb3b91bfc2f8ed3fc1bca Mon Sep 17 00:00:00 2001 From: Leonardo Hernández Hernández Date: Tue, 4 Jun 2024 21:06:58 -0600 Subject: jxl: add initial support for JPEG XL using libjxl --- main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 9f2d2f5..7a16690 100644 --- a/main.c +++ b/main.c @@ -36,6 +36,9 @@ #if defined(WBG_HAVE_SVG) #include "svg.h" #endif +#if defined(WBG_HAVE_JXL) + #include "jxl.h" +#endif /* Top-level globals */ static struct wl_display *display; @@ -418,6 +421,10 @@ main(int argc, const char *const *argv) #if defined(WBG_HAVE_SVG) if (image == NULL) image = svg_load(fp, image_path); +#endif +#if defined(WBG_HAVE_JXL) + if (image == NULL) + image = jxl_load(fp, image_path); #endif if (image == NULL) { LOG_ERR("%s: failed to load", image_path); -- cgit v1.2.3