ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
media_download_format_internal.h
Go to the documentation of this file.
1
12#pragma once
13
14#include <stddef.h>
15#include <stdint.h>
16
17#include "ra8_attributes.h"
18#include "ra8_err.h"
19#include "ra8_rabook_comic.h"
21
36
54
62typedef struct {
63 uint8_t* bytes;
64 uint32_t capacity;
65 uint32_t length;
67
86RA8_PRIV [[nodiscard]] ra8_err_t
88 uint64_t offset,
89 const uint8_t* source,
90 uint32_t requested,
91 uint32_t* written);
92
111RA8_PRIV [[nodiscard]] ra8_err_t priv_media_download_memory_read(void* context,
112 uint32_t offset,
113 uint8_t* destination,
114 uint32_t requested,
115 uint32_t* out_read);
116
136RA8_PRIV [[nodiscard]] ra8_err_t
137priv_media_download_format_rabook(const uint8_t* source,
138 size_t source_size,
139 const media_download_format_config_t* config,
141 uint64_t* packed_size);
ra8_err_t priv_media_download_memory_write_at(media_download_memory_t *memory, uint64_t offset, const uint8_t *source, uint32_t requested, uint32_t *written)
Write one exact span at an absolute private-spool offset.
ra8_err_t priv_media_download_memory_read(void *context, uint32_t offset, uint8_t *destination, uint32_t requested, uint32_t *out_read)
Read one exact initialized range from a private spool.
ra8_err_t priv_media_download_format_rabook(const uint8_t *source, size_t source_size, const media_download_format_config_t *config, media_download_format_workspace_t *workspace, uint64_t *packed_size)
Format one encoded source image as a reader-native .rabook.
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
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
Streaming image-sequence builder for reader-native RABOOK comics.
Zero-heap streaming writer for the chunked RBKC .rabook container.
Immutable policy for one fetched-image conversion.
const char * page_id
Stable page identifier.
ra8_rabook_comic_metadata_t metadata
Book header metadata.
uint8_t pixel_format
Gray4 or gray8 output.
Complete caller-owned storage for image-to-RBKC conversion.
ra8_rabook_comic_workspace_t comic
Builder and raster arenas.
ra8_rabook_container_workspace_t container
Chunk-compressor workspace.
Mutable bounds for one formatter-owned in-memory spool.
uint8_t * bytes
Writable backing bytes.
uint32_t length
Highest initialized byte plus one.
uint32_t capacity
Maximum accessible byte extent.
Header metadata interned when the comic is finalized.
Caller-owned arenas retained for one streaming comic build.
Caller-owned transient storage for one RBKC write.