From 1a679177c926f510516ceafb944a0bf2c411cc0c Mon Sep 17 00:00:00 2001 From: Jonas Tingeborn Date: Mon, 20 Jul 2015 18:45:32 +0200 Subject: [PATCH] comment and white space update --- Cycle.h | 2 -- SmoothSkip.cpp | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Cycle.h b/Cycle.h index af1b081..4f73180 100644 --- a/Cycle.h +++ b/Cycle.h @@ -50,9 +50,7 @@ class Cycle { int getFrameWithLargestDiff(int offset); bool includes(int frame); bool isBadFrame(int n); - void reset(); - void updateFrameMap(); }; diff --git a/SmoothSkip.cpp b/SmoothSkip.cpp index c25a414..6f7fd00 100644 --- a/SmoothSkip.cpp +++ b/SmoothSkip.cpp @@ -42,7 +42,7 @@ PVideoFrame __stdcall SmoothSkip::GetFrame(int n, IScriptEnvironment* env) { if (alt) { acn = max(cn + offset, 0); // original frame number for alternate clip, offset as specified by user. - acn = min(acn, altclip->GetVideoInfo().num_frames - 1); // ensure the altclip frame to get is 0 <= x <= last frame number in alt clip + acn = min(acn, altclip->GetVideoInfo().num_frames - 1); // ensure the altclip frame to get is 0 <= x <= [last frame number] in alt clip frame = altclip->GetFrame(acn, env); } else { frame = child->GetFrame(cn, env); @@ -155,13 +155,13 @@ double GetFps(PClip clip) { double yDifferenceFromPrevious(IScriptEnvironment* env, PClip clip, int n) { env->SetVar("current_frame", (AVSValue)n); // allow us to use RT filters anyway - AVSValue args[1] = { clip }; // time, ml + AVSValue args[1] = { clip }; return env->Invoke("YDifferenceFromPrevious", AVSValue(args, 1)).AsFloat(); } double TcDifferenceFromPrevious(IScriptEnvironment* env, PClip clip, int n) { env->SetVar("current_frame", (AVSValue)n); // allow us to use RT filters anyway - AVSValue args[1] = { clip }; // time, ml + AVSValue args[1] = { clip }; return env->Invoke("CFrameDiff", AVSValue(args, 1)).AsFloat(); }