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
6ce26b72
Commit
6ce26b72
authored
Jun 30, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11860 from alalek:videoio_msmf_remove_cxx11_code
parents
86885c5e
2dbaba07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
16 deletions
+21
-16
cap_msmf.cpp
modules/videoio/src/cap_msmf.cpp
+21
-16
No files found.
modules/videoio/src/cap_msmf.cpp
View file @
6ce26b72
...
@@ -692,8 +692,6 @@ public:
...
@@ -692,8 +692,6 @@ public:
MODE_HW
=
1
MODE_HW
=
1
}
MSMFCapture_Mode
;
}
MSMFCapture_Mode
;
CvCapture_MSMF
();
CvCapture_MSMF
();
CvCapture_MSMF
(
int
);
CvCapture_MSMF
(
const
cv
::
String
&
);
virtual
~
CvCapture_MSMF
();
virtual
~
CvCapture_MSMF
();
virtual
bool
open
(
int
);
virtual
bool
open
(
int
);
virtual
bool
open
(
const
cv
::
String
&
);
virtual
bool
open
(
const
cv
::
String
&
);
...
@@ -756,8 +754,6 @@ CvCapture_MSMF::CvCapture_MSMF():
...
@@ -756,8 +754,6 @@ CvCapture_MSMF::CvCapture_MSMF():
{
{
configureHW
(
true
);
configureHW
(
true
);
}
}
CvCapture_MSMF
::
CvCapture_MSMF
(
int
index
)
:
CvCapture_MSMF
()
{
open
(
index
);
}
CvCapture_MSMF
::
CvCapture_MSMF
(
const
cv
::
String
&
_filename
)
:
CvCapture_MSMF
()
{
open
(
_filename
);
}
CvCapture_MSMF
::~
CvCapture_MSMF
()
CvCapture_MSMF
::~
CvCapture_MSMF
()
{
{
...
@@ -1920,17 +1916,25 @@ bool CvCapture_MSMF::setProperty( int property_id, double value )
...
@@ -1920,17 +1916,25 @@ bool CvCapture_MSMF::setProperty( int property_id, double value )
cv
::
Ptr
<
cv
::
IVideoCapture
>
cv
::
cvCreateCapture_MSMF
(
int
index
)
cv
::
Ptr
<
cv
::
IVideoCapture
>
cv
::
cvCreateCapture_MSMF
(
int
index
)
{
{
cv
::
Ptr
<
CvCapture_MSMF
>
capture
=
cv
::
makePtr
<
CvCapture_MSMF
>
(
index
);
cv
::
Ptr
<
CvCapture_MSMF
>
capture
=
cv
::
makePtr
<
CvCapture_MSMF
>
();
if
(
capture
&&
capture
->
isOpened
())
if
(
capture
)
return
capture
;
{
capture
->
open
(
index
);
if
(
capture
->
isOpened
())
return
capture
;
}
return
cv
::
Ptr
<
cv
::
IVideoCapture
>
();
return
cv
::
Ptr
<
cv
::
IVideoCapture
>
();
}
}
cv
::
Ptr
<
cv
::
IVideoCapture
>
cv
::
cvCreateCapture_MSMF
(
const
cv
::
String
&
filename
)
cv
::
Ptr
<
cv
::
IVideoCapture
>
cv
::
cvCreateCapture_MSMF
(
const
cv
::
String
&
filename
)
{
{
cv
::
Ptr
<
CvCapture_MSMF
>
capture
=
cv
::
makePtr
<
CvCapture_MSMF
>
(
filename
);
cv
::
Ptr
<
CvCapture_MSMF
>
capture
=
cv
::
makePtr
<
CvCapture_MSMF
>
();
if
(
capture
&&
capture
->
isOpened
())
if
(
capture
)
return
capture
;
{
capture
->
open
(
filename
);
if
(
capture
->
isOpened
())
return
capture
;
}
return
cv
::
Ptr
<
cv
::
IVideoCapture
>
();
return
cv
::
Ptr
<
cv
::
IVideoCapture
>
();
}
}
...
@@ -1944,8 +1948,6 @@ class CvVideoWriter_MSMF : public cv::IVideoWriter
...
@@ -1944,8 +1948,6 @@ class CvVideoWriter_MSMF : public cv::IVideoWriter
{
{
public
:
public
:
CvVideoWriter_MSMF
();
CvVideoWriter_MSMF
();
CvVideoWriter_MSMF
(
const
cv
::
String
&
filename
,
int
fourcc
,
double
fps
,
cv
::
Size
frameSize
,
bool
isColor
);
virtual
~
CvVideoWriter_MSMF
();
virtual
~
CvVideoWriter_MSMF
();
virtual
bool
open
(
const
cv
::
String
&
filename
,
int
fourcc
,
virtual
bool
open
(
const
cv
::
String
&
filename
,
int
fourcc
,
double
fps
,
cv
::
Size
frameSize
,
bool
isColor
);
double
fps
,
cv
::
Size
frameSize
,
bool
isColor
);
...
@@ -1982,7 +1984,6 @@ CvVideoWriter_MSMF::CvVideoWriter_MSMF():
...
@@ -1982,7 +1984,6 @@ CvVideoWriter_MSMF::CvVideoWriter_MSMF():
initiated
(
false
)
initiated
(
false
)
{
{
}
}
CvVideoWriter_MSMF
::
CvVideoWriter_MSMF
(
const
cv
::
String
&
filename
,
int
fourcc
,
double
fps
,
cv
::
Size
frameSize
,
bool
isColor
)
:
CvVideoWriter_MSMF
()
{
open
(
filename
,
fourcc
,
fps
,
frameSize
,
isColor
);
}
CvVideoWriter_MSMF
::~
CvVideoWriter_MSMF
()
CvVideoWriter_MSMF
::~
CvVideoWriter_MSMF
()
{
{
...
@@ -2153,9 +2154,13 @@ void CvVideoWriter_MSMF::write(cv::InputArray img)
...
@@ -2153,9 +2154,13 @@ void CvVideoWriter_MSMF::write(cv::InputArray img)
cv
::
Ptr
<
cv
::
IVideoWriter
>
cv
::
cvCreateVideoWriter_MSMF
(
const
cv
::
String
&
filename
,
int
fourcc
,
cv
::
Ptr
<
cv
::
IVideoWriter
>
cv
::
cvCreateVideoWriter_MSMF
(
const
cv
::
String
&
filename
,
int
fourcc
,
double
fps
,
cv
::
Size
frameSize
,
int
isColor
)
double
fps
,
cv
::
Size
frameSize
,
int
isColor
)
{
{
cv
::
Ptr
<
CvVideoWriter_MSMF
>
writer
=
cv
::
makePtr
<
CvVideoWriter_MSMF
>
(
filename
,
fourcc
,
fps
,
frameSize
,
isColor
!=
0
);
cv
::
Ptr
<
CvVideoWriter_MSMF
>
writer
=
cv
::
makePtr
<
CvVideoWriter_MSMF
>
();
if
(
writer
&&
writer
->
isOpened
())
if
(
writer
)
return
writer
;
{
writer
->
open
(
filename
,
fourcc
,
fps
,
frameSize
,
isColor
!=
0
);
if
(
writer
->
isOpened
())
return
writer
;
}
return
cv
::
Ptr
<
cv
::
IVideoWriter
>
();
return
cv
::
Ptr
<
cv
::
IVideoWriter
>
();
}
}
...
...
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