|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Fixed in-memory frame source backend for ra8_camera. More...
Go to the source code of this file.
Data Structures | |
| struct | ra8_camera_source_memory_state_t |
| Caller-owned state for a fixed-frame memory source. More... | |
Functions | |
| 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. | |
Fixed in-memory frame source backend for ra8_camera.
Binds one immutable frame as a repeatable camera source. Each capture copies the fixed frame into the caller's capture buffer. Besides host tests, this is useful for replaying a recorded RGB, UYVY, or JPEG frame through the same source/codec pipeline as live hardware.
Definition in file ra8_camera_source_memory.h.
|
nodiscard |
Bind a repeatable source backed by one immutable frame.
| [out] | source | Caller-owned source handle to bind. |
| [out] | state | Caller-owned backend state to populate. |
| [in] | frame | Valid immutable frame to replay. |
| k_ra8_ok | Source bound. |
| k_ra8_err_null_ptr | An argument or frame->data was NULL. |
| other | Propagated from ra8_camera_frame_validate. |
Definition at line 108 of file ra8_camera_source_memory.c.
References ra8_camera_source_t::ctx, ra8_camera_source_memory_state_t::frame, ra8_camera_source_t::iface, k_ra8_err_null_ptr, k_ra8_ok, ra8_camera_frame_validate(), and s_memory_source_iface.