40 lines
1.1 KiB
C++
40 lines
1.1 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;
|
|
}; |