195 const char* out_path);
236 const void** out_blob,
EPUB (.epub) reader and chapter iterator for ra8-firmware.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Minimal FAT12/FAT16/FAT32 filesystem adapter (read + write).
ra8_err_t rabook_compile_from_epub(epub_book_t *epub, const ra8_rabook_buffers_t *buffers, const ra8_rabook_pipeline_scratch_t *scratch, ra8_fs_mount_t *mount, const char *out_path)
Compile an open EPUB into a RABOOK1 blob written to out_path on the SD filesystem.
ra8_err_t rabook_compile_from_epub_to_buffer(epub_book_t *epub, const ra8_rabook_buffers_t *bufs, const ra8_rabook_pipeline_scratch_t *scr, const void **out_blob, uint32_t *out_len)
Compile an open EPUB into a RABOOK1 blob left in bufs->out, with no filesystem write.
Bounded XHTML-to-RABOOK streaming builder.
Zero-heap builder that emits a RABOOK1 blob (the #149 compiler back-end).
Zero-heap raster image decode + scale + blit for reflow (#106).
Cached parse of one mounted FAT volume.
Caller-owned bump arena backing a single image decode.
Caller-owned, fixed-capacity arenas the builder appends into (no heap).
Caller-owned temporary buffers the pipeline stage needs.
uint16_t max_image_edge
Opt-in downscale clamp on the longer edge in pixels; 0 (the zero-init default) preserves source resol...
uint8_t pixel_format
Device profile: raster depth to emit, book_image_pixfmt_t.
uint32_t gray_cap
Capacity of gray in pixels (bytes).
uint8_t * gray
Intermediate gray-pixel downscale buffer.
char * css
Stylesheet load scratch (NUL-terminated).
size_t xhtml_cap
Capacity of xhtml in bytes.
uint8_t * image_raw
Raw encoded cover/image byte buffer.
ra8_rabook_xml_workspace_t * xml_workspace
Caller-owned XHTML parser state.
bool skip_images
Drop all images (text/CSS-only).
size_t image_cap
Capacity of image_raw in bytes.
size_t css_cap
Capacity of css in bytes.
ra8_img_arena_t * img_arena
stb_image bump arena (caller-sized scratch).
uint8_t * xhtml
Chapter XHTML scratch buffer.
Caller-owned storage for one parser invocation.