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 VIRTUALVNODE_H
23 #define VIRTUALVNODE_H
25 #include "fadeengine.inc"
26 #include "maskengine.inc"
28 #include "renderengine.inc"
30 #include "virtualnode.h"
31 #include "vrender.inc"
33 class VirtualVNode : public VirtualNode
36 // construct as a module or a plugin
37 VirtualVNode(RenderEngine *renderengine,
38 VirtualConsole *vconsole,
42 VirtualNode *parent_module);
47 VirtualNode* create_module(Plugin *real_plugin,
50 VirtualNode* create_plugin(Plugin *real_plugin);
51 void arm_attachmentpoint();
53 // Called by VirtualVConsole::process_buffer to process exit nodes.
54 // start_position - end of frame if reverse. start of frame if forward.
55 // frame_rate - rate start_position is relative to
56 // use_opengl - if opengl is available for this step
57 int render(VFrame *output_temp,
58 int64_t start_position,
62 // Read data from what comes before this node.
63 int read_data(VFrame *output_temp,
64 int64_t start_position,
69 int render_as_module(VFrame *video_out,
71 int64_t start_position,
74 void render_as_plugin(VFrame *output_temp,
75 int64_t start_position,
79 int render_projector(VFrame *input,
81 int64_t start_position, // Start of input fragment in project if forward. End of input fragment if reverse.
85 int render_fade(VFrame *output, // start of output fragment
86 int64_t start_position, // start of input fragment in project if forward / end of input fragment if reverse
92 void render_mask(VFrame *output_temp,
93 int64_t start_position_project,