Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
ffmpeg
Commits
734d760e
Commit
734d760e
authored
Mar 02, 2017
by
Kagami Hiiragi
Committed by
James Zern
Mar 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/libvpxenc: add -row-mt option
Signed-off-by:
James Zern
<
jzern@google.com
>
parent
8aa4f3bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
libvpxenc.c
libavcodec/libvpxenc.c
+11
-0
No files found.
libavcodec/libvpxenc.c
View file @
734d760e
...
...
@@ -108,6 +108,7 @@ typedef struct VPxEncoderContext {
int
noise_sensitivity
;
int
vpx_cs
;
float
level
;
int
row_mt
;
}
VPxContext
;
/** String mappings for enum vp8e_enc_control_id */
...
...
@@ -139,6 +140,9 @@ static const char *const ctlidstr[] = {
[
VP9E_SET_TARGET_LEVEL
]
=
"VP9E_SET_TARGET_LEVEL"
,
[
VP9E_GET_LEVEL
]
=
"VP9E_GET_LEVEL"
,
#endif
#ifdef VPX_CTRL_VP9E_SET_ROW_MT
[
VP9E_SET_ROW_MT
]
=
"VP9E_SET_ROW_MT"
,
#endif
#endif
};
...
...
@@ -719,6 +723,10 @@ FF_ENABLE_DEPRECATION_WARNINGS
#endif
#if VPX_ENCODER_ABI_VERSION >= 12
codecctl_int
(
avctx
,
VP9E_SET_TARGET_LEVEL
,
ctx
->
level
<
0
?
255
:
lrint
(
ctx
->
level
*
10
));
#endif
#ifdef VPX_CTRL_VP9E_SET_ROW_MT
if
(
ctx
->
row_mt
>=
0
)
codecctl_int
(
avctx
,
VP9E_SET_ROW_MT
,
ctx
->
row_mt
);
#endif
}
#endif
...
...
@@ -1131,6 +1139,9 @@ static const AVOption vp9_options[] = {
{
"cyclic"
,
"Cyclic Refresh Aq"
,
0
,
AV_OPT_TYPE_CONST
,
{.
i64
=
3
},
0
,
0
,
VE
,
"aq_mode"
},
#if VPX_ENCODER_ABI_VERSION >= 12
{
"level"
,
"Specify level"
,
OFFSET
(
level
),
AV_OPT_TYPE_FLOAT
,
{.
dbl
=-
1
},
-
1
,
6
.
2
,
VE
},
#endif
#ifdef VPX_CTRL_VP9E_SET_ROW_MT
{
"row-mt"
,
"Row based multi-threading"
,
OFFSET
(
row_mt
),
AV_OPT_TYPE_BOOL
,
{.
i64
=
-
1
},
-
1
,
1
,
VE
},
#endif
LEGACY_OPTIONS
{
NULL
}
...
...
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