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

One comic tile reader: owned tile cache, atlas store, bound page. More...

#include <comic_tiles.h>

Collaboration diagram for comic_tile_reader_t:

Data Fields

ra8_tile_cache_t cache
 Owned tile cache (decode wired to this).
jof_memstore_t store
 Atlas backing for the bound page.
jof_info_t info
 Parsed geometry of the bound page.
uint8_t * scratch
 Stored-tile staging for deflate atlases.
uint32_t scratch_cap
 Capacity of scratch.
uint32_t epoch
 Import counter; the tile-cache key id.
bool bound
 True while a page atlas is imported.

Detailed Description

One comic tile reader: owned tile cache, atlas store, bound page.

Caller-owned; zero-initialise before comic_tiles_init. Holds a ::ra8_tile_cache whose decode-on-miss reads + decodes one JOF tile through jof_read_tile() off store, the parsed geometry of the currently-bound page (info), the stored-tile staging buffer (scratch), and the epoch that namespaces the tile-cache key per import so a page turn cannot surface a stale tile.

Invariant
bound is true only between a successful import and the next reset.
Tile-cache keys carry image_id == epoch of the bound page.
See also
comic_tiles_init()
Since
Version 0.1.0

Definition at line 156 of file comic_tiles.h.

Field Documentation

◆ bound

bool comic_tile_reader_t::bound

True while a page atlas is imported.

Definition at line 163 of file comic_tiles.h.

◆ cache

ra8_tile_cache_t comic_tile_reader_t::cache

Owned tile cache (decode wired to this).

Definition at line 157 of file comic_tiles.h.

◆ epoch

uint32_t comic_tile_reader_t::epoch

Import counter; the tile-cache key id.

Definition at line 162 of file comic_tiles.h.

◆ info

jof_info_t comic_tile_reader_t::info

Parsed geometry of the bound page.

Definition at line 159 of file comic_tiles.h.

◆ scratch

uint8_t* comic_tile_reader_t::scratch

Stored-tile staging for deflate atlases.

Definition at line 160 of file comic_tiles.h.

◆ scratch_cap

uint32_t comic_tile_reader_t::scratch_cap

Capacity of scratch.

Definition at line 161 of file comic_tiles.h.

◆ store

jof_memstore_t comic_tile_reader_t::store

Atlas backing for the bound page.

Definition at line 158 of file comic_tiles.h.


The documentation for this struct was generated from the following file: