嵌入式系统是一种以应用为中心,以计算机技术为基础,其软硬件可配置、可裁减,对功能、可靠性、成本、体积、功耗有严格约束的专用计算机系统。它结合了先进的计算机技术、半导体技术、电子技术以及各个行业的具体应用,被看作技术密集、不断创新的知识集成系统。近几年来以软硬件相结合为显著特征、以消费电子类为主导的智能设备以超乎人们想象的速度获得了前所未有的发展,与此同时,在工控领域也得到快速发展,在这个过程中,微软公司也是首当其冲,其推出的Microsoft Windows CE是一个开放的、可裁减的、32位的实时操作系统和其他桌面版窗口操作系统相比,具有可靠性好、实时性高、内核体积小的特点,所以被广泛用于各种嵌入式智能设备的开发,如工业控制、信息家电、移动通信、个人电子消费品等各个领域,是当今应用最多、增长最快的嵌入式操作系统。
// Name : capInitCamera
// Initialize driver and get current available cameras number.
//Return : The number, of the available cameras, indicates success.
int capInitCamera(void); // Name : capGetCurrentVersion
// Get the current driver version information.
// Return : The length, in characters, of the copied string,
// not including the terminating null character, indicates success.
int capGetCurrentVersion(
int index, //[IN] Camera index, 0 - first
insigned char *pBufOut, // [OUT] Long pointer to the buffer that
// will receive the text
int lenOut // [IN] Specifies the maximum number of characters
//to copy to the buffer, including the NULL character.
// If the text exceeds this limit, it is truncated.
);
//Name : capGetVideoFormat
// Get the current video format.
//Return : Zero indicates success.
int capGetVideoFormat(
int index, // [IN] Camera index
int *pFormat, // [OUT] Long pointer to the buffer that will receive
//the video format, VIDEO_PALETTE_RGB565 -
//VIDEO_PALETTE_JPEG
int *pSizeMode //[OUT] Long pointer to the buffer that will receive
// the size mode, VIDEO_SIZE_VGA - VIDEO_SIZE_SIF
);