67 lines
2.2 KiB
C
67 lines
2.2 KiB
C
|
#pragma once
|
||
|
#include <sstream>
|
||
|
|
||
|
#define LIGHT_DIFF(maxthre, x) ((maxthre)-x)
|
||
|
#define BLACK_DIFF(x) (8 - 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;
|
||
|
};
|
||
|
|
||
|
struct FPGAConfigParam_8478
|
||
|
{
|
||
|
unsigned int ExposureF[3]; // RGB
|
||
|
unsigned int GainF_R[9]; // 123456
|
||
|
unsigned int OffsetF_R[9]; // 123456
|
||
|
unsigned int GainF_G[9]; // 123456
|
||
|
unsigned int OffsetF_G[9]; // 123456
|
||
|
unsigned int GainF_B[9]; // 123456
|
||
|
unsigned int OffsetF_B[9]; // 123456
|
||
|
unsigned int ExposureB[3]; // RGB
|
||
|
unsigned int GainB_R[9]; // 123456
|
||
|
unsigned int OffsetB_R[9]; // 123456
|
||
|
unsigned int GainB_G[9]; // 123456
|
||
|
unsigned int OffsetB_G[9]; // 123456
|
||
|
unsigned int GainB_B[9]; // 123456
|
||
|
unsigned int OffsetB_B[9]; // 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;
|
||
|
};
|