pub fn compute_rd_cost<T: Pixel>( fi: &FrameInvariants<T>, rate: u32, distortion: ScaledDistortion, ) -> f64