00001 /* 00002 * Capture.h 00003 * 00004 * Copyright (c) 2011 Datapath Ltd. 00005 * 00006 * This file forms part of the Vision driver capture 00007 * application sample source code. 00008 * 00009 * Purpose: Declares capture app main defines, structures and 00010 * functions. 00011 * 00012 */ 00013 00014 #ifndef __BUFFERS_H 00015 #define __BUFFERS_H 00016 00017 typedef struct _sBuffer 00018 { 00019 /* Capture Data */ 00020 char *pData; 00021 unsigned int DataLength; 00022 } sBuffer, *psBuffer; 00023 00024 typedef struct _sBufferFIFO 00025 { 00026 int read; 00027 int write; 00028 sBuffer buffers[8]; 00029 } sBufferFIFO, *psBufferFIFO; 00030 00031 #endif /* __BUFFERS_H */