diff options
| author | Paul Buetow <paul@buetow.org> | 2026-07-13 21:13:35 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-07-13 21:13:35 +0300 |
| commit | 484fbca06312dbe0f381109763f701671f22e602 (patch) | |
| tree | ee8bc47f32a2a767831e05a5b949c5a05aeec4f5 /tests/test_loader_pixbuf.c | |
| parent | 25ee19ce91dcb204d93e6d8cceb7cd64d5f057f9 (diff) | |
modernfmt: JXL/HEIF/AVIF loader backends, conditional (qt0)
M5 (task qt0): modern format backends.
- src/loader/backends/jxl.c: libjxl decoder → RGBA → GdkMemoryTexture.
- src/loader/backends/heif.c: libheif decoder → interleaved RGBA →
GdkMemoryTexture (also handles AVIF when libavif is absent).
- src/loader/backends/avif.c: libavif decoder (written; auto-disabled when
libavif is not installed).
- src/loader/loader.c: BACKENDS array conditionally includes the backends
via -DHAVE_JXL/HAVE_AVIF/HAVE_HEIF; pixbuf remains last (fallback).
- meson.build: conditional backend sources + c_args + extra deps.
- tests: assert_unsupports updated to assert NULL only (any error, works
with or without the specific backend compiled in).
- Minimal build (all disabled) + full build (jxl+heif) both 14/14 green,
ASan clean.
Diffstat (limited to 'tests/test_loader_pixbuf.c')
| -rw-r--r-- | tests/test_loader_pixbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_loader_pixbuf.c b/tests/test_loader_pixbuf.c index ba37522..32e3a2e 100644 --- a/tests/test_loader_pixbuf.c +++ b/tests/test_loader_pixbuf.c @@ -104,8 +104,8 @@ assert_unsupported(const guint8 *p_buf, gsize u_len) { GdkTexture *p_tex = load_bytes(p_buf, u_len, &p_err); g_assert_null(p_tex); g_assert_nonnull(p_err); - g_assert_cmpint(p_err->code, ==, G_IO_ERROR_NOT_SUPPORTED); - g_error_free(p_err); + g_error_free(p_err); /* NOT_SUPPORTED if no backend, or a decode error if + * the specific backend is compiled in. */ } static void |
