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
9615f8c9
Commit
9615f8c9
authored
Apr 23, 2018
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11358 from mshabunin:enable-xine
parents
b8a6bfb5
a9bdf75c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
11 deletions
+23
-11
videoio.hpp
modules/videoio/include/opencv2/videoio.hpp
+2
-1
cap.cpp
modules/videoio/src/cap.cpp
+10
-6
cap_xine.cpp
modules/videoio/src/cap_xine.cpp
+0
-0
precomp.hpp
modules/videoio/src/precomp.hpp
+2
-2
test_video_io.cpp
modules/videoio/test/test_video_io.cpp
+9
-2
No files found.
modules/videoio/include/opencv2/videoio.hpp
View file @
9615f8c9
...
...
@@ -116,7 +116,8 @@ enum VideoCaptureAPIs {
CAP_IMAGES
=
2000
,
//!< OpenCV Image Sequence (e.g. img_%02d.jpg)
CAP_ARAVIS
=
2100
,
//!< Aravis SDK
CAP_OPENCV_MJPEG
=
2200
,
//!< Built-in OpenCV MotionJPEG codec
CAP_INTEL_MFX
=
2300
//!< Intel MediaSDK
CAP_INTEL_MFX
=
2300
,
//!< Intel MediaSDK
CAP_XINE
=
2400
,
//!< XINE engine (Linux)
};
/** @brief %VideoCapture generic properties identifier.
...
...
modules/videoio/src/cap.cpp
View file @
9615f8c9
...
...
@@ -318,15 +318,11 @@ CV_IMPL CvCapture * cvCreateFileCaptureWithPreference (const char * filename, in
if
(
apiPreference
)
break
;
#endif
case
CAP_MSMF
:
#ifdef HAVE_MSMF
case
CAP_MSMF
:
TRY_OPEN
(
result
,
cvCreateFileCapture_MSMF
(
filename
))
#endif
#ifdef HAVE_XINE
TRY_OPEN
(
result
,
cvCreateFileCapture_XINE
(
filename
))
#endif
if
(
apiPreference
)
break
;
#endif
#ifdef HAVE_VFW
case
CAP_VFW
:
...
...
@@ -540,6 +536,14 @@ static Ptr<IVideoCapture> IVideoCapture_create(const String& filename, int apiPr
{
bool
useAny
=
(
apiPreference
==
CAP_ANY
);
Ptr
<
IVideoCapture
>
capture
;
#ifdef HAVE_XINE
if
(
useAny
||
apiPreference
==
CAP_XINE
)
{
capture
=
createXINECapture
(
filename
.
c_str
());
if
(
capture
&&
capture
->
isOpened
())
return
capture
;
}
#endif
#ifdef HAVE_GPHOTO2
if
(
useAny
||
apiPreference
==
CAP_GPHOTO2
)
{
...
...
modules/videoio/src/cap_xine.cpp
View file @
9615f8c9
This diff is collapsed.
Click to expand it.
modules/videoio/src/precomp.hpp
View file @
9615f8c9
...
...
@@ -133,8 +133,6 @@ CvCapture* cvCreateCameraCapture_Aravis( int index );
CvCapture
*
cvCreateFileCapture_Images
(
const
char
*
filename
);
CvVideoWriter
*
cvCreateVideoWriter_Images
(
const
char
*
filename
);
CvCapture
*
cvCreateFileCapture_XINE
(
const
char
*
filename
);
#define CV_CAP_GSTREAMER_1394 0
#define CV_CAP_GSTREAMER_V4L 1
...
...
@@ -195,6 +193,8 @@ namespace cv
Ptr
<
IVideoCapture
>
createGPhoto2Capture
(
int
index
);
Ptr
<
IVideoCapture
>
createGPhoto2Capture
(
const
String
&
deviceName
);
Ptr
<
IVideoCapture
>
createXINECapture
(
const
char
*
filename
);
}
#endif
/* __VIDEOIO_H_ */
modules/videoio/test/test_video_io.cpp
View file @
9615f8c9
...
...
@@ -131,7 +131,7 @@ public:
return
;
}
if
(
ext
!=
"wmv"
)
if
(
ext
!=
"wmv"
&&
ext
!=
"h264"
&&
ext
!=
"h265"
)
{
SCOPED_TRACE
(
"progressive seek"
);
ASSERT_TRUE
(
cap
.
set
(
CAP_PROP_POS_FRAMES
,
0
));
...
...
@@ -141,7 +141,7 @@ public:
}
}
if
(
ext
!=
"mpg"
&&
ext
!=
"wmv"
)
if
(
ext
!=
"mpg"
&&
ext
!=
"wmv"
&&
ext
!=
"h264"
&&
ext
!=
"h265"
)
{
SCOPED_TRACE
(
"random seek"
);
ASSERT_TRUE
(
cap
.
set
(
CAP_PROP_POS_FRAMES
,
0
));
...
...
@@ -334,6 +334,11 @@ int backend_params[] = {
#ifdef HAVE_FFMPEG
CAP_FFMPEG
,
#endif
#ifdef HAVE_XINE
CAP_XINE
,
#endif
CAP_OPENCV_MJPEG
// CAP_INTEL_MFX
};
...
...
@@ -345,6 +350,8 @@ string bunny_params[] = {
string
(
"mp4"
),
string
(
"mpg"
),
string
(
"avi"
),
string
(
"h264"
),
string
(
"h265"
),
#endif
string
(
"mjpg.avi"
)
};
...
...
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