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

One .rabook raster figure, ready to be magnified. More...

#include <zoom_book.h>

Collaboration diagram for zoom_book_src_t:

Data Fields

const book_src_tsrc
 Borrowed book source (resident or paged).
book_image_t img
 Copy of the image descriptor being zoomed.

Detailed Description

One .rabook raster figure, ready to be magnified.

Holds a borrowed pointer to the book source and a copy of the image descriptor. The copy matters: on a paged book the descriptor itself lives behind the page cache, so re-reading it per row would fault a frame per row for 24 bytes that never change.

Invariant
src is non-NULL and outlives this binding.
img.format == k_book_image_gray4 (SVG is rejected at bind).
Example:
zoom_book_src_t fig = {};
(void)zoom_book_src_init(&fig, &book_src, image_index);
(void)zoom_book_src_bind(&fig, &src);
One .rabook raster figure, ready to be magnified.
Definition zoom_book.h:63
const book_src_t * src
Borrowed book source (resident or paged).
Definition zoom_book.h:64
A magnifiable full-resolution image behind the gray8 sub-rect seam.
Definition zoom.h:296
ra8_err_t zoom_book_src_bind(zoom_book_src_t *bs, zoom_source_t *out)
Present a bound figure to the zoom engine as a zoom_source_t.
ra8_err_t zoom_book_src_init(zoom_book_src_t *bs, const book_src_t *src, uint32_t img_idx)
Look up one image in a book source and prepare it for magnification.
See also
zoom_book_src_init
Since
0.1.0

Definition at line 63 of file zoom_book.h.

Field Documentation

◆ img

book_image_t zoom_book_src_t::img

Copy of the image descriptor being zoomed.

Definition at line 65 of file zoom_book.h.

◆ src

const book_src_t* zoom_book_src_t::src

Borrowed book source (resident or paged).

Definition at line 64 of file zoom_book.h.


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