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
787e56ab
Commit
787e56ab
authored
Apr 13, 2013
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disabled gpucodec module on MacOS
parent
3be997cf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
2 deletions
+39
-2
CMakeLists.txt
modules/gpucodec/CMakeLists.txt
+1
-1
CMakeLists.txt
samples/gpu/CMakeLists.txt
+8
-1
video_reader.cpp
samples/gpu/video_reader.cpp
+15
-0
video_writer.cpp
samples/gpu/video_writer.cpp
+15
-0
No files found.
modules/gpucodec/CMakeLists.txt
View file @
787e56ab
if
(
ANDROID OR IOS
)
if
(
ANDROID OR IOS
OR APPLE
)
ocv_module_disable
(
gpucodec
)
endif
()
...
...
samples/gpu/CMakeLists.txt
View file @
787e56ab
...
...
@@ -2,7 +2,7 @@ SET(OPENCV_GPU_SAMPLES_REQUIRED_DEPS opencv_core opencv_flann opencv_imgproc ope
opencv_ml opencv_video opencv_objdetect opencv_features2d
opencv_calib3d opencv_legacy opencv_contrib opencv_gpu
opencv_nonfree opencv_softcascade opencv_superres
opencv_gpu
codec opencv_gpu
arithm opencv_gpufilters opencv_gpuwarping opencv_gpuimgproc
opencv_gpuarithm opencv_gpufilters opencv_gpuwarping opencv_gpuimgproc
opencv_gpufeatures2d opencv_gpuoptflow opencv_gpubgsegm
opencv_gpustereo opencv_gpulegacy
)
...
...
@@ -24,6 +24,10 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/nonfree/include"
)
endif
()
if
(
HAVE_opencv_gpucodec
)
ocv_include_directories
(
"
${
OpenCV_SOURCE_DIR
}
/modules/gpucodec/include"
)
endif
()
if
(
HAVE_CUDA
)
ocv_include_directories
(
${
CUDA_INCLUDE_DIRS
}
)
endif
()
...
...
@@ -43,6 +47,9 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
if
(
HAVE_opencv_nonfree
)
target_link_libraries
(
${
the_target
}
opencv_nonfree
)
endif
()
if
(
HAVE_opencv_gpucodec
)
target_link_libraries
(
${
the_target
}
opencv_gpucodec
)
endif
()
set_target_properties
(
${
the_target
}
PROPERTIES
OUTPUT_NAME
"
${
project
}
-example-
${
name
}
"
...
...
samples/gpu/video_reader.cpp
View file @
787e56ab
#include <iostream>
#include "opencv2/opencv_modules.hpp"
#if defined(HAVE_OPENCV_GPUCODEC)
#include <string>
#include <vector>
#include <algorithm>
...
...
@@ -69,3 +74,13 @@ int main(int argc, const char* argv[])
return
0
;
}
#else
int
main
()
{
std
::
cout
<<
"OpenCV was built without GPU Video decoding support
\n
"
<<
std
::
endl
;
return
0
;
}
#endif
samples/gpu/video_writer.cpp
View file @
787e56ab
#include <iostream>
#include "opencv2/opencv_modules.hpp"
#if defined(HAVE_OPENCV_GPUCODEC) && defined(WIN32)
#include <vector>
#include <numeric>
...
...
@@ -94,3 +99,13 @@ int main(int argc, const char* argv[])
return
0
;
}
#else
int
main
()
{
std
::
cout
<<
"OpenCV was built without GPU Video encoding support
\n
"
<<
std
::
endl
;
return
0
;
}
#endif
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