X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ftransportque.h;h=00f9e24a916d4196deb0de2f9cfe1cd5acb183c3;hb=0aa1cf868b3686002891a830f5f8e407344b1d9e;hp=351cf6825ea7bddd2844db901d8227fe7e93b512;hpb=3bf30d220f7855b995b887dc10812ae3780e6805;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/transportque.h b/cinelerra-5.1/cinelerra/transportque.h index 351cf682..00f9e24a 100644 --- a/cinelerra-5.1/cinelerra/transportque.h +++ b/cinelerra-5.1/cinelerra/transportque.h @@ -2,6 +2,7 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams + * Copyright (C) 2003-2016 Cinelerra CV contributors * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,12 +27,13 @@ #include "condition.inc" #include "edl.inc" #include "playbackengine.inc" +#include "preferences.inc" #include "transportque.inc" class TransportCommand { public: - TransportCommand(); + TransportCommand(Preferences *preferences); ~TransportCommand(); void reset(); @@ -41,7 +43,7 @@ public: void set_playback_range(EDL *edl, int use_inout, int do_displacement); static int single_frame(int command); static int get_direction(int command); - static float get_speed(int command, float speed=0); + float get_speed(int command, float speed=0); // Adjust playback range with in/out points for rendering void playback_range_adjust_inout(); @@ -55,7 +57,6 @@ public: void delete_edl(); void new_edl(); - PlaybackEngine *engine; int command; int change_type; // playback range @@ -63,10 +64,12 @@ public: int infinite; // Position used when starting playback double playbackstart; -// start at this=0/next=1 frame - int displacement; +// playback offset for always show next frame pref + double displacement; // Send output to device int realtime; +// command must execute + int locked; // Use persistant starting point int resume; // reverse audio duty @@ -83,6 +86,7 @@ public: private: // Copied to render engines EDL *edl; + Preferences *preferences; }; #endif