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

Exclusive caller-owned scratch used by one raster conversion. More...

#include <ra8_rabook_raster.h>

Collaboration diagram for ra8_rabook_raster_workspace_t:

Data Fields

ra8_img_arena_tstb_arena
 JPEG/PNG/GIF/BMP decoder arena.
ra8_webp_arena_twebp_arena
 WebP decoder scratch arena.
uint8_t * rgba
 WebP RGBA frame storage.
size_t rgba_cap
 Capacity of rgba in bytes.
uint8_t * gray
 Downscaled grayscale storage.
size_t gray_cap
 Capacity of gray in bytes.

Detailed Description

Exclusive caller-owned scratch used by one raster conversion.

stb_image draws transient allocations from stb_arena. WebP decodes into rgba using webp_arena. gray is used only when a decoded source must be downscaled; the encoded payload is written to the separate output supplied to ra8_rabook_raster_encode.

Invariant
Non-NULL buffers span their declared capacities.
rgba, gray, codec arena backing stores, source, and encoded destination do not overlap while a conversion is active.
Since
0.1.0

Definition at line 45 of file ra8_rabook_raster.h.

Field Documentation

◆ gray

uint8_t* ra8_rabook_raster_workspace_t::gray

Downscaled grayscale storage.

Definition at line 50 of file ra8_rabook_raster.h.

Referenced by internal_scale().

◆ gray_cap

size_t ra8_rabook_raster_workspace_t::gray_cap

Capacity of gray in bytes.

Definition at line 51 of file ra8_rabook_raster.h.

Referenced by internal_scale().

◆ rgba

uint8_t* ra8_rabook_raster_workspace_t::rgba

WebP RGBA frame storage.

Definition at line 48 of file ra8_rabook_raster.h.

Referenced by internal_decode_webp().

◆ rgba_cap

size_t ra8_rabook_raster_workspace_t::rgba_cap

Capacity of rgba in bytes.

Definition at line 49 of file ra8_rabook_raster.h.

Referenced by internal_decode_webp().

◆ stb_arena

ra8_img_arena_t* ra8_rabook_raster_workspace_t::stb_arena

JPEG/PNG/GIF/BMP decoder arena.

Definition at line 46 of file ra8_rabook_raster.h.

Referenced by internal_decode_stb().

◆ webp_arena

ra8_webp_arena_t* ra8_rabook_raster_workspace_t::webp_arena

WebP decoder scratch arena.

Definition at line 47 of file ra8_rabook_raster.h.

Referenced by internal_decode_webp().


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