Changeset 8856 for trunk/MagicSoft/Cosy/videodev
- Timestamp:
- 02/05/08 11:41:55 (17 years ago)
- Location:
- trunk/MagicSoft/Cosy/videodev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/videodev/Camera.cc
r8843 r8856 102 102 if (!fVideo->IsOpen()) 103 103 { 104 gLog << "ERROR - Process:Device not open." << endl;104 gLog << err << "Camera::Thread: ERROR - Device not open." << endl; 105 105 return kFALSE; 106 106 } -
trunk/MagicSoft/Cosy/videodev/MVideo.cc
r8849 r8856 104 104 return -4; 105 105 106 gLog << err << "ERROR - MVideo::Ioctl -ioctl returned rc=" << rc << " '";107 gLog << strerror(errno) << " ' (errno = " << errno<< ")" << endl;106 gLog << err << "ERROR - MVideo::Ioctl 0x" << hex << req << ": errno=" << dec << errno << " - "; 107 gLog << strerror(errno) << " (rc=" << rc << ")" << endl; 108 108 usleep(10); 109 109 continue; 110 110 } 111 111 112 gLog << err << "ERROR - MVideo::Ioctl " << hex << req << ": errno=" << dec << errno << " - ";112 gLog << err << "ERROR - MVideo::Ioctl 0x" << hex << req << ": errno=" << dec << errno << " - "; 113 113 gLog << strerror(errno) << " (rc=" << rc << ")" << endl; 114 114 return rc; … … 161 161 } 162 162 163 gLog << all << "Opening " << fPath << "... " << flush;163 gLog << all << "Opening " << fPath << "... " << flush; 164 164 do 165 165 { … … 171 171 if (fFileDesc == -1) 172 172 { 173 gLog << err << "ERROR !"<< endl;173 gLog << err << "ERROR: " << strerror(errno) << endl; 174 174 return kFALSE; 175 175 } … … 263 263 fCaps.maxheight, fCaps.maxwidth, // height, width 264 264 VIDEO_PALETTE_RGB24 // palette 265 //768, 576, 266 //VIDEO_PALETTE_RGB555 // palette 265 267 }; 266 268 … … 271 273 return kTRUE; 272 274 273 if (errno == EAGAIN)275 // if (errno == EAGAIN) 274 276 gLog << err << "ERROR - Couldn't start capturing frame " << frame << " - unable to sync." << endl; 275 277 … … 341 343 342 344 memcpy(&fChannel, &ch, sizeof(fChannel)); 345 346 gLog << all << "Switched to channel " << chan << endl; 343 347 344 348 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.