mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 11:23:49 +08:00
726a8a71a2
old-commit-hash: 468dc3f5a4c5053c61b51bf217db5888079dbb6f
37 lines
535 B
C
37 lines
535 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
|
|
#ifdef __APPLE__
|
|
#include <OpenCL/cl.h>
|
|
#else
|
|
#include <CL/cl.h>
|
|
#endif
|
|
|
|
#include "camera_common.h"
|
|
|
|
#define FRAME_BUF_COUNT 16
|
|
|
|
typedef struct CameraState {
|
|
int camera_id;
|
|
int camera_num;
|
|
CameraInfo ci;
|
|
|
|
int fps;
|
|
float digital_gain;
|
|
float cur_gain_frac;
|
|
|
|
CameraBuf buf;
|
|
} CameraState;
|
|
|
|
typedef struct MultiCameraState {
|
|
int ispif_fd;
|
|
|
|
CameraState road_cam;
|
|
CameraState driver_cam;
|
|
|
|
SubMaster *sm;
|
|
PubMaster *pm;
|
|
} MultiCameraState;
|