Skip to content

Commit

Permalink
comment and white space update
Browse files Browse the repository at this point in the history
  • Loading branch information
jojje committed Jul 20, 2015
1 parent 7d576df commit 1a67917
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions Cycle.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ class Cycle {
int getFrameWithLargestDiff(int offset);
bool includes(int frame);
bool isBadFrame(int n);

void reset();

void updateFrameMap();
};

Expand Down
6 changes: 3 additions & 3 deletions SmoothSkip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 1a67917

Please sign in to comment.