@@ -243,7 +243,7 @@ - (IplImage*)getOutput;
243
243
camNum = cameraNum;
244
244
245
245
if (!startCaptureDevice (camNum)) {
246
- cout << " Warning, camera failed to properly initialize!" << endl;
246
+ std:: cout << " Warning, camera failed to properly initialize!" << std:: endl;
247
247
started = 0 ;
248
248
} else {
249
249
started = 1 ;
@@ -288,7 +288,7 @@ - (IplImage*)getOutput;
288
288
289
289
IplImage* CvCaptureCAM::queryFrame () {
290
290
while (!grabFrame ()) {
291
- cout << " WARNING: Couldn't grab new frame from camera!!!" << endl;
291
+ std:: cout << " WARNING: Couldn't grab new frame from camera!!!" << std:: endl;
292
292
/*
293
293
cout << "Attempting to restart camera; set capture property DISABLE_AUTO_RESTART to disable." << endl;
294
294
stopCaptureDevice();
@@ -320,15 +320,15 @@ - (IplImage*)getOutput;
320
320
AVCaptureDevice *device;
321
321
NSArray * devices = [AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo];
322
322
if ([devices count ] == 0 ) {
323
- cout << " AV Foundation didn't find any attached Video Input Devices!" << endl;
323
+ std:: cout << " AV Foundation didn't find any attached Video Input Devices!" << std:: endl;
324
324
[localpool drain ];
325
325
return 0 ;
326
326
}
327
327
328
328
if (cameraNum >= 0 ) {
329
329
camNum = cameraNum % [devices count ];
330
330
if (camNum != cameraNum) {
331
- cout << " Warning: Max Camera Num is " << [devices count ]-1 << " ; Using camera " << camNum << endl;
331
+ std:: cout << " Warning: Max Camera Num is " << [devices count ]-1 << " ; Using camera " << camNum << std:: endl;
332
332
}
333
333
device = [devices objectAtIndex: camNum];
334
334
} else {
@@ -1166,8 +1166,8 @@ -(int) updateImage {
1166
1166
cc[4 ] = 0 ;
1167
1167
int cc2 = CV_FOURCC (cc[0 ], cc[1 ], cc[2 ], cc[3 ]);
1168
1168
if (cc2!=fourcc) {
1169
- cout << " WARNING: Didn't properly encode FourCC. Expected " << fourcc
1170
- << " but got " << cc2 << " ." << endl;
1169
+ std:: cout << " WARNING: Didn't properly encode FourCC. Expected " << fourcc
1170
+ << " but got " << cc2 << " ." << std:: endl;
1171
1171
// exception;
1172
1172
}
1173
1173
@@ -1269,7 +1269,7 @@ -(int) updateImage {
1269
1269
BOOL success = FALSE ;
1270
1270
1271
1271
if (iplimage->height !=movieSize.height || iplimage->width !=movieSize.width ){
1272
- cout<<" Frame size does not match video size." <<endl;
1272
+ std:: cout<<" Frame size does not match video size." <<std:: endl;
1273
1273
[localpool drain ];
1274
1274
return false ;
1275
1275
}
0 commit comments