File size: 620 Bytes
ce7fc72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Copyright (c) 2026 Eoin Jordan
 * SPDX-License-Identifier: Apache-2.0
 */
#pragma once

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

/* Side of the colour picture the pose model takes. */
#define APP_RGB_SIDE 96

/* Bring up the camera chosen in devicetree (zephyr,camera) at 160x120 RGB565
 * and start streaming. Returns 0 or a negative errno.
 */
int app_camera_init(void);

/* Block for the next frame, centre-crop to a square and box-reduce it to
 * 96 x 96 RGB565 in host byte order (`out`, row-major, 9216 pixels).
 */
int app_camera_capture_rgb565(uint16_t *out);

#ifdef __cplusplus
}
#endif