/********************OSD隐私保护参数***********************/
struct PRITOSD
{
unsigned short X; //x轴座标
unsigned short Y; // y轴座标
unsigned short Width; //宽度
unsigned short Height; //高度
unsigned char Type; //遮挡区域类型
unsigned char Color[3]; //遮挡区域填充色
}__attribute__((packed));
/*********************图像遮挡参数*************************/
struct OVALM
{
unsigned char Level; //报警灵敏度等级0~9 [0=功能关]
unsigned char Speed; //防抖动处理,检测速度
unsigned char Enable; //是否启用
unsigned char CallCenter; //是否上报中心警方式
unsigned char Soundor; //声音报警方式
unsigned char OutChan; //报警器输出通道
struct DEFTIME strategy[7];
}__attribute__((packed));
struct CONFIG
{
struct DEVHARDPARAM dev;
struct NETPARAM net;
int (*SetNetParam)(struct NETPARAM *this);
struct NAMEPARAM name;
int (*SetNameParam)(struct NAMEPARAM *this);
struct STORPARAM store;
int (*SetStoreParam)(struct STORPARAM *this);
struct ALMINPUT alarmIn[MAX_ALARMINPUTS];
int (*SetAlarmInParam)(int chn,struct ALMINPUT *this);
struct ALMOUTPUT alarmOut[MAX_ALARMOUTPUTS];
int (*SetAlarmOutParam)(int chn,struct ALMOUTPUT *this);
struct SERIAL serial;
int (*SetSerialParam)(struct SERIAL *this);
struct MEDIAPARAM media;
int (*SetAencParam)(unsigned char this); //设置音频编解码格式
int (*SetVformatParam)(unsigned char this); //设置视频输入制式
int (*SetVencParam)(int chn,int isMain,struct VENC *this);
struct VOPARAM vo;
int (*SetCVBSParam)(unsigned char mod, unsigned char ser, unsigned char size, unsigned char time);
int (*SetVGAParam)(unsigned char mod, unsigned char ser, unsigned char size, unsigned char time);
struct JPEGPARAM jpeg[MAXVIDEOCHNS];
int (*SetJpegParam)(int chn,unsigned char resolution,unsigned char picLevel);
struct TITLEOSD osdTitle[MAXVIDEOCHNS];
int (*SetOsdTitleParam)(int chn,struct TITLEOSD *this);
struct TIMEOSD osdTime[MAXVIDEOCHNS];
int (*SetOsdTimeParam)(int chn,struct TIMEOSD *this);
struct PRITOSD osdPrivacy[MAXVIDEOCHNS][4];
int (*SetOsdPrivacy)(int chn,int area,struct PRITOSD *this);
struct OVALM overlay[MAXVIDEOCHNS];
int (*SetOverlayParam)(int chn,struct OVALM *this);
struct SENSE sense[MAXVIDEOCHNS][4];
int (*SetSenseParam)(int chn,int area,struct SENSE *this);
struct SINGLELOST singleLost[MAXVIDEOCHNS];
int (*SetSingleLost)(int chn,struct SINGLELOST *this);
struct SENSORPARAM sensorParam[MAXVIDEOCHNS];
int (*SetSensorParam)(int chn,struct SENSORPARAM *this);
char cPlatform[2048];
int (*SetPlatformParam)(char * this);
int (*GetPlatformParam)(char * this); //获取平台参数,返回参数长度
char cWirelessAlarm[256];
int (*SetWirelessAlarm)(char * this);
int (*ParamBakup)(void);
int (*ParamReset)(void);
};