|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Fixed 100-byte prologue describing every table and pool in the blob. More...
#include <book.h>
Data Fields | |
| char | magic [8] |
| Always "RABOOK1" (7 chars + NUL). | |
| uint32_t | format_version |
| book_version_t of this blob. | |
| uint32_t | total_size |
| Total blob length in bytes. | |
| uint32_t | flags |
| book_flag_t bits; unknown bits are rejected. | |
| uint32_t | title_off |
| String-pool offset of the book title. | |
| uint32_t | author_off |
| String-pool offset of the author. | |
| uint32_t | language_off |
| String-pool offset of the BCP-47 language. | |
| uint32_t | identifier_off |
| String-pool offset of the unique book id. | |
| uint32_t | cover_image_index |
| Image-table index of the cover, or nil. | |
| uint32_t | chapter_count |
| Number of spine chapters. | |
| uint32_t | chapter_off |
| Offset to the chapter table. | |
| uint32_t | node_count |
| Number of DOM nodes. | |
| uint32_t | node_off |
| Offset to the node table. | |
| uint32_t | attr_count |
| Number of attribute records. | |
| uint32_t | attr_off |
| Offset to the attribute table. | |
| uint32_t | stylesheet_count |
| Number of preserved stylesheets. | |
| uint32_t | stylesheet_off |
| Offset to the stylesheet table. | |
| uint32_t | image_count |
| Number of image descriptors. | |
| uint32_t | image_off |
| Offset to the image table. | |
| uint32_t | string_off |
| Offset to the string pool. | |
| uint32_t | string_size |
| String-pool length in bytes. | |
| uint32_t | image_pool_off |
| Offset to the image pool. | |
| uint32_t | image_pool_size |
| Image-pool length in bytes. | |
| uint32_t | crc32_val |
| CRC-32/ISO-HDLC of the body (all bytes after this header). | |
Fixed 100-byte prologue describing every table and pool in the blob.
All _off fields are byte offsets from the blob base; all _count / _size fields are element counts / byte lengths. Metadata string offsets index the string pool.
| uint32_t book_header_t::attr_count |
Number of attribute records.
Definition at line 260 of file book.h.
Referenced by book_validate(), internal_decode_header(), internal_make_header(), internal_validate_attrs(), internal_validate_header_layout(), internal_validate_nodes(), priv_book_stream_validate_element(), and sh_paged_hdr_ok().
| uint32_t book_header_t::attr_off |
Offset to the attribute table.
Definition at line 261 of file book.h.
Referenced by book_validate(), internal_decode_header(), internal_make_header(), internal_validate_attrs(), internal_validate_header_layout(), and sh_paged_hdr_ok().
| uint32_t book_header_t::author_off |
String-pool offset of the author.
Definition at line 252 of file book.h.
Referenced by internal_decode_header(), internal_make_header(), priv_book_stream_validate_metadata(), and priv_mdl_verify_rabook().
| uint32_t book_header_t::chapter_count |
Number of spine chapters.
Definition at line 256 of file book.h.
Referenced by book_chapter_text(), book_chapter_text_src(), book_chapter_to_xhtml(), book_is_valid(), book_src_prefetch_chapter(), book_validate(), imp_walk_book(), internal_check_compiled_page_count(), internal_decode_header(), internal_make_header(), internal_validate_chapters(), internal_validate_header_layout(), main(), priv_book_stream_validate_styles(), priv_mdl_verify_rabook(), publish_result(), sh_paged_hdr_ok(), sh_rabook_label(), and verify_blob().
| uint32_t book_header_t::chapter_off |
Offset to the chapter table.
Definition at line 257 of file book.h.
Referenced by book_chapter_text_src(), book_src_prefetch_chapter(), book_validate(), internal_decode_header(), internal_make_header(), internal_validate_chapters(), internal_validate_header_layout(), sh_paged_hdr_ok(), and sh_rabook_label().
| uint32_t book_header_t::cover_image_index |
Image-table index of the cover, or nil.
Definition at line 255 of file book.h.
Referenced by internal_decode_header(), internal_make_header(), priv_book_stream_validate_metadata(), and sh_decode_cover().
| uint32_t book_header_t::crc32_val |
CRC-32/ISO-HDLC of the body (all bytes after this header).
Definition at line 270 of file book.h.
Referenced by book_validate(), internal_decode_header(), internal_make_header(), internal_validate_crc(), publish_result(), and verify_blob().
| uint32_t book_header_t::flags |
book_flag_t bits; unknown bits are rejected.
Definition at line 250 of file book.h.
Referenced by book_validate(), internal_decode_header(), internal_make_header(), and internal_validate_header_fields().
| uint32_t book_header_t::format_version |
book_version_t of this blob.
Definition at line 248 of file book.h.
Referenced by book_is_valid(), book_validate(), internal_decode_header(), internal_make_header(), internal_validate_header_fields(), and sh_paged_hdr_ok().
| uint32_t book_header_t::identifier_off |
String-pool offset of the unique book id.
Definition at line 254 of file book.h.
Referenced by internal_decode_header(), internal_make_header(), priv_book_stream_validate_metadata(), and priv_mdl_verify_rabook().
| uint32_t book_header_t::image_count |
Number of image descriptors.
Definition at line 264 of file book.h.
Referenced by book_src_image(), book_validate(), erb_render_image(), internal_check_compiled_page_count(), internal_decode_header(), internal_image_pixfmts_known(), internal_make_header(), internal_validate_header_layout(), internal_validate_images(), priv_book_stream_validate_metadata(), priv_mdl_verify_rabook(), and sh_paged_hdr_ok().
| uint32_t book_header_t::image_off |
Offset to the image table.
Definition at line 265 of file book.h.
Referenced by book_src_image(), book_validate(), internal_decode_header(), internal_make_header(), internal_validate_header_layout(), internal_validate_images(), and sh_paged_hdr_ok().
| uint32_t book_header_t::image_pool_off |
Offset to the image pool.
Definition at line 268 of file book.h.
Referenced by book_validate(), internal_book_image_row(), internal_book_image_row_gray8(), internal_decode_header(), internal_make_header(), internal_validate_header_layout(), and sh_paged_hdr_ok().
| uint32_t book_header_t::image_pool_size |
Image-pool length in bytes.
Definition at line 269 of file book.h.
Referenced by book_validate(), internal_decode_header(), internal_make_header(), internal_validate_header_layout(), internal_validate_images(), and sh_paged_hdr_ok().
| uint32_t book_header_t::language_off |
String-pool offset of the BCP-47 language.
Definition at line 253 of file book.h.
Referenced by internal_decode_header(), internal_make_header(), and priv_book_stream_validate_metadata().
| char book_header_t::magic[8] |
Always "RABOOK1" (7 chars + NUL).
Definition at line 247 of file book.h.
Referenced by book_is_valid(), internal_decode_header(), internal_magic_ok(), internal_make_header(), internal_validate_header_fields(), and sh_paged_hdr_ok().
| uint32_t book_header_t::node_count |
Number of DOM nodes.
Definition at line 258 of file book.h.
Referenced by book_chapter_text(), book_chapter_text_src(), book_chapter_to_xhtml(), book_is_valid(), book_validate(), internal_decode_header(), internal_make_header(), internal_mark_forward_link(), internal_validate_body(), internal_validate_chapters(), internal_validate_header_fields(), internal_validate_header_layout(), internal_validate_nodes(), render_held_page(), and sh_paged_hdr_ok().
| uint32_t book_header_t::node_off |
Offset to the node table.
Definition at line 259 of file book.h.
Referenced by book_src_prefetch_chapter(), book_validate(), internal_decode_header(), internal_make_header(), internal_paged_node(), internal_validate_chapters(), internal_validate_header_layout(), internal_validate_nodes(), and sh_paged_hdr_ok().
| uint32_t book_header_t::string_off |
Offset to the string pool.
Definition at line 266 of file book.h.
Referenced by book_validate(), internal_decode_header(), internal_make_header(), internal_paged_visit_node(), internal_validate_header_layout(), priv_book_stream_nonempty_string_ref(), priv_book_stream_string_ref(), priv_book_stream_validate_string_envelope(), sh_paged_hdr_ok(), and sh_src_string().
| uint32_t book_header_t::string_size |
String-pool length in bytes.
Definition at line 267 of file book.h.
Referenced by book_validate(), internal_decode_header(), internal_make_header(), internal_validate_header_layout(), priv_book_stream_string_ref(), priv_book_stream_validate_string_envelope(), sh_paged_hdr_ok(), and sh_src_string().
| uint32_t book_header_t::stylesheet_count |
Number of preserved stylesheets.
Definition at line 262 of file book.h.
Referenced by book_validate(), internal_decode_header(), internal_make_header(), internal_validate_header_layout(), priv_book_stream_validate_styles(), and sh_paged_hdr_ok().
| uint32_t book_header_t::stylesheet_off |
Offset to the stylesheet table.
Definition at line 263 of file book.h.
Referenced by book_validate(), internal_decode_header(), internal_make_header(), internal_validate_header_layout(), priv_book_stream_validate_styles(), and sh_paged_hdr_ok().
| uint32_t book_header_t::title_off |
String-pool offset of the book title.
Definition at line 251 of file book.h.
Referenced by imp_walk_book(), internal_decode_header(), internal_make_header(), priv_book_stream_validate_metadata(), and priv_mdl_verify_rabook().
| uint32_t book_header_t::total_size |
Total blob length in bytes.
Definition at line 249 of file book.h.
Referenced by book_is_valid(), book_validate(), internal_consume(), internal_decode_header(), internal_make_header(), internal_validate_crc(), internal_validate_header_fields(), internal_validate_header_layout(), and sh_paged_hdr_ok().