Changeset 1802 for trunk/MagicSoft/Cosy/videodev
- Timestamp:
- 03/02/03 16:55:47 (22 years ago)
- Location:
- trunk/MagicSoft/Cosy/videodev
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/videodev/Camera.cc
r1531 r1802 102 102 } 103 103 104 Camera::Camera( ) : fd(-1), iBufferSize(0)104 Camera::Camera(PixClient &client) : fd(-1), iBufferSize(0), fClient(client) 105 105 { 106 106 cout << "Starting thread..." << flush; … … 192 192 193 193 194 void Camera::ProcessFrame(const unsigned long n, byte *img,195 struct timeval *tm)196 {197 cout << "Img: " << n << " " << (void*)img << endl;198 }199 200 194 void *Camera::MapThread(void *arg) 201 195 { … … 251 245 break; 252 246 253 ProcessFrame(i, (byte*)fImg, &fTime);247 fClient.ProcessFrame(i, (byte*)fImg, &fTime); 254 248 i++; 255 249 } … … 258 252 { 259 253 LoopStep(i); 260 ProcessFrame(i, (byte*)fImg, &fTime);254 fClient.ProcessFrame(i, (byte*)fImg, &fTime); 261 255 i++; 262 256 } 263 257 264 258 LoopStep(i); 265 ProcessFrame(i, (byte*)fImg, &fTime);259 fClient.ProcessFrame(i, (byte*)fImg, &fTime); 266 260 i++; 267 261 -
trunk/MagicSoft/Cosy/videodev/Camera.h
r1266 r1802 14 14 #endif 15 15 16 17 typedef unsigned char byte; 16 #include "PixClient.h" 18 17 19 18 class Camera … … 51 50 pthread_cond_t fCond; 52 51 52 PixClient &fClient; 53 53 54 // 54 55 // Hardware dependant functions … … 74 75 75 76 public: 76 Camera( );77 Camera(PixClient &client); 77 78 virtual ~Camera(); 78 79 … … 96 97 // Execution of one frame - this function may be overloaded! 97 98 // 98 virtual void ProcessFrame(const unsigned long n,99 byte *img, struct timeval *tm);99 //virtual void ProcessFrame(const unsigned long n, 100 // byte *img, struct timeval *tm); 100 101 101 102 // -
trunk/MagicSoft/Cosy/videodev/Makefile
r1691 r1802 20 20 # @endcode 21 21 22 INCLUDES = -I. -I.. -I../incl -I../base -I /usr/X11R6/include22 INCLUDES = -I. -I.. -I../incl -I../base -I../caos -I/usr/X11R6/include 23 23 24 24 # @code … … 32 32 33 33 SRCFILES = Camera.cc \ 34 PngReader.cc \ 35 PixClient.cc \ 34 36 Filter.cc \ 35 37 Filter2.cc \ 38 CaosFilter.cc \ 36 39 Writer.cc 37 40 -
trunk/MagicSoft/Cosy/videodev/VideodevLinkDef.h
r1691 r1802 8 8 #pragma link C++ class Filter+; 9 9 #pragma link C++ class Filter2+; 10 #pragma link C++ class CaosFilter+; 10 11 11 12 #pragma link C++ class Camera+; 13 #pragma link C++ class PngReader+; 12 14 13 15 #endif
Note:
See TracChangeset
for help on using the changeset viewer.