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