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
d6e20974
Commit
d6e20974
authored
Feb 02, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6037 from atinfinity:pullreq/160130-enable-nvcuvid-2.4
parents
e8358786
cf43790a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
6 deletions
+25
-6
OpenCVDetectCUDA.cmake
cmake/OpenCVDetectCUDA.cmake
+12
-1
cvconfig.h.in
cmake/templates/cvconfig.h.in
+3
-0
CMakeLists.txt
modules/gpu/CMakeLists.txt
+6
-3
precomp.hpp
modules/gpu/src/precomp.hpp
+3
-1
video_writer.cpp
modules/gpu/src/video_writer.cpp
+1
-1
No files found.
cmake/OpenCVDetectCUDA.cmake
View file @
d6e20974
...
...
@@ -35,7 +35,18 @@ if(CUDA_FOUND)
if
(
WITH_NVCUVID
)
find_cuda_helper_libs
(
nvcuvid
)
set
(
HAVE_NVCUVID 1
)
if
(
WIN32
)
find_cuda_helper_libs
(
nvcuvenc
)
endif
()
if
(
CUDA_nvcuvid_LIBRARY
)
set
(
HAVE_NVCUVID 1
)
endif
()
if
(
CUDA_nvcuvenc_LIBRARY
)
set
(
HAVE_NVCUVENC 1
)
endif
()
endif
()
message
(
STATUS
"CUDA detected: "
${
CUDA_VERSION
}
)
...
...
cmake/templates/cvconfig.h.in
View file @
d6e20974
...
...
@@ -109,6 +109,9 @@
/* NVidia Video Decoding API*/
#cmakedefine HAVE_NVCUVID
/* NVidia Video Encoding API*/
#cmakedefine HAVE_NVCUVENC
/* OpenCL Support */
#cmakedefine HAVE_OPENCL
#cmakedefine HAVE_OPENCL_STATIC
...
...
modules/gpu/CMakeLists.txt
View file @
d6e20974
...
...
@@ -54,11 +54,14 @@ if(HAVE_CUDA)
endif
()
if
(
WITH_NVCUVID
)
set
(
cuda_link_libs
${
cuda_link_libs
}
${
CUDA_CUDA_LIBRARY
}
${
CUDA_nvcuvid_LIBRARY
}
)
if
(
HAVE_NVCUVID
)
set
(
cuda_link_libs
${
cuda_link_libs
}
${
CUDA_CUDA_LIBRARY
}
${
CUDA_nvcuvid_LIBRARY
}
)
endif
()
if
(
WIN32
)
find_cuda_helper_libs
(
nvcuvenc
)
set
(
cuda_link_libs
${
cuda_link_libs
}
${
CUDA_nvcuvenc_LIBRARY
}
)
if
(
HAVE_NVCUVENC
)
set
(
cuda_link_libs
${
cuda_link_libs
}
${
CUDA_nvcuvenc_LIBRARY
}
)
endif
()
endif
()
if
(
WITH_FFMPEG
)
...
...
modules/gpu/src/precomp.hpp
View file @
d6e20974
...
...
@@ -98,7 +98,9 @@
#include <nvcuvid.h>
#ifdef WIN32
#include <NVEncoderAPI.h>
#ifdef HAVE_NVCUVENC
#include <NVEncoderAPI.h>
#endif
#endif
#endif
...
...
modules/gpu/src/video_writer.cpp
View file @
d6e20974
...
...
@@ -42,7 +42,7 @@
#include "precomp.hpp"
#if !defined(HAVE_CUDA) || defined(CUDA_DISABLER) || !defined(HAVE_NVCUV
ID
) || !defined(WIN32)
#if !defined(HAVE_CUDA) || defined(CUDA_DISABLER) || !defined(HAVE_NVCUV
ENC
) || !defined(WIN32)
class
cv
::
gpu
::
VideoWriter_GPU
::
Impl
{
...
...
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