ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
cam_image.h
Go to the documentation of this file.
1
18
19#pragma once
20
21#include <stdint.h>
22
23#include "ra8_err.h"
24
33
39
45
51
57
62extern const uint32_t g_cam_rgb_frame_bytes;
63
83ra8_err_t cam_image_generate(const uint8_t* uyvy, uint32_t source_bytes);
cam_image_size_t
Captured VGA geometry and RGB888 buffer contract.
Definition cam_image.h:26
@ k_cam_uyvy_frame_bytes
640 x 480 x 2-byte packed UYVY input.
Definition cam_image.h:29
@ k_cam_image_height_px
Unrotated and 180-degree height.
Definition cam_image.h:28
@ k_cam_image_width_px
Unrotated and 180-degree width.
Definition cam_image.h:27
@ k_cam_rgb_frame_bytes
640 x 480 x 3 bytes.
Definition cam_image.h:31
@ k_cam_rgb_bytes_per_px
RGB888 bytes per output pixel.
Definition cam_image.h:30
ra8_err_t cam_image_generate(const uint8_t *uyvy, uint32_t source_bytes)
Convert one packed Cb-Y0-Cr-Y1 VGA frame into all four RGB views.
Definition cam_image.c:209
const uint32_t g_cam_rgb_frame_bytes
Stable byte count of each exported RGB888 buffer.
Definition cam_image.c:57
uint8_t g_cam_rgb_180[k_cam_rgb_frame_bytes]
Clockwise-180-degree 640x480 RGB888 image in external SDRAM.
Definition cam_image.c:53
uint8_t g_cam_rgb_90[k_cam_rgb_frame_bytes]
Clockwise-90-degree 480x640 RGB888 image in external SDRAM.
Definition cam_image.c:51
uint8_t g_cam_rgb_0[k_cam_rgb_frame_bytes]
Unrotated 640x480 RGB888 image in external SDRAM.
Definition cam_image.c:49
uint8_t g_cam_rgb_270[k_cam_rgb_frame_bytes]
Clockwise-270-degree 480x640 RGB888 image in external SDRAM.
Definition cam_image.c:55
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