speedcontroller/ui/CameraParam.h

46 lines
1.4 KiB
C++

#pragma once
#include <sstream>
const std::string cameraparam = "/usr/local/huago/cameraparam.json";
const std::string MT_DRV888_CUO_PATH = "/usr/local/huago/drv888_cuo.json";
const std::string MT_DRV888_ZOU_PATH = "/usr/local/huago/drv888_zou.json";
const std::string MT_TMC216_CUO_PATH = "/usr/local/huago/tmc216_cuo.json";
const std::string MT_TMC216_ZOU_PATH = "/usr/local/huago/tmc216_zou.json";
#define LIGHT_DIFF(maxthre, x) ((maxthre)-x)
#define BLACK_DIFF(x) (10 - x)
#define FMT_STEP(x) \
do \
{ \
if (x < 1 && x > 0) \
{ \
x = 1; \
} \
if (step < 0 && step > -1) \
{ \
x = -1; \
} \
} while (0)
struct FPGAConfigParam
{
unsigned int ExposureF[3]; //RGB
unsigned int GainF[6]; //123456
unsigned int OffsetF[6]; //123456
unsigned int ExposureB[3]; //RGB
unsigned int GainB[6]; //123456
unsigned int OffsetB[6]; //123456
unsigned int DpiMode;
unsigned int ColorMode;
unsigned int MaxBright;
unsigned int MaxExp;
unsigned int Sp;
unsigned int HRatio;
unsigned int VRatio;
std::string LutPath;
std::string TextLutPath;
std::string Flat_BwPath;
std::string Flat_WhitePath;
};