diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-06-04 21:06:58 -0600 |
---|---|---|
committer | Daniel Eklöf <daniel@ekloef.se> | 2024-06-12 20:13:43 +0200 |
commit | 2ccd1b1099eb32f57a6fb3b91bfc2f8ed3fc1bca (patch) | |
tree | a6992b101c1ca950d48aa66a50b31035be558c16 /main.c | |
parent | 573c014568a7dd4facbca9cc6b9032996c18338e (diff) | |
download | wbg-2ccd1b1099eb32f57a6fb3b91bfc2f8ed3fc1bca.tar.gz |
jxl: add initial support for JPEG XL using libjxl
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; @@ -419,6 +422,10 @@ main(int argc, const char *const *argv) 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); fclose(fp); |