r870: Merge 2.1:
[cinelerra_cv.git] / cinelerra / virtualvconsole.h
blobb043921bb30f7dc42684f0a028be12f8e070c231
1 #ifndef VRENDERTHREAD_H
2 #define VRENDERTHREAD_H
4 #include "guicast.h"
5 #include "maxbuffers.h"
6 #include "vframe.inc"
7 #include "videodevice.inc"
8 #include "virtualconsole.h"
9 #include "vrender.inc"
10 #include "vtrack.inc"
12 class VirtualVConsole : public VirtualConsole
14 public:
15 VirtualVConsole(RenderEngine *renderengine, VRender *vrender);
16 virtual ~VirtualVConsole();
18 // Create ptrs to input buffers
20 * void new_input_buffer(int ring_buffer);
21 * void delete_input_buffer(int ring_buffer);
22 * int total_ring_buffers();
24 void get_playable_tracks();
25 VirtualNode* new_entry_node(Track *track,
26 Module *module,
27 int track_number);
29 VDeviceBase* get_vdriver();
31 // Composite a frame
32 // start_position - start of buffer in project if forward. end of buffer if reverse
33 int process_buffer(int64_t input_position);
35 // absolute frame the buffer starts on
36 int64_t absolute_frame;
38 VFrame *output_temp;
39 VRender *vrender;
40 // Calculated at the start of every process_buffer
41 int use_opengl;
54 #endif