|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
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. | |
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.
| 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().
| 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().
| uint8_t book_image_t::format |
Definition at line 358 of file book.h.
Referenced by book_src_image_rect(), erb_render_image(), internal_append_image_descriptor(), and sh_gray4_image().
| uint16_t book_image_t::height |
Pixel height.
Definition at line 357 of file book.h.
Referenced by book_src_image_rect(), erb_render_image(), internal_append_image_descriptor(), sh_gray4_image(), sh_image_blit_cover(), sh_image_decode_gray8(), sh_image_loupe(), and sh_image_loupe_map().
| 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().
| 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().
| 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().
| uint16_t book_image_t::width |
Pixel width.
Definition at line 356 of file book.h.
Referenced by book_src_image_rect(), erb_render_image(), internal_append_image_descriptor(), internal_book_image_row(), internal_book_image_row_gray8(), sh_gray4_fetch_row(), sh_gray4_image(), sh_image_blit_cover(), sh_image_decode_gray8(), sh_image_loupe(), and sh_image_loupe_map().