Changeset 910 for trunk/MagicSoft/Cosy/videodev
- Timestamp:
- 08/15/01 12:52:38 (23 years ago)
- Location:
- trunk/MagicSoft/Cosy/videodev
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/videodev/Camera.cc
r808 r910 187 187 188 188 189 void Camera::Execute(const unsigned long n, 190 byte *img, 191 struct timeval *tm) 189 void Camera::ProcessFrame(const unsigned long n, byte *img, 190 struct timeval *tm) 192 191 { 193 192 cout << "Img: " << n << " " << (void*)img << endl; … … 247 246 if (!StartGrab(i&1)) 248 247 break; 249 Execute(i, (byte*)fImg, &fTime);248 ProcessFrame(i, (byte*)fImg, &fTime); 250 249 i++; 251 250 } … … 254 253 { 255 254 LoopStep(i); 256 Execute(i, (byte*)fImg, &fTime);255 ProcessFrame(i, (byte*)fImg, &fTime); 257 256 i++; 258 257 } 259 258 260 259 LoopStep(i); 261 Execute(i, (byte*)fImg, &fTime);260 ProcessFrame(i, (byte*)fImg, &fTime); 262 261 i++; 263 262 -
trunk/MagicSoft/Cosy/videodev/Camera.h
r808 r910 86 86 // Execution of one frame - this function may be overloaded! 87 87 // 88 virtual void Execute(const unsigned long n,89 byte *img, struct timeval *tm);88 virtual void ProcessFrame(const unsigned long n, 89 byte *img, struct timeval *tm); 90 90 91 91 // -
trunk/MagicSoft/Cosy/videodev/Writer.cc
r808 r910 7 7 #include <png.h> 8 8 9 #include " timer.h"9 #include "base/timer.h" 10 10 11 11 void Writer::Png(const char *fname, const byte *buf, … … 80 80 char text[36]; 81 81 82 Timer time (date);83 sprintf(text, "*** %s ***", time .GetTimeStr());82 Timer timet(date); 83 sprintf(text, "*** %s ***", timet.GetTimeStr()); 84 84 png_write_chunk(fPng, (png_byte*)"UTC", (png_byte*)text, strlen(text)); 85 85 sprintf(text,"*** %s %s %.1f %i ***", tzname[0], tzname[1], 1.0/3600*timezone, daylight);
Note:
See TracChangeset
for help on using the changeset viewer.