Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
rav1e
Commits
fd137e93
Commit
fd137e93
authored
Apr 15, 2019
by
Vibhoothi
Committed by
Luca Barbato
Apr 29, 2019
Browse files
Document EncoderConfig
Add documentation of the encoderConfig for both impl and public fields Ref #1078
parent
5eb7b873
Changes
1
Show whitespace changes
Inline
Side-by-side
src/api.rs
View file @
fd137e93
...
...
@@ -85,6 +85,8 @@ pub struct EncoderConfig {
pub
train_rdo
:
bool
,
}
/// Default preset for EncoderConfig,it is a balance between quality and speed.
/// User can use with_speed_preset to have a default structure with a specific speed level.
impl
Default
for
EncoderConfig
{
fn
default
()
->
Self
{
const
DEFAULT_SPEED
:
usize
=
5
;
...
...
@@ -93,6 +95,9 @@ impl Default for EncoderConfig {
}
impl
EncoderConfig
{
/// This is a preset which provides default settings according to a speed value in the specific range 0-10,
/// If the input value is greater than 10 will result in the same setting like 10.
pub
fn
with_speed_preset
(
speed
:
usize
)
->
Self
{
EncoderConfig
{
width
:
640
,
...
...
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