ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_img_arena.h
Go to the documentation of this file.
1
35#pragma once
36
37#include <stddef.h>
38
39#include "reflow_image.h" /* ra8_img_arena_t */
40
59
74void ra8_img_arena_unbind(void);
75
94void* ra8_img_arena_malloc(size_t n);
95
113void ra8_img_arena_free(void* p);
114
135void* ra8_img_arena_realloc_sized(void* p, size_t oldsz, size_t newsz);
void ra8_img_arena_free(void *p)
stb_image STBI_FREE hook: release a block; auto-reset when none live.
void * ra8_img_arena_realloc_sized(void *p, size_t oldsz, size_t newsz)
stb_image STBI_REALLOC_SIZED hook: fresh-allocate, copy, free old.
void ra8_img_arena_bind(ra8_img_arena_t *arena)
Bind arena as the active scratch for subsequent decode allocations.
void * ra8_img_arena_malloc(size_t n)
stb_image STBI_MALLOC hook: bump n bytes from the bound arena.
void ra8_img_arena_unbind(void)
Unbind the active arena; subsequent allocation hooks fail with nullptr.
Zero-heap raster image decode + scale + blit for reflow (#106).
Caller-owned bump arena backing a single image decode.