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
7ff07e94
Commit
7ff07e94
authored
Aug 14, 2013
by
kamjagin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug Bug #3215. Added HAVE_QTKIT as a separate mode from HAVE_QUICKTIME
parent
93f05fed
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
7 deletions
+13
-7
CMakeLists.txt
CMakeLists.txt
+2
-2
OpenCVFindLibsVideo.cmake
cmake/OpenCVFindLibsVideo.cmake
+2
-0
cvconfig.h.cmake
cmake/templates/cvconfig.h.cmake
+3
-0
CMakeLists.txt
modules/highgui/CMakeLists.txt
+1
-1
cap.cpp
modules/highgui/src/cap.cpp
+5
-4
No files found.
CMakeLists.txt
View file @
7ff07e94
...
...
@@ -745,8 +745,8 @@ if(DEFINED WITH_GIGEAPI)
endif
(
DEFINED WITH_GIGEAPI
)
if
(
DEFINED WITH_QUICKTIME
)
status
(
" QuickTime:"
WITH
_QUICKTIME THEN YES ELSE NO
)
status
(
" QTKit:"
WITH_QUICKTIME THEN NO ELSE YES
)
status
(
" QuickTime:"
HAVE
_QUICKTIME THEN YES ELSE NO
)
status
(
" QTKit:"
HAVE_QTKIT THEN YES ELSE NO
)
endif
(
DEFINED WITH_QUICKTIME
)
if
(
DEFINED WITH_UNICAP
)
...
...
cmake/OpenCVFindLibsVideo.cmake
View file @
7ff07e94
...
...
@@ -244,4 +244,6 @@ endif()
# --- QuickTime ---
if
(
WITH_QUICKTIME
)
set
(
HAVE_QUICKTIME YES
)
elseif
(
APPLE
)
set
(
HAVE_QTKIT YES
)
endif
()
cmake/templates/cvconfig.h.cmake
View file @
7ff07e94
...
...
@@ -133,6 +133,9 @@
/* QuickTime video libraries */
#cmakedefine HAVE_QUICKTIME
/* QTKit video libraries */
#cmakedefine HAVE_QTKIT
/* Intel Threading Building Blocks */
#cmakedefine HAVE_TBB
...
...
modules/highgui/CMakeLists.txt
View file @
7ff07e94
...
...
@@ -213,7 +213,7 @@ endif()
if
(
HAVE_QUICKTIME
)
list
(
APPEND highgui_srcs src/cap_qt.cpp
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework Carbon"
"-framework QuickTime"
"-framework CoreFoundation"
"-framework QuartzCore"
)
elseif
(
APPLE
)
elseif
(
HAVE_QTKIT
)
list
(
APPEND highgui_srcs src/cap_qtkit.mm
)
list
(
APPEND HIGHGUI_LIBRARIES
"-framework QTKit"
"-framework QuartzCore"
"-framework AppKit"
)
endif
()
...
...
modules/highgui/src/cap.cpp
View file @
7ff07e94
...
...
@@ -135,7 +135,7 @@ CV_IMPL CvCapture * cvCreateCameraCapture (int index)
#ifdef HAVE_MIL
CV_CAP_MIL
,
#endif
#ifdef HAVE_QUICKTIME
if
defined
(
HAVE_QUICKTIME
)
||
defined
(
HAVE_QTKIT
)
CV_CAP_QT
,
#endif
#ifdef HAVE_UNICAP
...
...
@@ -185,6 +185,7 @@ CV_IMPL CvCapture * cvCreateCameraCapture (int index)
defined(HAVE_CMU1394) || \
defined(HAVE_MIL) || \
defined(HAVE_QUICKTIME) || \
defined(HAVE_QTKIT) || \
defined(HAVE_UNICAP) || \
defined(HAVE_PVAPI) || \
defined(HAVE_OPENNI) || \
...
...
@@ -277,7 +278,7 @@ CV_IMPL CvCapture * cvCreateCameraCapture (int index)
break
;
#endif
#if
def HAVE_QUICKTIME
#if
defined(HAVE_QUICKTIME) || defined(HAVE_QTKIT)
case
CV_CAP_QT
:
capture
=
cvCreateCameraCapture_QT
(
index
);
if
(
capture
)
...
...
@@ -378,7 +379,7 @@ CV_IMPL CvCapture * cvCreateFileCapture (const char * filename)
result
=
cvCreateCapture_GStreamer
(
CV_CAP_GSTREAMER_FILE
,
filename
);
#endif
#if
def HAVE_QUICKTIME
#if
defined(HAVE_QUICKTIME) || defined(HAVE_QTKIT)
if
(
!
result
)
result
=
cvCreateFileCapture_QT
(
filename
);
#endif
...
...
@@ -436,7 +437,7 @@ CV_IMPL CvVideoWriter* cvCreateVideoWriter( const char* filename, int fourcc,
result
=
cvCreateVideoWriter_AVFoundation
(
filename
,
fourcc
,
fps
,
frameSize
,
is_color
);
#endif
#if
def HAVE_QUICKTIME
#if
defined(HAVE_QUICKTIME) || defined(HAVE_QTKIT)
if
(
!
result
)
result
=
cvCreateVideoWriter_QT
(
filename
,
fourcc
,
fps
,
frameSize
,
is_color
);
#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