ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_camera_codec_jpeg_sw.h
Go to the documentation of this file.
1
19
20#pragma once
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <stdint.h>
27
28#include "ra8_camera.h"
29#include "ra8_err.h"
30
43typedef struct {
44 uint8_t* rgb_workspace;
46 uint16_t output_width;
47 uint16_t output_height;
48 uint8_t quality;
50
63
86
87#ifdef __cplusplus
88}
89#endif
Transport-neutral camera source and image-codec facade.
ra8_err_t ra8_camera_codec_jpeg_sw_init(ra8_camera_codec_t *codec, ra8_camera_codec_jpeg_sw_state_t *state, const ra8_camera_codec_jpeg_sw_cfg_t *cfg)
Bind the software baseline-JPEG encoder backend.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
Configuration and caller-owned RGB workspace for software JPEG.
uint16_t output_width
Encoded image width.
uint32_t rgb_workspace_capacity
Writable workspace bytes.
uint8_t quality
JPEG quality passed to the encoder.
uint16_t output_height
Encoded image height.
uint8_t * rgb_workspace
Caller-owned packed RGB workspace.
Caller-owned private state for the software JPEG backend.
ra8_camera_codec_jpeg_sw_cfg_t cfg
Validated configuration (private).
Caller-owned handle binding one image codec and its context.
Definition ra8_camera.h:145