230 const char* output_name);
286 const char* dump_name,
JOF band-tile atlas: the display-native normalized image format (#231, shared with the longstrip scro...
ra8_err_t(* jof_pread_fn)(void *ctx, uint64_t offset, uint8_t *buf, size_t len, size_t *got)
Positioned-read seam over an atlas backing store (DIP).
No-heap, backing-agnostic structural audit for JOF atlases.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
ra8_err_t ra8_fmt_jof_convert_requirements(const ra8_fmt_source_t *source, ra8_fmt_jof_convert_requirements_t *out)
Derive source geometry and exact JOF conversion workspace needs.
ra8_err_t ra8_fmt_jof_convert_stream(const ra8_fmt_source_t *source, const ra8_fmt_jof_convert_requirements_t *requirements, const ra8_fmt_jof_convert_workspace_t *workspace, ra8_fmt_transaction_t *transaction, const ra8_fmt_sink_t *report, const char *output_name)
Stream one encoded image into a durably published JOF artifact.
ra8_err_t ra8_fmt_jof_verify_requirements(const ra8_fmt_source_t *source, ra8_fmt_jof_verify_requirements_t *out)
Derive exact producer and comparison storage for bounded JOF verification.
ra8_err_t(* ra8_fmt_source_validate_fn)(void *ctx, uint64_t expected_size)
Revalidate one positioned source against its captured immutable view.
ra8_err_t ra8_fmt_rabook_inspect_stream(const ra8_fmt_source_t *source, bool verbose, ra8_fmt_rabook_inspect_workspace_t *workspace, const ra8_fmt_sink_t *report)
Strictly inspect one streamed RBKC container and its RABOOK1 payload.
ra8_err_t(* ra8_fmt_spool_seal_fn)(void *ctx, uint64_t expected_size)
Seal an exact scratch artifact for immutable positioned reads.
ra8_err_t ra8_fmt_jof_verify_stream(const ra8_fmt_source_t *reference_source, const ra8_fmt_source_t *banded_source, const ra8_fmt_jof_verify_requirements_t *requirements, ra8_fmt_jof_verify_workspace_t *workspace, ra8_fmt_spool_t *reference_spool, ra8_fmt_spool_t *banded_spool, ra8_fmt_transaction_t *dump, const char *dump_name, const ra8_fmt_sink_t *report)
Verify banded JOF pixels against an independently decoded row reference.
ra8_err_t ra8_fmt_jof_inspect_stream(const ra8_fmt_source_t *source, bool verbose, const ra8_fmt_jof_inspect_workspace_t *workspace, const ra8_fmt_sink_t *report)
Inspect one JOF source through callbacks and caller storage.
ra8_err_t(* ra8_fmt_sink_write_fn)(void *ctx, const uint8_t *bytes, size_t len)
Append text or binary bytes to a bounded backend.
One decoded tile's stored window and content evidence.
Source geometry and exact arenas required by one JOF conversion.
uint16_t width
Declared source width in pixels.
uint32_t webp_work_bytes
Exact WebP whole-frame bytes, or zero.
uint16_t height
Declared source height in pixels.
uint16_t tile_height
Height selected for emitted tiles.
uint32_t work_bytes
Exact streaming-producer arena bytes.
uint16_t tile_width
Width selected for emitted tiles.
Caller-owned arenas supplied to the streaming JOF converter.
uint32_t work_cap
Bytes available at work.
uint8_t * webp_work
Optional WebP decode arena.
uint32_t webp_work_cap
Bytes at webp_work.
Exact caller-owned storage used by streaming JOF inspection.
uint32_t scratch_cap
Compressed staging capacity.
uint8_t * scratch
Compressed tile staging.
uint32_t tile_cap
Decoded tile capacity.
uint8_t * tile
Reusable decoded tile.
uint32_t record_cap
Record entries available.
jof_audit_record_t * records
Audit record array.
Exact phase-reused storage requirements for JOF verification.
uint32_t row_bytes
One decoded reference row.
uint8_t bpp
Decoder output bytes per pixel.
uint16_t band_height
Subject tile height under test.
uint32_t reference_work_bytes
One-row reference producer arena.
uint16_t width
Source width in pixels.
uint16_t height
Source height in pixels.
uint32_t band_tile_bytes
Largest decoded subject tile.
uint32_t scratch_bytes
Largest stored-tile staging buffer.
uint32_t webp_work_bytes
Whole-frame WebP arena, or zero.
uint32_t banded_work_bytes
Banded subject producer arena.
Caller-owned phase-overlaid arenas for one bounded JOF verification.
uint8_t * webp_work
Optional WebP whole-frame arena.
uint32_t webp_work_cap
Bytes at webp_work.
uint8_t * row
Decoded one-row reference tile.
uint8_t * band_tile
Decoded banded-subject tile.
uint32_t band_tile_cap
Bytes at band_tile.
uint8_t * scratch
Reusable stored-tile staging.
uint32_t row_cap
Bytes at row.
uint32_t scratch_cap
Bytes at scratch.
uint32_t work_cap
Bytes available at work.
Caller-owned storage for strict streamed RBKC/RABOOK1 inspection.
uint8_t * compressed
One compressed chunk.
uint32_t compressed_cap
Compressed chunk capacity.
uint64_t * table
Decoded RBKC offset entries.
uint32_t table_cap
Entries available at table.
uint8_t * scratch
Strict validator workspace.
uint8_t * chunk
One inflated chunk.
uint32_t chunk_cap
Inflated chunk capacity.
uint32_t scratch_cap
Validator workspace capacity.
Injected append-only sink.
void * ctx
Backend-owned context.
Immutable, randomly readable input object.
uint64_t size
Exact object byte length.
void * ctx
Backend-owned context.
ra8_fmt_source_validate_fn validate
Optional stability callback.
jof_pread_fn read_at
Positioned-read callback.
Caller-owned scratch artifact with append, seal, and read seams.
ra8_fmt_sink_write_fn append
Append before seal.
jof_pread_fn read_at
Positioned reader after seal.
ra8_fmt_spool_seal_fn seal
Seal exact produced bytes.
void * ctx
Backend-owned state.
Durable artifact-transaction operations.
ra8_err_t(* commit)(void *ctx)
Sync and atomically install.
ra8_fmt_sink_write_fn append
Append artifact bytes.
void(* abort)(void *ctx)
Discard owned staging data.
One caller-owned artifact transaction.
void * ctx
Backend-owned state.
const ra8_fmt_transaction_ops_t * ops
Transaction implementation.