Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
bd3c27fd
Commit
bd3c27fd
authored
Sep 06, 2018
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avdevice/decklink_enc: add support for setting duplex mode
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
f55d987b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
1 deletion
+10
-1
outdevs.texi
doc/outdevs.texi
+4
-0
decklink_enc.cpp
libavdevice/decklink_enc.cpp
+1
-0
decklink_enc_c.c
libavdevice/decklink_enc_c.c
+4
-0
version.h
libavdevice/version.h
+1
-1
No files found.
doc/outdevs.texi
View file @
bd3c27fd
...
...
@@ -150,6 +150,10 @@ Defaults to @option{false}.
Amount of time to preroll video in seconds.
Defaults to @option{0.5}.
@item duplex_mode
Sets the decklink device duplex mode. Must be @samp{unset}, @samp{half} or @samp{full}.
Defaults to @samp{unset}.
@end table
@subsection Examples
...
...
libavdevice/decklink_enc.cpp
View file @
bd3c27fd
...
...
@@ -395,6 +395,7 @@ av_cold int ff_decklink_write_header(AVFormatContext *avctx)
ctx
->
list_devices
=
cctx
->
list_devices
;
ctx
->
list_formats
=
cctx
->
list_formats
;
ctx
->
preroll
=
cctx
->
preroll
;
ctx
->
duplex_mode
=
cctx
->
duplex_mode
;
cctx
->
ctx
=
ctx
;
/* List available devices and exit. */
...
...
libavdevice/decklink_enc_c.c
View file @
bd3c27fd
...
...
@@ -31,6 +31,10 @@ static const AVOption options[] = {
{
"list_devices"
,
"list available devices"
,
OFFSET
(
list_devices
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
1
,
ENC
},
{
"list_formats"
,
"list supported formats"
,
OFFSET
(
list_formats
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
1
,
ENC
},
{
"preroll"
,
"video preroll in seconds"
,
OFFSET
(
preroll
),
AV_OPT_TYPE_DOUBLE
,
{
.
dbl
=
0
.
5
},
0
,
5
,
ENC
},
{
"duplex_mode"
,
"duplex mode"
,
OFFSET
(
duplex_mode
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
2
,
ENC
,
"duplex_mode"
},
{
"unset"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
0
},
0
,
0
,
ENC
,
"duplex_mode"
},
{
"half"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
1
},
0
,
0
,
ENC
,
"duplex_mode"
},
{
"full"
,
NULL
,
0
,
AV_OPT_TYPE_CONST
,
{
.
i64
=
2
},
0
,
0
,
ENC
,
"duplex_mode"
},
{
NULL
},
};
...
...
libavdevice/version.h
View file @
bd3c27fd
...
...
@@ -29,7 +29,7 @@
#define LIBAVDEVICE_VERSION_MAJOR 58
#define LIBAVDEVICE_VERSION_MINOR 4
#define LIBAVDEVICE_VERSION_MICRO 10
1
#define LIBAVDEVICE_VERSION_MICRO 10
2
#define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \
LIBAVDEVICE_VERSION_MINOR, \
...
...
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