Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
4254e35f
Commit
4254e35f
authored
Feb 27, 2015
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge new setUseOptimizations function with existed setUseOptimized
parent
4800a34b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
16 deletions
+7
-16
base.hpp
modules/core/include/opencv2/core/base.hpp
+0
-2
system.cpp
modules/core/src/system.cpp
+6
-13
cuda_test.hpp
modules/ts/include/opencv2/ts/cuda_test.hpp
+1
-1
No files found.
modules/core/include/opencv2/core/base.hpp
View file @
4254e35f
...
...
@@ -727,8 +727,6 @@ CV_EXPORTS void setUseIPP(bool flag);
}
// ipp
CV_EXPORTS
void
setUseOptimizations
(
bool
enabled
);
//! @endcond
//! @} core_utils
...
...
modules/core/src/system.cpp
View file @
4254e35f
...
...
@@ -385,6 +385,12 @@ void setUseOptimized( bool flag )
useOptimizedFlag
=
flag
;
currentFeatures
=
flag
?
&
featuresEnabled
:
&
featuresDisabled
;
USE_SSE2
=
currentFeatures
->
have
[
CV_CPU_SSE2
];
ipp
::
setUseIPP
(
flag
);
ocl
::
setUseOpenCL
(
flag
);
#ifdef HAVE_TEGRA_OPTIMIZATION
::
tegra
::
setUseTegra
(
flag
);
#endif
}
bool
useOptimized
(
void
)
...
...
@@ -1289,17 +1295,4 @@ void setUseTegra(bool flag)
#endif
namespace
cv
{
void
setUseOptimizations
(
bool
enabled
)
{
ipp
::
setUseIPP
(
enabled
);
ocl
::
setUseOpenCL
(
enabled
);
#ifdef HAVE_TEGRA_OPTIMIZATION
::
tegra
::
setUseTegra
(
enabled
);
#endif
}
}
// namespace cv
/* End of file. */
modules/ts/include/opencv2/ts/cuda_test.hpp
View file @
4254e35f
...
...
@@ -352,7 +352,7 @@ namespace cv { namespace cuda
#ifdef HAVE_CUDA
#define CV_CUDA_TEST_MAIN(resourcesubdir) \
CV_TEST_MAIN(resourcesubdir, cvtest::parseCudaDeviceOptions(argc, argv), cvtest::printCudaInfo(), cv::setUseOptimiz
ations
(false))
CV_TEST_MAIN(resourcesubdir, cvtest::parseCudaDeviceOptions(argc, argv), cvtest::printCudaInfo(), cv::setUseOptimiz
ed
(false))
#else // HAVE_CUDA
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment