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
a4b3aa9e
Commit
a4b3aa9e
authored
Sep 30, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Sep 30, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1477 from nzjrs:python-gethardwaresupport
parents
f3f7f705
14d22513
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
cvdef.h
modules/core/include/opencv2/core/cvdef.h
+1
-0
utility.hpp
modules/core/include/opencv2/core/utility.hpp
+15
-10
No files found.
modules/core/include/opencv2/core/cvdef.h
View file @
a4b3aa9e
...
...
@@ -111,6 +111,7 @@
#define CV_CPU_POPCNT 8
#define CV_CPU_AVX 10
#define CV_CPU_NEON 11
// when adding to this list remember to update the enum in core/utility.cpp
#define CV_HARDWARE_MAX_FEATURE 255
// do not include SSE/AVX/NEON headers for NVCC compiler
...
...
modules/core/include/opencv2/core/utility.hpp
View file @
a4b3aa9e
...
...
@@ -190,20 +190,25 @@ CV_EXPORTS_W double getTickFrequency();
*/
CV_EXPORTS_W
int64
getCPUTickCount
();
//! Available CPU features. Currently, the following features are recognized:
enum
{
CPU_MMX
=
1
,
CPU_SSE
=
2
,
CPU_SSE2
=
3
,
CPU_SSE3
=
4
,
CPU_SSSE3
=
5
,
CPU_SSE4_1
=
6
,
CPU_SSE4_2
=
7
,
CPU_POPCNT
=
8
,
CPU_AVX
=
10
,
CPU_NEON
=
11
};
// remember to keep this list identical to the one in cvdef.h
/*!
Returns SSE etc. support status
The function returns true if certain hardware features are available.
Currently, the following features are recognized:
- CV_CPU_MMX - MMX
- CV_CPU_SSE - SSE
- CV_CPU_SSE2 - SSE 2
- CV_CPU_SSE3 - SSE 3
- CV_CPU_SSSE3 - SSSE 3
- CV_CPU_SSE4_1 - SSE 4.1
- CV_CPU_SSE4_2 - SSE 4.2
- CV_CPU_POPCNT - POPCOUNT
- CV_CPU_AVX - AVX
\note {Note that the function output is not static. Once you called cv::useOptimized(false),
most of the hardware acceleration is disabled and thus the function will returns false,
...
...
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