四.设备某一参数的标示方法。 一般是结构体,结构体嵌套结构体

/********************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);

};

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值