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

来源:互联网 发布:基因大数据分析 编辑:程序博客网 时间:2024/06/05 18:24

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

};

0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 苍蝇不小心碰到嘴唇了怎么办 苍蝇老往身上飞怎么办 单位乒乓球比赛有领导参加怎么办 意外看到别人打野战怎么办 骨盆低想顺产要怎么办 右胯比左胯突出怎么办 一岁宝宝骨盆不对称怎么办 入盆了又出来了怎么办 大腿前突小腿后怎么办 英语不好高二了怎么办 断奶后又复吸怎么办 招联金融综合评定不足怎么办 git本地分支比远程高怎么办 娃儿上嘴唇里面破了怎么办 错过了各大招聘怎么办 优秀团员申请表没有获奖情况怎么办 大学生毕业学生登记表涂改了怎么办 c语言挂科了怎么办 吸入腐蚀性气体鼻子流血了怎么办 腰劳损痛的厉害怎么办 两个宝宝斜颈左边力量差怎么办 姿势不正确引起的习惯性斜颈怎么办 一岁宝宝有点斜颈怎么办 六个月宝宝有点斜颈怎么办 5月宝宝有点斜颈怎么办 半岁宝宝头偏怎么办 肌性斜颈成年后怎么办 5个月孩子脖子歪怎么办 宝宝一岁多头歪怎么办 四个月宝宝歪脖子怎么办 1岁宝宝脖子歪怎么办 宝宝脖子是歪的怎么办 小孩脖子睡歪了怎么办 脸部三角区肿了怎么办 面部三角区挤了怎么办 胳膊扭着了肿了怎么办 多囊卵巢综合症治不好怎么办 胳膊受了风发麻怎么办 胳膊抻筋了很疼怎么办 腰抻了怎么办最有效 孩子胳膊抻着了怎么办