fn is_key_frame<T: Pixel>(
    &self, previous_frame: Arc<Frame<T>>, current_frame: Arc<Frame<T>>,
    current_frameno: u64, previous_keyframe: u64,
  ) -> bool {
    if self.excluded_frames.contains(&current_frameno) {
      return false;
    }

    let result = self.has_scenecut(
      previous_frame,
      current_frame,
      current_frameno,
      previous_keyframe,
    );
    debug!(
      "[SC-Detect] Frame {} to {}: I={:.3} T={:.3} P={:.3} {}",
      current_frameno - 1,
      current_frameno,
      result.intra_cost,
      result.threshold,
      result.inter_cost,
      if result.has_scenecut { "Scenecut" } else { "No cut" }
    );
    result.has_scenecut
  }
/// Determines if `current_frame` should be a keyframe.
Determines if `current_frame` should be a keyframe.
Determines if ` current_frame ` should be a keyframe .
fn is_key_frame<T: Pixel>(
    &self, previous_frame: Arc<Frame<T>>, current_frame: Arc<Frame<T>>,
    current_frameno: u64, previous_keyframe: u64,
  ) -> bool {
    if self.excluded_frames.contains(&current_frameno) {
      return false;
    }
    let result = self.has_scenecut(
      previous_frame,
      current_frame,
      current_frameno,
      previous_keyframe,
    );
    debug!(
      "[SC-Detect] Frame {} to {}: I={:.3} T={:.3} P={:.3} {}",
      current_frameno - 1,
      current_frameno,
      result.intra_cost,
      result.threshold,
      result.inter_cost,
      if result.has_scenecut { "Scenecut" } else { "No cut" }
    );
    result.has_scenecut
  }
fn is_key_frame < T : Pixel > ( & self , previous_frame : Arc < Frame < T > > , current_frame : Arc < Frame < T > > , current_frameno : u64 , previous_keyframe : u64 , ) -> bool { if self . excluded_frames . contains ( & current_frameno ) { return false ; } let result = self . has_scenecut ( previous_frame , current_frame , current_frameno , previous_keyframe , ) ; debug ! ( " " current_frameno 1 current_frameno result intra_cost result threshold result inter_cost if result has_scenecut { " " } else { " " } ) ; result . has_scenecut }
Determines if `current_frame` should be a keyframe.
Determines if ` current_frame ` should be a keyframe .
&self
previous_frame
Arc<Frame<T>>
current_frame
Arc<Frame<T>>
current_frameno
u64
previous_keyframe
u64
&self
previous_frame
Arc<Frame<T>>
current_frame
Arc<Frame<T>>
current_frameno
u64
previous_keyframe
u64