ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
comic_tiles.c File Reference

Tile an oversized comic page: encoded bytes -> JOF atlas -> tile cache (#344). More...

Go to the source code of this file.

Typedefs

typedef int comic_tiles_unused_translation_unit_t

Detailed Description

Tile an oversized comic page: encoded bytes -> JOF atlas -> tile cache (#344).

Import-time transcode + decode-on-demand tile paging.

Tag
[Ring 4 / Domain] {World: NS}

Implements comic_tile_reader_t. On import the page's encoded bytes are streamed through jof_produce() into a caller memstore, the produced atlas is validated with jof_parse(), and bound as the reader's single source under a fresh epoch. comic_tiles_tile then pages the page's full-resolution tiles through the owned ::ra8_tile_cache, decode-on-miss via jof_read_tile() – one bounded read plus one bounded inflate per tile. The whole page is never resident; the resident cost is the cache cell budget.

The size-threshold front end (comic_tiles_footprint / comic_tiles_over_budget) keeps small pages on the caller's existing whole-decode fast path – tiling a page that already fits saves nothing.

Guarded on __has_include: a comic app that never pulls in ra8_mem / jof still links this TU empty (a comic-only reader keeps the whole-decode path and never references the tile binder).

Definition in file comic_tiles.c.

Typedef Documentation

◆ comic_tiles_unused_translation_unit_t

Definition at line 333 of file comic_tiles.c.