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

Context binding a JOF atlas to a ::ra8_tile_cache decode-on-miss. More...

#include <longstrip.h>

Collaboration diagram for longstrip_decode_ctx_t:

Data Fields

jof_pread_fn pread
 Atlas backing read seam.
void * pread_ctx
 Context for pread.
jof_info_t info
 Parsed atlas geometry.
uint8_t * scratch
 Deflate staging (codec 1 only).
uint32_t scratch_cap
 Capacity of scratch.

Detailed Description

Context binding a JOF atlas to a ::ra8_tile_cache decode-on-miss.

Bind longstrip_tile_decode as the tile cache's decode and a pointer to this struct as its decode_ctx. The cache then pages any band in with one bounded JOF tile read. scratch is the deflate staging buffer required only for k_jof_codec_deflate atlases (size it with jof_stored_bound() over the band payload); a raw-codec atlas may leave it NULL / zero.

Invariant
pread serves the same atlas info was parsed from.
See also
longstrip_tile_decode()
Since
0.1.0

Definition at line 137 of file longstrip.h.

Field Documentation

◆ info

◆ pread

jof_pread_fn longstrip_decode_ctx_t::pread

Atlas backing read seam.

Definition at line 138 of file longstrip.h.

Referenced by longstrip_tile_decode(), and priv_viewer_open_jof().

◆ pread_ctx

void* longstrip_decode_ctx_t::pread_ctx

Context for pread.

Definition at line 139 of file longstrip.h.

Referenced by longstrip_tile_decode(), and priv_viewer_open_jof().

◆ scratch

uint8_t* longstrip_decode_ctx_t::scratch

Deflate staging (codec 1 only).

Definition at line 141 of file longstrip.h.

Referenced by internal_wire(), and longstrip_tile_decode().

◆ scratch_cap

uint32_t longstrip_decode_ctx_t::scratch_cap

Capacity of scratch.

Definition at line 142 of file longstrip.h.

Referenced by internal_wire(), and longstrip_tile_decode().


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