summaryrefslogtreecommitdiff
path: root/rotord/src/rotor.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-09-04 16:41:30 +0100
committerTim Redfern <tim@eclectronics.org>2013-09-04 16:41:30 +0100
commita2e1bf3495b7bfefdaedb8fc737e969ab06df079 (patch)
treeb42ca849b4fe562a3942a8f29beaf315417b9f40 /rotord/src/rotor.h
parentbe19f5a21dc1fe717711d76f500f6bfe0c4d166b (diff)
cycler cut to next available slot
Diffstat (limited to 'rotord/src/rotor.h')
-rwxr-xr-xrotord/src/rotor.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h
index d6426f5..20089b8 100755
--- a/rotord/src/rotor.h
+++ b/rotord/src/rotor.h
@@ -430,7 +430,13 @@ namespace Rotor {
}
return nullptr;
}
- return image_inputs[((int)inputs[0]->get((Time_spec)frame))%image_inputs.size()]->get(frame);
+ //cut mode
+ for (int i=0;i<image_inputs.size();i++){
+ int whichinput=((int)inputs[0]->get((Time_spec)frame)+i)%image_inputs.size();
+ Image *in=image_inputs[whichinput]->get(frame);
+ if (in) return in;
+ }
+ return nullptr;
}
Video_cycler* clone(map<string,string> &_settings) { return new Video_cycler(_settings);};
};