You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
468 B
26 lines
468 B
4 years ago
|
#pragma once
|
||
|
|
||
|
#include "selfdrive/camerad/cameras/camera_common.h"
|
||
|
#include "selfdrive/ui/replay/framereader.h"
|
||
|
|
||
|
#define FRAME_BUF_COUNT 16
|
||
|
|
||
|
typedef struct CameraState {
|
||
|
int camera_num;
|
||
|
CameraInfo ci;
|
||
|
|
||
|
int fps;
|
||
|
float digital_gain = 0;
|
||
|
|
||
|
CameraBuf buf;
|
||
|
FrameReader *frame = nullptr;
|
||
|
} CameraState;
|
||
|
|
||
|
typedef struct MultiCameraState {
|
||
|
CameraState road_cam;
|
||
|
CameraState driver_cam;
|
||
|
|
||
|
SubMaster *sm = nullptr;
|
||
|
PubMaster *pm = nullptr;
|
||
|
} MultiCameraState;
|