Commit fd137e9 1 parent 5eb7b87 commit fd137e9 Copy full SHA for fd137e9
File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,8 @@ pub struct EncoderConfig {
85
85
pub train_rdo : bool ,
86
86
}
87
87
88
+ /// Default preset for EncoderConfig,it is a balance between quality and speed.
89
+ /// User can use with_speed_preset to have a default structure with a specific speed level.
88
90
impl Default for EncoderConfig {
89
91
fn default ( ) -> Self {
90
92
const DEFAULT_SPEED : usize = 5 ;
@@ -93,6 +95,9 @@ impl Default for EncoderConfig {
93
95
}
94
96
95
97
impl EncoderConfig {
98
+
99
+ /// This is a preset which provides default settings according to a speed value in the specific range 0-10,
100
+ /// If the input value is greater than 10 will result in the same setting like 10.
96
101
pub fn with_speed_preset ( speed : usize ) -> Self {
97
102
EncoderConfig {
98
103
width : 640 ,
You can’t perform that action at this time.
0 commit comments