4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5 * Copyright (C) 2003-2016 Cinelerra CV contributors
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #ifndef __TRANSPORTQUE_H__
24 #define __TRANSPORTQUE_H__
27 #include "condition.inc"
29 #include "playbackengine.inc"
30 #include "preferences.inc"
31 #include "transportque.inc"
33 class TransportCommand
36 TransportCommand(Preferences *preferences);
40 void copy_from(TransportCommand *command);
41 TransportCommand& operator=(TransportCommand &command);
42 // Get the range to play back from the EDL
43 void set_playback_range(EDL *edl, int use_inout, int do_displacement);
44 static int single_frame(int command);
45 static int get_direction(int command);
46 float get_speed(int command, float speed=0);
48 // Adjust playback range with in/out points for rendering
49 void playback_range_adjust_inout();
50 // Set playback range to in/out points for rendering
51 void playback_range_inout();
52 // Set playback range to whole project for rendering
53 void playback_range_project();
54 void playback_range_1frame();
63 double start_position, end_position;
65 // Position used when starting playback
67 // playback offset for always show next frame pref
69 // Send output to device
71 // command must execute
73 // Use persistant starting point
79 // SLOW,FAST play speed
82 int single_frame() { return single_frame(command); }
83 int get_direction() { return get_direction(command); }
84 float get_speed() { return get_speed(command, speed); }
85 void set_playback_range() { set_playback_range(0, 0, 0); }
87 // Copied to render engines
89 Preferences *preferences;