Skip to content

Commit

Permalink
encoder: fix another clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tmatth committed Jul 3, 2019
1 parent 38e6df5 commit a932762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoder.rs
Expand Up @@ -786,7 +786,7 @@ impl<T: Pixel> FrameInvariants<T> {
self.cdef_uv_strengths[0] = (predicted_uv_f1 * CDEF_SEC_STRENGTHS as i32 + predicted_uv_f2) as u8;
} else {
let predicted_y_f1 = clamp((q * q * 0.0000033731974_f32 + q * 0.008070594_f32 + 0.0187634_f32).round() as i32, 0, 15);
let predicted_y_f2 = clamp((-q * q * -0.00000291673427_f32 + q * 0.0027798624_f32 + 0.0079405_f32).round() as i32, 0, 3);
let predicted_y_f2 = clamp((-q * q * -0.0000029167343_f32 + q * 0.0027798624_f32 + 0.0079405_f32).round() as i32, 0, 3);
let predicted_uv_f1 = clamp((-q * q * 0.0000130790995_f32 + q * 0.012892405_f32 - 0.00748388_f32).round() as i32, 0, 15);
let predicted_uv_f2 = clamp((q * q * 0.0000032651783_f32 + q * 0.00035520183_f32 + 0.00228092_f32).round() as i32, 0, 3);
self.cdef_y_strengths[0] = (predicted_y_f1 * CDEF_SEC_STRENGTHS as i32 + predicted_y_f2) as u8;
Expand Down

0 comments on commit a932762

Please sign in to comment.