00001 /* 00002 * CaptureThread.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 worker thread structures and 00010 * functions. 00011 * 00012 */ 00013 00014 #include <pthread.h> 00015 00016 struct _sCapture; 00017 00018 typedef struct _sCaptureThreadArgs 00019 { 00020 /* Capture Structure */ 00021 struct _sCapture *pCapture; 00022 } sCaptureThreadArgs, *psCaptureThreadArgs; 00023 00024 extern int CaptureThreadStop; 00025 00026 int CreateCaptureThread(struct _sCapture *pCapture, psCaptureThreadArgs pCaptureThreadArgs); 00027 void JoinCaptureThread(struct _sCapture *pCapture); 00028 void FreeCaptureThreadArgs(psCaptureThreadArgs *pCaptureThreadArgs);