Skip to content

Commit c5e979c

Browse files
Andrey KamaevOpenCV Buildbot
Andrey Kamaev
authored and
OpenCV Buildbot
committed
Merge pull request opencv#581 from vpisarev:ios_fix
2 parents c6318ff + 11ba220 commit c5e979c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

modules/highgui/src/cap_avfoundation.mm

+7-7
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ - (IplImage*)getOutput;
243243
camNum = cameraNum;
244244

245245
if (!startCaptureDevice(camNum)) {
246-
cout << "Warning, camera failed to properly initialize!" << endl;
246+
std::cout << "Warning, camera failed to properly initialize!" << std::endl;
247247
started = 0;
248248
} else {
249249
started = 1;
@@ -288,7 +288,7 @@ - (IplImage*)getOutput;
288288

289289
IplImage* CvCaptureCAM::queryFrame() {
290290
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;
292292
/*
293293
cout << "Attempting to restart camera; set capture property DISABLE_AUTO_RESTART to disable." << endl;
294294
stopCaptureDevice();
@@ -320,15 +320,15 @@ - (IplImage*)getOutput;
320320
AVCaptureDevice *device;
321321
NSArray* devices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
322322
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;
324324
[localpool drain];
325325
return 0;
326326
}
327327

328328
if (cameraNum >= 0) {
329329
camNum = cameraNum % [devices count];
330330
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;
332332
}
333333
device = [devices objectAtIndex:camNum];
334334
} else {
@@ -1166,8 +1166,8 @@ -(int) updateImage {
11661166
cc[4] = 0;
11671167
int cc2 = CV_FOURCC(cc[0], cc[1], cc[2], cc[3]);
11681168
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;
11711171
//exception;
11721172
}
11731173

@@ -1269,7 +1269,7 @@ -(int) updateImage {
12691269
BOOL success = FALSE;
12701270

12711271
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;
12731273
[localpool drain];
12741274
return false;
12751275
}

modules/softcascade/src/_random.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct Random
5858

5959
}}}
6060

61-
#elif (__GNUC__) && __GNUC__ > 3 && __GNUC_MINOR__ > 1 && !defined(__ANDROID__)
61+
#elif (__GNUC__) && __GNUC__ > 3 && __GNUC_MINOR__ > 1 && !defined(__ANDROID__) && !defined(__APPLE__)
6262
# if defined (__cplusplus) && __cplusplus > 201100L
6363
# include <random>
6464

0 commit comments

Comments
 (0)