Commit ef7a66a 1 parent fd137e9 commit ef7a66a Copy full SHA for ef7a66a
File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,10 @@ 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
+ /// Default preset for EncoderConfig: it is a balance between quality and speed.
89
+ /// See [`with_speed_preset()`]
90
+ ///
91
+ /// [`with_speed_preset()`]: struct.EncoderConfig.html#method.with_speed_preset
90
92
impl Default for EncoderConfig {
91
93
fn default ( ) -> Self {
92
94
const DEFAULT_SPEED : usize = 5 ;
@@ -96,8 +98,11 @@ impl Default for EncoderConfig {
96
98
97
99
impl EncoderConfig {
98
100
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.
101
+ /// This is a preset which provides default settings according to a speed value in the specific range 0-10.
102
+ /// For each speed value it is having different preset. See [`from_preset()`].
103
+ /// If the input value is greater than 10, it will result in the same settings of 10.
104
+ ///
105
+ /// [`from_preset()`]: struct.SpeedSettings.html#method.from_preset
101
106
pub fn with_speed_preset ( speed : usize ) -> Self {
102
107
EncoderConfig {
103
108
width : 640 ,
You can’t perform that action at this time.
0 commit comments