48 if (out_info ==
nullptr) {
86 if (buffer ==
nullptr) {
89 if (out_frame ==
nullptr) {
97 *out_frame = state->
frame;
112 if (source ==
nullptr) {
115 if (state ==
nullptr) {
118 if (frame ==
nullptr) {
125 state->
frame = *frame;
Annotation-attribute framework macros for ra8-firmware.
#define RA8_INTERNAL
Marker that a function is intended to be static (file-local).
static const ra8_audio_source_iface_t s_memory_source_iface
static ra8_err_t internal_memory_get_info(void *ctx, ra8_audio_source_info_t *out_info)
Report metadata for the fixed memory frame.
static ra8_err_t internal_memory_capture(void *ctx, const ra8_audio_buffer_t *buffer, ra8_audio_frame_t *out_frame)
Copy the fixed memory frame into a caller buffer.
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.
Private source and codec vtables for ra8_camera backends.
static ra8_err_t internal_memory_capture(void *ctx, const ra8_camera_buffer_t *buffer, ra8_camera_frame_t *out_frame)
Copy the fixed frame into the caller's capture buffer.
ra8_err_t ra8_camera_source_memory_init(ra8_camera_source_t *source, ra8_camera_source_memory_state_t *state, const ra8_camera_frame_t *frame)
Bind a repeatable source backed by one immutable frame.
static ra8_err_t internal_memory_get_info(void *ctx, ra8_camera_source_info_t *out_info)
Query the fixed frame's native geometry.
Fixed in-memory frame source backend for ra8_camera.
Error Code Definitions for ra8-firmware.
@ k_ra8_ok
Success – operation completed with all postconditions satisfied.
@ k_ra8_err_null_ptr
Pointer was NULL where a valid pointer was required.
@ k_ra8_err_invalid_size
Invalid size parameter (too large, too small, or misaligned).
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
void * memcpy(void *dst, const void *src, size_t n)
Copy memory area between non-overlapping regions.
Caller-owned writable byte-buffer description.
uint32_t capacity
Writable byte capacity.
uint8_t * data
First writable byte, or NULL when capacity is zero.
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.
Native geometry and worst-case storage required by a source.
Caller-owned state for a fixed-frame memory source.
ra8_camera_frame_t frame
Borrowed fixed frame (private).
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).