summaryrefslogtreecommitdiff
path: root/rotord/src
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-11-06 10:18:12 +0000
committerComment <tim@gray.(none)>2013-11-06 10:18:12 +0000
commit6fccbe2cb9df61517aa5d9d6ac7b69ba763d4bc1 (patch)
tree7f0612f2e6aa0089411fef36da5f7f552f8c9d66 /rotord/src
parent94921caf9ca327d35adcb941f51ba4b1a776f768 (diff)
making video bank play mode
Diffstat (limited to 'rotord/src')
-rw-r--r--rotord/src/rotor.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h
index a8e6fca..e44c753 100644
--- a/rotord/src/rotor.h
+++ b/rotord/src/rotor.h
@@ -626,8 +626,21 @@ namespace Rotor {
}
if (isLoaded){
int wanted=0.0f;
+ int thisframe=((Time_spec)frame).frame();
switch (attributes["frame_mode"]->intVal){
case VIDEOTIME_play:
+ if(thisframe==lastframe+1){
+ if (segment!=wv){
+ //start of new segment
+ cerr<<"segment "<<wv<<" started: "<<((Time_spec)frame).time<<endl;
+ segment=wv;
+ segment_start=((Time_spec)frame).time;
+ }
+ }
+ else {
+ //find segment start
+ //while ()
+ }
wanted=ph*player.get_number_frames();
break;
case VIDEOTIME_stretch:
@@ -649,6 +662,7 @@ namespace Rotor {
string media_path;
float segment_start;
int segment;
+ int lastframe;
};
class Video_output: public Image_node {
//Video_output 'presents' the output movie. Aspect ratio, bars, fadein/fadeout would happen here