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

Descriptor for one transcoded image in the image pool. More...

#include <book.h>

Data Fields

uint32_t id_off
 String-pool offset of the source href / manifest id.
uint16_t width
 Pixel width.
uint16_t height
 Pixel height.
uint8_t format
 book_image_format_t.
uint8_t pixel_format
 book_image_pixfmt_t (0 == gray4; SVG: 0).
uint16_t reserved2
 Padding; 0.
uint32_t data_off
 Image-pool offset of the compressed pixel data.
uint32_t data_size
 Compressed length in bytes.
uint32_t raw_size
 Inflated length in bytes.

Detailed Description

Descriptor for one transcoded image in the image pool.

id_off is the original manifest href so an <img src> attribute value resolves to this entry. Raster images are packed grayscale at source resolution (panel-ready, no decode; an opt-in compile knob can clamp the long edge) – 4bpp (2px/byte) or 8bpp (1px/byte) per pixel_format; SVG is kept as verbatim vector source. Pool bytes are raw – the blob is chunk-DEFLATE-wrapped on disk (see book_container_t) and inflated on open, so per-image compression would not help – thus data_size == raw_size and data_off indexes the image pool.

Since
Version 0.1.0

Definition at line 354 of file book.h.

Field Documentation

◆ data_off

uint32_t book_image_t::data_off

Image-pool offset of the compressed pixel data.

Definition at line 361 of file book.h.

Referenced by book_image_data(), internal_append_image_descriptor(), internal_book_image_row(), and internal_book_image_row_gray8().

◆ data_size

uint32_t book_image_t::data_size

Compressed length in bytes.

Definition at line 362 of file book.h.

Referenced by internal_append_image_descriptor().

◆ format

uint8_t book_image_t::format

◆ height

◆ id_off

uint32_t book_image_t::id_off

String-pool offset of the source href / manifest id.

Definition at line 355 of file book.h.

Referenced by internal_append_image_descriptor().

◆ pixel_format

uint8_t book_image_t::pixel_format

book_image_pixfmt_t (0 == gray4; SVG: 0).

Definition at line 359 of file book.h.

Referenced by book_image_pixfmt(), and internal_append_image_descriptor().

◆ raw_size

uint32_t book_image_t::raw_size

Inflated length in bytes.

Definition at line 363 of file book.h.

Referenced by erb_render_image(), and internal_append_image_descriptor().

◆ reserved2

uint16_t book_image_t::reserved2

Padding; 0.

Definition at line 360 of file book.h.

◆ width


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