ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
comic_tiles_import_cfg_t Struct Reference

Import-time transcode knobs, work arena, and destination atlas store. More...

#include <comic_tiles.h>

Data Fields

uint16_t tile_w
 Tile width, pixels (>= 1).
uint16_t tile_h
 Tile height, pixels (>= 1).
uint8_t codec
 jof_codec_t member.
uint16_t max_width
 Width budget cap (0 = format cap).
uint16_t max_height
 Height budget cap (0 = format cap).
size_t work_cap
 Arena size (jof_work_bytes()).
uint8_t * webp_work
 WebP whole-frame arena, or NULL to reject WebP.
size_t webp_work_cap
 WebP arena size (jof_webp_work_bytes()).
uint8_t * atlas
 Atlas memstore backing (out-lives tile fetch).
size_t atlas_cap
 Capacity of atlas in bytes.

Detailed Description

Import-time transcode knobs, work arena, and destination atlas store.

Mirrors the producer configuration (jof_produce.h) minus the source (the import path streams the caller's encoded page bytes). Size work with jof_work_bytes() over the same caps and tile geometry. webp_work is the optional whole-frame arena for WebP pages (jof_webp_work_bytes()); leave it NULL to fail-closed reject WebP pages exactly as a JPEG/PNG-only reader always did. atlas is the append-only memstore backing the produced JOF atlas lives in and is paged from; it must out-live every tile fetch.

Invariant
tile_w / tile_h non-zero; work covers work_cap; atlas covers atlas_cap.
webp_work is NULL, or it covers webp_work_cap bytes.
See also
comic_tiles_import()
Since
Version 0.1.0

Definition at line 126 of file comic_tiles.h.

Field Documentation

◆ atlas

uint8_t* comic_tiles_import_cfg_t::atlas

Atlas memstore backing (out-lives tile fetch).

Definition at line 136 of file comic_tiles.h.

◆ atlas_cap

size_t comic_tiles_import_cfg_t::atlas_cap

Capacity of atlas in bytes.

Definition at line 137 of file comic_tiles.h.

◆ codec

uint8_t comic_tiles_import_cfg_t::codec

jof_codec_t member.

Definition at line 129 of file comic_tiles.h.

◆ max_height

uint16_t comic_tiles_import_cfg_t::max_height

Height budget cap (0 = format cap).

Definition at line 131 of file comic_tiles.h.

◆ max_width

uint16_t comic_tiles_import_cfg_t::max_width

Width budget cap (0 = format cap).

Definition at line 130 of file comic_tiles.h.

◆ tile_h

uint16_t comic_tiles_import_cfg_t::tile_h

Tile height, pixels (>= 1).

Definition at line 128 of file comic_tiles.h.

◆ tile_w

uint16_t comic_tiles_import_cfg_t::tile_w

Tile width, pixels (>= 1).

Definition at line 127 of file comic_tiles.h.

◆ webp_work

uint8_t* comic_tiles_import_cfg_t::webp_work

WebP whole-frame arena, or NULL to reject WebP.

Definition at line 134 of file comic_tiles.h.

◆ webp_work_cap

size_t comic_tiles_import_cfg_t::webp_work_cap

WebP arena size (jof_webp_work_bytes()).

Definition at line 135 of file comic_tiles.h.

◆ work_cap

size_t comic_tiles_import_cfg_t::work_cap

Arena size (jof_work_bytes()).

Definition at line 133 of file comic_tiles.h.


The documentation for this struct was generated from the following file: