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
455323ed
Commit
455323ed
authored
May 07, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14500 from mshabunin:backport-avfoundation
parents
eb161942
9a81ff73
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
cap_avfoundation_mac.mm
modules/videoio/src/cap_avfoundation_mac.mm
+0
-0
cap_mfx_writer.cpp
modules/videoio/src/cap_mfx_writer.cpp
+6
-0
test_mfx.cpp
modules/videoio/test/test_mfx.cpp
+1
-1
test_video_io.cpp
modules/videoio/test/test_video_io.cpp
+0
-2
No files found.
modules/videoio/src/cap_avfoundation_mac.mm
View file @
455323ed
This diff is collapsed.
Click to expand it.
modules/videoio/src/cap_mfx_writer.cpp
View file @
455323ed
...
...
@@ -40,6 +40,12 @@ VideoWriter_IntelMFX::VideoWriter_IntelMFX(const String &filename, int _fourcc,
return
;
}
if
(
fps
<=
0
)
{
MSG
(
cerr
<<
"MFX: Invalid FPS passed to encoder"
<<
endl
);
return
;
}
// Init device and session
deviceHandler
=
createDeviceHandler
();
session
=
new
MFXVideoSession
();
...
...
modules/videoio/test/test_mfx.cpp
View file @
455323ed
...
...
@@ -35,7 +35,7 @@ TEST(Videoio_MFX, write_invalid)
ASSERT_NO_THROW
(
res
=
writer
.
open
(
String
(),
CAP_INTEL_MFX
,
VideoWriter
::
fourcc
(
'H'
,
'2'
,
'6'
,
'4'
),
1
,
Size
(
640
,
480
),
true
));
EXPECT_FALSE
(
res
);
EXPECT_FALSE
(
writer
.
isOpened
());
ASSERT_
ANY
_THROW
(
res
=
writer
.
open
(
filename
,
CAP_INTEL_MFX
,
VideoWriter
::
fourcc
(
'H'
,
'2'
,
'6'
,
'4'
),
0
,
Size
(
640
,
480
),
true
));
ASSERT_
NO
_THROW
(
res
=
writer
.
open
(
filename
,
CAP_INTEL_MFX
,
VideoWriter
::
fourcc
(
'H'
,
'2'
,
'6'
,
'4'
),
0
,
Size
(
640
,
480
),
true
));
EXPECT_FALSE
(
res
);
EXPECT_FALSE
(
writer
.
isOpened
());
...
...
modules/videoio/test/test_video_io.cpp
View file @
455323ed
...
...
@@ -419,8 +419,6 @@ static Ext_Fourcc_PSNR synthetic_params[] = {
makeParam
(
"mp4"
,
"MJPG"
,
30.
f
,
CAP_AVFOUNDATION
),
makeParam
(
"m4v"
,
"H264"
,
30.
f
,
CAP_AVFOUNDATION
),
makeParam
(
"m4v"
,
"MJPG"
,
30.
f
,
CAP_AVFOUNDATION
),
makeParam
(
"3gp"
,
"H264"
,
30.
f
,
CAP_AVFOUNDATION
),
makeParam
(
"3gp"
,
"MJPG"
,
30.
f
,
CAP_AVFOUNDATION
),
#endif
#ifdef HAVE_FFMPEG
...
...
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