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 "preferences.inc"
29 #include "transportque.inc"
31 class TransportCommand
38 static int single_frame(int command);
40 // Get the direction based on the command
41 static int get_direction(int command);
43 static float get_speed(int command);
45 void copy_from(TransportCommand *command);
46 TransportCommand& operator=(TransportCommand &command);
47 // Get the range to play back from the EDL
48 void set_playback_range(EDL *edl=0, int use_inout=0, int toggle_audio=0);
50 // Adjust playback range with in/out points for rendering
51 void playback_range_adjust_inout();
52 // Set playback range to in/out points for rendering
53 void playback_range_inout();
54 // Set playback range to whole project for rendering
55 void playback_range_project();
56 void playback_range_1frame();
64 // lowest numbered second in playback range
65 double start_position;
66 // highest numbered second in playback range
69 // Position used when starting playback
71 // Send output to device
73 // Use persistant starting point
79 // Copied to render engines
89 int send_command(int command,
90 // The change type is ORed to accumulate changes.
94 // Persistent starting point
97 int toggle_audio = 0);
98 void update_change_type(int change_type);
100 TransportCommand command;
101 Condition *input_lock, *output_lock;