capturethread.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _CAPTURE_THREAD_H_
00025 #define _CAPTURE_THREAD_H_
00026
00027 #include <threads/thread.h>
00028 #include "image.h"
00029 #include "globals.h"
00030
00031 using namespace cpp_threads;
00032
00033 namespace LIBCP {
00034
00038 class CaptureThread : public Pthread
00039 {
00040 public:
00041 CaptureThread( int file_descriptor, VideoMMap* map,
00042 VideoMBuffer* buf, callback callme );
00043
00044 void stop(){ Pthread::stop(); while( !terminated() ) usleep(5); }
00045 int thread(void *);
00046 protected:
00047 Semaphore m_go;
00048 private:
00049 int m_fd;
00050 VideoMMap* m_map;
00051 VideoMBuffer* m_buf;
00052 callback m_callme;
00053 unsigned char* m_bigbuf;
00054 unsigned char* m_outbuf;
00055 Image* m_image;
00056 };
00057
00058 }
00059
00060 #endif //_CAPTURE_THREAD_H_
Generated on Wed May 26 16:43:52 2004 for libcp by
1.3.7