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
f512bf70
Commit
f512bf70
authored
Sep 13, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12522 from mshabunin:remove-va-msdk-34
parents
63affb2b
78c500e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
22 deletions
+11
-22
CMakeLists.txt
CMakeLists.txt
+1
-1
OpenCVFindVA_INTEL.cmake
cmake/OpenCVFindVA_INTEL.cmake
+7
-19
va_intel.hpp
modules/core/include/opencv2/core/va_intel.hpp
+3
-2
No files found.
CMakeLists.txt
View file @
f512bf70
...
@@ -1396,7 +1396,7 @@ if(WITH_VA OR HAVE_VA)
...
@@ -1396,7 +1396,7 @@ if(WITH_VA OR HAVE_VA)
endif
()
endif
()
if
(
WITH_VA_INTEL OR HAVE_VA_INTEL
)
if
(
WITH_VA_INTEL OR HAVE_VA_INTEL
)
status
(
" Intel VA-API/OpenCL:"
HAVE_VA_INTEL THEN
"YES (
MSDK:
${
VA_INTEL_MSDK_ROOT
}
OpenCL:
${
VA_INTEL_IOCL_ROOT
}
)"
ELSE NO
)
status
(
" Intel VA-API/OpenCL:"
HAVE_VA_INTEL THEN
"YES (OpenCL:
${
VA_INTEL_IOCL_ROOT
}
)"
ELSE NO
)
endif
()
endif
()
if
(
WITH_LAPACK OR HAVE_LAPACK
)
if
(
WITH_LAPACK OR HAVE_LAPACK
)
...
...
cmake/OpenCVFindVA_INTEL.cmake
View file @
f512bf70
# Main variables:
# Main variables:
# VA_INTEL_
MSDK_INCLUDE_DIR and VA_INTEL_
IOCL_INCLUDE_DIR to use VA_INTEL
# VA_INTEL_IOCL_INCLUDE_DIR to use VA_INTEL
# HAVE_VA_INTEL for conditional compilation OpenCV with/without VA_INTEL
# HAVE_VA_INTEL for conditional compilation OpenCV with/without VA_INTEL
# VA_INTEL_MSDK_ROOT - root of Intel MSDK installation
# VA_INTEL_IOCL_ROOT - root of Intel OCL installation
# VA_INTEL_IOCL_ROOT - root of Intel OCL installation
if
(
UNIX AND NOT ANDROID
)
if
(
UNIX AND NOT ANDROID
)
if
(
$ENV{VA_INTEL_MSDK_ROOT}
)
set
(
VA_INTEL_MSDK_ROOT $ENV{VA_INTEL_MSDK_ROOT}
)
else
()
set
(
VA_INTEL_MSDK_ROOT
"/opt/intel/mediasdk"
)
endif
()
if
(
$ENV{VA_INTEL_IOCL_ROOT}
)
if
(
$ENV{VA_INTEL_IOCL_ROOT}
)
set
(
VA_INTEL_IOCL_ROOT $ENV{VA_INTEL_IOCL_ROOT}
)
set
(
VA_INTEL_IOCL_ROOT $ENV{VA_INTEL_IOCL_ROOT}
)
else
()
else
()
set
(
VA_INTEL_IOCL_ROOT
"/opt/intel/opencl"
)
set
(
VA_INTEL_IOCL_ROOT
"/opt/intel/opencl"
)
endif
()
endif
()
find_path
(
VA_INTEL_MSDK_INCLUDE_DIR
NAMES mfxdefs.h
PATHS
${
VA_INTEL_MSDK_ROOT
}
PATH_SUFFIXES include
DOC
"Path to Intel MSDK headers"
)
find_path
(
find_path
(
VA_INTEL_IOCL_INCLUDE_DIR
VA_INTEL_IOCL_INCLUDE_DIR
NAMES CL/va_ext.h
NAMES CL/va_ext.h
...
@@ -33,12 +19,14 @@ if(UNIX AND NOT ANDROID)
...
@@ -33,12 +19,14 @@ if(UNIX AND NOT ANDROID)
DOC
"Path to Intel OpenCL headers"
)
DOC
"Path to Intel OpenCL headers"
)
endif
()
endif
()
if
(
VA_INTEL_
MSDK_INCLUDE_DIR AND VA_INTEL_
IOCL_INCLUDE_DIR
)
if
(
VA_INTEL_IOCL_INCLUDE_DIR
)
set
(
HAVE_VA_INTEL TRUE
)
set
(
HAVE_VA_INTEL TRUE
)
set
(
VA_INTEL_LIBRARIES
"-lva"
"-lva-drm"
)
if
(
NOT DEFINED VA_INTEL_LIBRARIES
)
set
(
VA_INTEL_LIBRARIES
"va"
"va-drm"
)
endif
()
else
()
else
()
set
(
HAVE_VA_INTEL FALSE
)
set
(
HAVE_VA_INTEL FALSE
)
message
(
WARNING
"Intel
MSDK &
OpenCL installation is not found."
)
message
(
WARNING
"Intel OpenCL installation is not found."
)
endif
()
endif
()
mark_as_advanced
(
FORCE VA_INTEL_
MSDK_INCLUDE_DIR VA_INTEL_
IOCL_INCLUDE_DIR
)
mark_as_advanced
(
FORCE VA_INTEL_IOCL_INCLUDE_DIR
)
modules/core/include/opencv2/core/va_intel.hpp
View file @
f512bf70
...
@@ -31,8 +31,9 @@ This section describes Intel VA-API/OpenCL (CL-VA) interoperability.
...
@@ -31,8 +31,9 @@ This section describes Intel VA-API/OpenCL (CL-VA) interoperability.
To enable CL-VA interoperability support, configure OpenCV using CMake with WITH_VA_INTEL=ON . Currently VA-API is
To enable CL-VA interoperability support, configure OpenCV using CMake with WITH_VA_INTEL=ON . Currently VA-API is
supported on Linux only. You should also install Intel Media Server Studio (MSS) to use this feature. You may
supported on Linux only. You should also install Intel Media Server Studio (MSS) to use this feature. You may
have to specify the path(s) to MSS components for cmake in environment variables: VA_INTEL_MSDK_ROOT for Media SDK
have to specify the path(s) to MSS components for cmake in environment variables:
(default is "/opt/intel/mediasdk"), and VA_INTEL_IOCL_ROOT for Intel OpenCL (default is "/opt/intel/opencl").
- VA_INTEL_IOCL_ROOT for Intel OpenCL (default is "/opt/intel/opencl").
To use CL-VA interoperability you should first create VADisplay (libva), and then call initializeContextFromVA()
To use CL-VA interoperability you should first create VADisplay (libva), and then call initializeContextFromVA()
function to create OpenCL context and set up interoperability.
function to create OpenCL context and set up interoperability.
...
...
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