fix(app): crop animated images on web with libwebp (#2947)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-24 22:45:53 +02:00
1 parent e0843ac4f5
commit bbfe809bef
104 files changed
+10884 -7316

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#ifndef FLUXWEBP_STDLIB_H
#define FLUXWEBP_STDLIB_H
#include <stddef.h>
void* fluxwebp_shim_malloc(size_t size);
void* fluxwebp_shim_calloc(size_t nmemb, size_t size);
void fluxwebp_shim_free(void* ptr);
void fluxwebp_shim_qsort(void* base, size_t nitems, size_t size, int (*compar)(const void*, const void*));
#define malloc(size) fluxwebp_shim_malloc(size)
#define calloc(nmemb, size) fluxwebp_shim_calloc(nmemb, size)
#define free(ptr) fluxwebp_shim_free(ptr)
#define qsort(base, nitems, size, compar) fluxwebp_shim_qsort(base, nitems, size, compar)
#define abort() __builtin_trap()
static inline int abs(int x) { return x < 0 ? -x : x; }
#endif