Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
rav1e
Commits
ae5a21e8
Commit
ae5a21e8
authored
Apr 21, 2019
by
Vladimir Kazakov
Committed by
Thomas Daede
Apr 24, 2019
Browse files
Change the low_latency option to a flag
Fixes #1224.
parent
fc992256
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/common.rs
View file @
ae5a21e8
...
...
@@ -163,8 +163,6 @@ pub fn parse_cli() -> CliOptions {
.help
(
"Low latency mode; disables frame reordering
\n
\
Has a significant speed-to-quality trade-off"
)
.long
(
"low_latency"
)
.takes_value
(
true
)
.default_value
(
"false"
)
)
.arg
(
Arg
::
with_name
(
"TUNE"
)
...
...
@@ -448,7 +446,7 @@ fn parse_config(matches: &ArgMatches<'_>) -> EncoderConfig {
panic!
(
"Log2 of tile columns and rows may not be greater than 6"
);
}
cfg
.low_latency
=
matches
.
value_of
(
"LOW_LATENCY"
)
.unwrap
()
.parse
()
.unwrap
()
;
cfg
.low_latency
=
matches
.
is_present
(
"LOW_LATENCY"
);
cfg
.train_rdo
=
train_rdo
;
cfg
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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