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

Parsed + validated geometry of one JOF atlas. More...

#include <jof.h>

Data Fields

uint16_t width
 Image width, pixels.
uint16_t height
 Image height, pixels.
uint16_t tile_w
 Tile width, pixels.
uint16_t tile_h
 Tile height, pixels.
uint16_t tile_cols
 Ceil(width / tile_w) tile columns.
uint16_t tile_rows
 Ceil(height / tile_h) tile rows.
uint8_t bpp
 Bytes per pixel (1, 3 or 4).
uint8_t codec
 jof_codec_t member.
uint32_t tile_count
 Total tiles (== cols * rows).
uint32_t index_off
 Absolute byte offset of the tile index.
uint32_t total_size
 Whole atlas byte length (footer included).

Detailed Description

Parsed + validated geometry of one JOF atlas.

Filled by jof_parse(); callers treat it as read-only after that. tile_cols/tile_rows are the ceil-division grid dimensions; index_off/total_size locate the tile index.

Invariant
tile_count == (uint32_t)tile_cols * tile_rows and index_off + tile_count * 8 + 16 == total_size once parsed.
See also
jof_parse()
Since
0.1.0

Definition at line 208 of file jof.h.

Field Documentation

◆ bpp

◆ codec

◆ height

◆ index_off

uint32_t jof_info_t::index_off

Absolute byte offset of the tile index.

Definition at line 218 of file jof.h.

Referenced by internal_audit_tile(), internal_check_cross(), internal_finish(), internal_geometry(), internal_index_entry(), and jof_audit().

◆ tile_cols

uint16_t jof_info_t::tile_cols

◆ tile_count

◆ tile_h

◆ tile_rows

uint16_t jof_info_t::tile_rows

◆ tile_w

◆ total_size

uint32_t jof_info_t::total_size

Whole atlas byte length (footer included).

Definition at line 219 of file jof.h.

Referenced by internal_accept(), internal_check_cross(), internal_finish(), internal_geometry(), internal_produce(), and internal_report().

◆ width


The documentation for this struct was generated from the following file:
  • apps/shared_libs/jof/inc/jof.h