@@ -146,21 +146,21 @@ pub struct Sequence {
146
146
pub still_picture : bool ,
147
147
/// Use reduced header for still picture
148
148
pub reduced_still_picture_hdr : bool ,
149
- /// enables/disables filter_intra
149
+ /// enables/disables ` filter_intra`
150
150
pub enable_filter_intra : bool ,
151
151
/// enables/disables corner/edge filtering and upsampling
152
152
pub enable_intra_edge_filter : bool ,
153
- /// enables/disables interintra_compound
153
+ /// enables/disables ` interintra_compound`
154
154
pub enable_interintra_compound : bool ,
155
155
/// enables/disables masked compound
156
156
pub enable_masked_compound : bool ,
157
157
/// 0 - disable dual interpolation filter
158
158
/// 1 - enable vert/horiz filter selection
159
159
pub enable_dual_filter : bool ,
160
160
/// 0 - disable order hint, and related tools
161
- /// jnt_comp, ref_frame_mvs, frame_sign_bias
162
- /// if 0, enable_jnt_comp and
163
- /// enable_ref_frame_mvs must be set zs 0.
161
+ /// ` jnt_comp`, ` ref_frame_mvs`, ` frame_sign_bias`
162
+ /// if 0, ` enable_jnt_comp` and
163
+ /// ` enable_ref_frame_mvs` must be set zs 0.
164
164
pub enable_order_hint : bool ,
165
165
/// 0 - disable joint compound modes
166
166
/// 1 - enable it
@@ -190,7 +190,7 @@ pub struct Sequence {
190
190
pub display_model_info_present_flag : bool ,
191
191
pub decoder_model_info_present_flag : bool ,
192
192
pub level_idx : [ u8 ; MAX_NUM_OPERATING_POINTS ] ,
193
- /// seq_tier in the spec. One bit: 0 or 1.
193
+ /// ` seq_tier` in the spec. One bit: 0 or 1.
194
194
pub tier : [ usize ; MAX_NUM_OPERATING_POINTS ] ,
195
195
pub film_grain_params_present : bool ,
196
196
pub timing_info_present : bool ,
@@ -700,9 +700,9 @@ pub struct CodedFrameData<T: Pixel> {
700
700
/// indicating how much future frames depend on the block (for example, via
701
701
/// inter-prediction).
702
702
pub block_importances : Box < [ f32 ] > ,
703
- /// Pre-computed distortion_scale.
703
+ /// Pre-computed ` distortion_scale` .
704
704
pub distortion_scales : Box < [ DistortionScale ] > ,
705
- /// Pre-computed activity_scale.
705
+ /// Pre-computed ` activity_scale` .
706
706
pub activity_scales : Box < [ DistortionScale ] > ,
707
707
pub activity_mask : ActivityMask ,
708
708
/// Combined metric of activity and distortion
@@ -772,7 +772,7 @@ impl<T: Pixel> CodedFrameData<T> {
772
772
for scale in self . distortion_scales . iter_mut ( ) {
773
773
* scale *= inv_mean;
774
774
}
775
- self . spatiotemporal_scores = self . distortion_scales . clone ( ) ;
775
+ self . spatiotemporal_scores . clone_from ( & self . distortion_scales ) ;
776
776
inv_mean. blog64 ( ) >> 1
777
777
}
778
778
@@ -986,7 +986,7 @@ impl<T: Pixel> FrameInvariants<T> {
986
986
let show_existing_frame =
987
987
inter_cfg. get_show_existing_frame ( fi. idx_in_group_output ) ;
988
988
if !show_existing_frame {
989
- fi. coded_frame_data = previous_coded_fi. coded_frame_data . clone ( ) ;
989
+ fi. coded_frame_data . clone_from ( & previous_coded_fi. coded_frame_data ) ;
990
990
}
991
991
992
992
fi. order_hint =
0 commit comments