mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-05 08:16:03 +08:00
9ef68f2d96
old-commit-hash: ecfb9d88d0726d93dc9454d05953352e3d3e5667
33 lines
478 B
C
33 lines
478 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_num;
|
|
CameraInfo ci;
|
|
|
|
int fps;
|
|
float digital_gain;
|
|
|
|
CameraBuf buf;
|
|
} CameraState;
|
|
|
|
typedef struct MultiCameraState {
|
|
CameraState road_cam;
|
|
CameraState driver_cam;
|
|
|
|
SubMaster *sm;
|
|
PubMaster *pm;
|
|
} MultiCameraState;
|