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
31 #define VMODULEHEIGHT 91
32 #define VMODULEWIDTH 106
38 #include "filexml.inc"
39 #include "floatautos.inc"
40 #include "maxchannels.h"
42 #include "overlayframe.inc"
43 #include "sharedlocation.inc"
47 #include "maskengine.inc"
49 class VModule : public Module
53 VModule(RenderEngine *renderengine,
54 CommonRender *commonrender,
55 PluginArray *plugin_array,
59 void create_objects();
60 AttachmentPoint* new_attachment(Plugin *plugin);
61 int get_buffer_size();
64 // Read frame from file and perform camera transformation
65 int import_frame(VFrame *output,
67 int64_t input_position,
71 int render(VFrame *output,
72 int64_t start_position,
79 // synchronization with tracks
80 FloatAutos* get_fade_automation(); // get the fade automation for this module
82 // Temp frames for loading from file handlers
84 // For use when no VRender is available.
85 // Temp frame for transition
86 VFrame *transition_temp;
87 // Engine for transferring from file to buffer_in
88 OverlayFrame *overlay_temp;