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

Zero-copy JPEG passthrough codec backend. More...

#include "ra8_camera.h"
#include "ra8_err.h"
Include dependency graph for ra8_camera_codec_passthrough.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

ra8_err_t ra8_camera_codec_passthrough_init (ra8_camera_codec_t *codec)
 Bind the zero-copy JPEG passthrough codec.

Detailed Description

Zero-copy JPEG passthrough codec backend.

Tag
[Ring 4 / Service] {World: NS}

A source which already produces complete JPEG frames should not be decoded and re-encoded. This codec validates that the input format is JPEG and returns an exact view of the same bytes without using output storage.

Since
0.1.0

Definition in file ra8_camera_codec_passthrough.h.

Function Documentation

◆ ra8_camera_codec_passthrough_init()

ra8_err_t ra8_camera_codec_passthrough_init ( ra8_camera_codec_t * codec)
nodiscard

Bind the zero-copy JPEG passthrough codec.

Parameters
[out]codecCaller-owned codec handle to bind.
Returns
ra8_err_t Error code.
Return values
k_ra8_okCodec bound.
k_ra8_err_null_ptrcodec was NULL.
Precondition
codec out-lives every codec operation.
The caller does not mutate the handle while encoding.
Postcondition
On success JPEG input is returned byte-for-byte without copying.
On error no state is modified.
Note
Stateless; independent handles are thread-safe.
Since
0.1.0

Definition at line 71 of file ra8_camera_codec_passthrough.c.

References ra8_camera_codec_t::ctx, ra8_camera_codec_t::iface, k_ra8_err_null_ptr, k_ra8_ok, and s_passthrough_codec_iface.

Referenced by internal_bring_up_capture_pipeline().