diff options
Diffstat (limited to 'rotord/src/rotor.h')
| -rwxr-xr-x | rotord/src/rotor.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index 85e7ac4..8e37b51 100755 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -1037,6 +1037,8 @@ namespace Rotor { private: Image *image; //is an image generator }; +#define VIDEOFRAMES_still 1 +#define VIDEOFRAMES_blend 2 class Video_loader: public Image_node { public: Video_loader(){}; @@ -1044,9 +1046,16 @@ namespace Rotor { base_settings(settings); isLoaded=false; filename=find_setting(settings,"filename",""); + speed=find_setting(settings,"speed",1.0f); + framerate=find_setting(settings,"framerate",0.0f); + //0.0f signifies to use the internal framerate if (filename!="") { load(find_setting(settings,"media_path","")+filename); } + string frame_op=find_setting(settings,"mode","still"); + if (frame_op=="still") mode=VIDEOFRAMES_still; + if (frame_op=="blend") mode=VIDEOFRAMES_blend; + lastframe=0; }; ~Video_loader(){}; bool load(const string &filename); @@ -1057,6 +1066,10 @@ namespace Rotor { libav::decoder player; Image image; string filename; + float speed; + float framerate; + int mode; + int lastframe; }; /* class CVideo_loader: public Image_node { |
