57typedef enum : uint32_t {
100ra8_webp_get_info(
const uint8_t* data,
size_t size, uint32_t* out_w, uint32_t* out_h);
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
ra8_err_t ra8_webp_decode_rgba(const uint8_t *data, size_t size, ra8_webp_arena_t *arena, uint8_t *out_rgba, size_t out_stride, size_t out_capacity, uint32_t *out_w, uint32_t *out_h)
Decode a WebP into a caller-owned RGBA8888 buffer, heap-free.
ra8_webp_limits_t
WebP decode facade fixed limits (no magic numbers).
@ k_ra8_webp_bytes_per_px
Output bytes per pixel (RGBA8888).
@ k_ra8_webp_max_dim
Max accepted width/height, pixels/axis.
ra8_err_t ra8_webp_get_info(const uint8_t *data, size_t size, uint32_t *out_w, uint32_t *out_h)
Read a WebP header's pixel dimensions without decoding the body.
Heap-free scratch allocator hooks for the vendored libwebp decoder.
Caller-owned bump arena backing a single WebP decode.