ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
zoom_book.h
Go to the documentation of this file.
1
30
31#pragma once
32
33#include <stdint.h>
34
35#include "book.h"
36#include "book_paged.h"
37#include "ra8_err.h"
38#include "zoom.h"
39
63typedef struct {
64 const book_src_t* src;
67
96[[nodiscard]] ra8_err_t
97zoom_book_src_init(zoom_book_src_t* bs, const book_src_t* src, uint32_t img_idx);
98
120
150[[nodiscard]] ra8_err_t zoom_book_read(void* ctx,
151 uint32_t x,
152 uint32_t y,
153 uint32_t w,
154 uint32_t h,
155 uint8_t* out,
156 uint32_t out_stride);
Flat, execute-in-place container for a build-time "compiled" e-book.
Paged (demand-fetched) accessor mode for book over ra8_vmem (#163).
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
Descriptor for one transcoded image in the image pool.
Definition book.h:354
A book data source: resident (zero-copy) or paged (demand-fetched).
Definition book_paged.h:69
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
book_image_t img
Copy of the image descriptor being zoomed.
Definition zoom_book.h:65
A magnifiable full-resolution image behind the gray8 sub-rect seam.
Definition zoom.h:296
Tap-to-zoom image viewer: viewport state machine + tiled magnifying render (#478).
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_read(void *ctx, uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint8_t *out, uint32_t out_stride)
zoom_read_fn over a .rabook image pool.
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.