appMain.h
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:1k
- #ifndef _APP_MAIN_H
- #define _APP_MAIN_H
- #include <std.h>
- #include <que.h>
- #include <scom.h>
- #if _NTSC
- #define VIDEO_FORMAT NTSC
- #define VIDEO_RES RES_NTSC_FULL
- #define FRM_WIDTH 720
- #define FRM_HEIGHT 480
- #define IMG_WIDTH 720
- #define IMG_HEIGHT 480
- #elif _PAL
- #define VIDEO_FORMAT PAL
- #define VIDEO_RES RES_PAL_CIF
- #define FRM_WIDTH 352
- #define FRM_HEIGHT 288
- #define IMG_WIDTH 352
- #define IMG_HEIGHT 288
- #endif
- #define FRAME_BUF_SIZE (FRM_WIDTH*FRM_HEIGHT*2) /* 4:2:2 format 16-bit/pixel */
- extern void tskVideoInputInit();
- extern void tskVideoOutputInit();
- extern void tskProcessInit();
- typedef struct _ScomMessage {
- QUE_Elem queElem; // must be first field.
- int motion;
- int sizeLinear;
- void *bufLinear;
- void *bufY;
- void *bufU;
- void *bufV;
- } ScomMessage;
- #define CMD_SETCLOCK 0
- #define CMD_SHOWCLOCK 1
- #define CMD_SHOWDOTS 2
- #define CMD_MAX 2
- extern unsigned int netcmdArgs[CMD_MAX+1];
- #endif /*_APP_MAIN_H */