move struct LogCameraInfo into loggerd.h (#23129)

old-commit-hash: 480fb54926392b760944f5fafe7b4c96abee29ff
This commit is contained in:
Dean Lee
2021-12-05 13:08:55 +08:00
committed by GitHub
parent de54dd20ec
commit 3ba7f99688
2 changed files with 17 additions and 18 deletions
-18
View File
@@ -30,7 +30,6 @@
const int UI_BUF_COUNT = 4;
const int YUV_BUFFER_COUNT = Hardware::EON() ? 100 : 40;
enum CameraType {
RoadCam = 0,
DriverCam,
@@ -52,23 +51,6 @@ typedef struct CameraInfo {
bool hdr;
} CameraInfo;
typedef struct LogCameraInfo {
CameraType type;
const char* filename;
const char* frame_packet_name;
const char* encode_idx_name;
VisionStreamType stream_type;
int frame_width, frame_height;
int fps;
int bitrate;
bool is_h265;
bool downscale;
bool has_qcamera;
bool trigger_rotate;
bool enable;
bool record;
} LogCameraInfo;
typedef struct FrameMetadata {
uint32_t frame_id;
unsigned int frame_length;
+17
View File
@@ -41,6 +41,23 @@ const int DCAM_BITRATE = Hardware::TICI() ? MAIN_BITRATE : 2500000;
const bool LOGGERD_TEST = getenv("LOGGERD_TEST");
const int SEGMENT_LENGTH = LOGGERD_TEST ? atoi(getenv("LOGGERD_SEGMENT_LENGTH")) : 60;
struct LogCameraInfo {
CameraType type;
const char *filename;
const char *frame_packet_name;
const char *encode_idx_name;
VisionStreamType stream_type;
int frame_width, frame_height;
int fps;
int bitrate;
bool is_h265;
bool downscale;
bool has_qcamera;
bool trigger_rotate;
bool enable;
bool record;
};
const LogCameraInfo cameras_logged[] = {
{
.type = RoadCam,