public virtual bool IsIdenticalTo(FfmpegGeneratorSettings settings) { if (VideoFile != settings.VideoFile) { return(false); } if (OutputFile != settings.OutputFile) { return(false); } if (RenameBeforeExecute != settings.RenameBeforeExecute) { return(false); } if (SkipIfExists != settings.SkipIfExists) { return(false); } if (ClipLeft != settings.ClipLeft) { return(false); } return(true); }
public override bool IsIdenticalTo(FfmpegGeneratorSettings settings) { if (!(settings is PreviewGeneratorSettings previewSettings)) { return(false); } if (!base.IsIdenticalTo(settings)) { return(false); } if (previewSettings.Width != Width) { return(false); } if (previewSettings.Height != Height) { return(false); } if (Math.Abs(previewSettings.Framerate - Framerate) > 0.01) { return(false); } if (OverlayScriptPositions != previewSettings.OverlayScriptPositions) { return(false); } return(true); }