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

One-shot configuration handed to longstrip_open. More...

#include <longstrip.h>

Collaboration diagram for longstrip_cfg_t:

Data Fields

jof_pread_fn pread
 Atlas backing read seam.
void * pread_ctx
 Context for pread.
uint64_t atlas_size
 Atlas byte length (for parse).
ra8_tile_cache_tcache
 Band cache (decode-on-miss = JOF).
uint32_t image_id
 Tile-cache key namespace for strip.
uint16_t viewport_w
 On-screen viewport width, pixels.
uint16_t viewport_h
 On-screen viewport height, pixels.
longstrip_blit_fn blit
 Band composite sink.
void * blit_ctx
 Context for blit.

Detailed Description

One-shot configuration handed to longstrip_open.

The atlas is reached through pread/pread_ctx/atlas_size (same seam jof_parse uses). cache is a tile cache the caller has already initialised with longstrip_tile_decode over the SAME atlas; image_id is the cache key namespace for this strip. The viewport is the on-screen window in pixels; blit composites bands into it.

Invariant
viewport_w and viewport_h are non-zero.
See also
longstrip_open()
Since
0.1.0

Definition at line 160 of file longstrip.h.

Field Documentation

◆ atlas_size

uint64_t longstrip_cfg_t::atlas_size

Atlas byte length (for parse).

Definition at line 163 of file longstrip.h.

Referenced by longstrip_open().

◆ blit

longstrip_blit_fn longstrip_cfg_t::blit

Band composite sink.

Definition at line 168 of file longstrip.h.

Referenced by internal_bind(), and internal_check_ptrs().

◆ blit_ctx

void* longstrip_cfg_t::blit_ctx

Context for blit.

Definition at line 169 of file longstrip.h.

Referenced by internal_bind().

◆ cache

ra8_tile_cache_t* longstrip_cfg_t::cache

Band cache (decode-on-miss = JOF).

Definition at line 164 of file longstrip.h.

Referenced by internal_bind(), and internal_check_ptrs().

◆ image_id

uint32_t longstrip_cfg_t::image_id

Tile-cache key namespace for strip.

Definition at line 165 of file longstrip.h.

Referenced by internal_bind().

◆ pread

jof_pread_fn longstrip_cfg_t::pread

Atlas backing read seam.

Definition at line 161 of file longstrip.h.

Referenced by internal_check_ptrs(), and longstrip_open().

◆ pread_ctx

void* longstrip_cfg_t::pread_ctx

Context for pread.

Definition at line 162 of file longstrip.h.

Referenced by longstrip_open().

◆ viewport_h

uint16_t longstrip_cfg_t::viewport_h

On-screen viewport height, pixels.

Definition at line 167 of file longstrip.h.

Referenced by internal_bind(), and longstrip_open().

◆ viewport_w

uint16_t longstrip_cfg_t::viewport_w

On-screen viewport width, pixels.

Definition at line 166 of file longstrip.h.

Referenced by internal_bind(), and longstrip_open().


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