185 uint32_t out_stride);
229 uint16_t* out_warmed);
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Fixed-RAM-budget image-tile cache with LRU eviction (Layer 3b, #147).
Tile-cache state (caller-owned; treat as private).
A magnifiable full-resolution image behind the gray8 sub-rect seam.
A tiled gray8 image, its grid, and the cache that pages it.
uint16_t tile_cols
Derived tile columns.
ra8_tile_cache_t * cache
Borrowed, initialised tile cache.
uint16_t tile_w
Tile width, pixels.
uint16_t tile_rows
Derived tile rows.
uint16_t tile_h
Tile height, pixels.
uint32_t width
Full-resolution image width, pixels.
uint32_t image_id
Tile-cache key image id for this image.
uint32_t height
Full-resolution image height, pixels.
Live viewport: where it is looking, how magnified, and what it owes the panel.
Tap-to-zoom image viewer: viewport state machine + tiled magnifying render (#478).
zoom_pan_t
Discrete pan direction for tap-band navigation.
ra8_err_t zoom_tiles_prefetch(zoom_tile_src_t *ts, const zoom_view_t *v, zoom_pan_t dir, uint16_t max_tiles, uint16_t *out_warmed)
Warm the tiles one pan step beyond what a view currently shows.
ra8_err_t zoom_tile_read(void *ctx, uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint8_t *out, uint32_t out_stride)
zoom_read_fn over a tiled atlas paged by an ra8_tile_cache.
ra8_err_t zoom_tile_src_bind(zoom_tile_src_t *ts, zoom_source_t *out)
Present a bound tiled image to the zoom engine as a zoom_source_t.
ra8_err_t zoom_tile_src_init(zoom_tile_src_t *ts, ra8_tile_cache_t *cache, uint32_t image_id, uint32_t width, uint32_t height, uint16_t tile_w, uint16_t tile_h)
Bind a tiled image and its cache, deriving the tile grid.