63typedef enum : uint8_t {
struct ra8_camera_codec_iface ra8_camera_codec_iface_t
Opaque codec vtable; concrete codec backends define its rows.
ra8_err_t ra8_camera_frame_validate(const ra8_camera_frame_t *frame)
Validate the geometry and storage coverage of a frame view.
struct ra8_camera_source_iface ra8_camera_source_iface_t
Opaque source vtable; concrete source backends define its rows.
ra8_camera_format_t
Pixel and compressed-image layouts understood by the facade.
@ k_ra8_camera_format_rgb888
Packed R, G, B bytes per pixel.
@ k_ra8_camera_format_uyvy422
Packed Cb, Y0, Cr, Y1 pixel pairs.
@ k_ra8_camera_format_jpeg
Complete encoded JPEG byte stream.
ra8_err_t ra8_camera_source_get_info(ra8_camera_source_t *source, ra8_camera_source_info_t *out_info)
Query a bound source's native output and capture-buffer bound.
ra8_err_t ra8_camera_source_capture(ra8_camera_source_t *source, const ra8_camera_buffer_t *buffer, ra8_camera_frame_t *out_frame)
Capture one frame into a caller-owned buffer.
ra8_err_t ra8_camera_codec_encode(ra8_camera_codec_t *codec, const ra8_camera_frame_t *input, const ra8_camera_buffer_t *output_buffer, ra8_camera_frame_t *out_frame)
Encode or transform one frame through a bound codec.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Caller-owned writable byte-buffer description.
uint32_t capacity
Writable byte capacity.
uint8_t * data
First writable byte, or NULL when capacity is zero.
Operation every codec backend supplies.
Caller-owned handle binding one image codec and its context.
void * ctx
Caller-owned backend context.
const ra8_camera_codec_iface_t * iface
Bound codec vtable (private).
Immutable view of one captured or encoded image.
ra8_camera_format_t format
Pixel or compressed-image layout.
const uint8_t * data
Borrowed immutable image bytes.
uint32_t bytes
Valid bytes beginning at data.
uint16_t height
Image height in pixels.
uint16_t width
Image width in pixels.
uint32_t stride_bytes
Bytes between uncompressed rows.
Operations every source backend supplies.
Native geometry and worst-case storage required by a source.
ra8_camera_format_t format
Native output format.
uint32_t frame_bytes_max
Required capture-buffer capacity.
uint16_t width
Native width in pixels.
uint32_t stride_bytes
Native row stride, or zero/JPEG.
uint16_t height
Native height in pixels.
Caller-owned handle binding one source backend and its context.
void * ctx
Caller-owned backend context.
const ra8_camera_source_iface_t * iface
Bound source vtable (private).