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

Immutable view of one captured or encoded image. More...

#include <ra8_camera.h>

Data Fields

const uint8_t * data
 Borrowed immutable image bytes.
uint32_t bytes
 Valid bytes beginning at data.
uint32_t stride_bytes
 Bytes between uncompressed rows.
uint16_t width
 Image width in pixels.
uint16_t height
 Image height in pixels.
ra8_camera_format_t format
 Pixel or compressed-image layout.

Detailed Description

Immutable view of one captured or encoded image.

data is borrowed. For source captures it points at the supplied capture buffer. For software encoding it points at the supplied output buffer. A passthrough codec may instead alias its input.

Invariant
Width and height are non-zero for every valid frame.
JPEG frames have stride 0; uncompressed frames cover every row.
Since
0.1.0

Definition at line 96 of file ra8_camera.h.

Field Documentation

◆ bytes

◆ data

◆ format

◆ height

uint16_t ra8_camera_frame_t::height

◆ stride_bytes

uint32_t ra8_camera_frame_t::stride_bytes

Bytes between uncompressed rows.

Definition at line 99 of file ra8_camera.h.

Referenced by cam_frame_is_plausible(), internal_jpeg_sw_read_rgb(), internal_memory_get_info(), and ra8_camera_frame_validate().

◆ width

uint16_t ra8_camera_frame_t::width

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