pub(crate) fn estimate_inter_costs<T: Pixel>( frame: Arc<Frame<T>>, ref_frame: Arc<Frame<T>>, bit_depth: usize, config: EncoderConfig, sequence: Arc<Sequence>, buffer: Arc<RwLock<[FrameMEStats; 8]>>, ) -> f64