mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Use OpenCV logging instead of std::cerr.
This commit is contained in:
@@ -2574,7 +2574,7 @@ public:
|
||||
ippStatus = ippGetCpuFeatures(&cpuFeatures, NULL);
|
||||
if(ippStatus < 0)
|
||||
{
|
||||
std::cerr << "ERROR: IPP cannot detect CPU features, IPP was disabled " << std::endl;
|
||||
CV_LOG_ERROR(NULL, "ERROR: IPP cannot detect CPU features, IPP was disabled");
|
||||
useIPP = false;
|
||||
return;
|
||||
}
|
||||
@@ -2612,7 +2612,7 @@ public:
|
||||
|
||||
if(env == "disabled")
|
||||
{
|
||||
std::cerr << "WARNING: IPP was disabled by OPENCV_IPP environment variable" << std::endl;
|
||||
CV_LOG_WARNING(NULL, "WARNING: IPP was disabled by OPENCV_IPP environment variable");
|
||||
useIPP = false;
|
||||
}
|
||||
else if(env == "sse42")
|
||||
@@ -2626,7 +2626,7 @@ public:
|
||||
#endif
|
||||
#endif
|
||||
else
|
||||
std::cerr << "ERROR: Improper value of OPENCV_IPP: " << env.c_str() << ". Correct values are: disabled, sse42, avx2, avx512 (Intel64 only)" << std::endl;
|
||||
CV_LOG_ERROR(NULL, "ERROR: Improper value of OPENCV_IPP: " << env.c_str() << ". Correct values are: disabled, sse42, avx2, avx512 (Intel64 only)");
|
||||
|
||||
// Trim unsupported features
|
||||
ippFeatures &= cpuFeatures;
|
||||
|
||||
Reference in New Issue
Block a user