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

A magnifiable full-resolution image behind the gray8 sub-rect seam. More...

#include <zoom.h>

Data Fields

zoom_read_fn read
 gray8 sub-rectangle reader (never NULL once bound).
void * ctx
 Opaque context handed back to read.
uint32_t width
 Full-resolution source width, pixels.
uint32_t height
 Full-resolution source height, pixels.

Detailed Description

A magnifiable full-resolution image behind the gray8 sub-rect seam.

Plain data: the reader function, its context, and the extent the engine may address. Populate it with zoom_source_init or with one of the adapter binders, never by hand – the initialiser is where the extent bound (k_zoom_dim_max) is enforced.

Invariant
width and height are both in [1, k_zoom_dim_max].
read is non-NULL for any source bound into a view.
Example:
zoom_source_t src = {};
(void)zoom_source_init(&src, my_read, &my_ctx, 4096U, 3072U);
A magnifiable full-resolution image behind the gray8 sub-rect seam.
Definition zoom.h:296
ra8_err_t zoom_source_init(zoom_source_t *out, zoom_read_fn read, void *ctx, uint32_t width, uint32_t height)
Bind a gray8 sub-rectangle reader and its extent as a magnifiable source.
Definition zoom.c:375
See also
zoom_read_fn
Since
0.1.0

Definition at line 296 of file zoom.h.

Field Documentation

◆ ctx

void* zoom_source_t::ctx

Opaque context handed back to read.

Definition at line 298 of file zoom.h.

Referenced by internal_fill_row(), and zoom_source_init().

◆ height

uint32_t zoom_source_t::height

Full-resolution source height, pixels.

Definition at line 300 of file zoom.h.

Referenced by internal_cfg_extent_ok(), internal_fill_row(), internal_reclamp(), zoom_source_init(), zoom_view_rebind(), and zoom_view_window().

◆ read

zoom_read_fn zoom_source_t::read

gray8 sub-rectangle reader (never NULL once bound).

Definition at line 297 of file zoom.h.

Referenced by ez_scene_render(), internal_cfg_ptrs_ok(), internal_fill_row(), internal_render_ready(), zoom_source_init(), and zoom_view_rebind().

◆ width

uint32_t zoom_source_t::width

Full-resolution source width, pixels.

Definition at line 299 of file zoom.h.

Referenced by internal_cfg_extent_ok(), internal_reclamp(), zoom_source_init(), zoom_view_rebind(), zoom_view_render(), and zoom_view_window().


The documentation for this struct was generated from the following file:
  • apps/shared_libs/zoom/inc/zoom.h