diff options
Diffstat (limited to 'rotord/src/rotor.h')
| -rw-r--r-- | rotord/src/rotor.h | 14 |
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 |
