add load_file apply button, sketcher colorpicker alpha fix, tweak resize filebox...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / vmodule.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
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.
10  *
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.
15  *
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
19  *
20  */
21
22 #ifndef VMODULE_H
23 #define VMODULE_H
24
25 class VModuleGUI;
26 class VModuleTitle;
27 class VModuleFade;
28 class VModuleMute;
29 class VModuleMode;
30
31 #define VMODULEHEIGHT 91
32 #define VMODULEWIDTH 106
33
34
35 #include "guicast.h"
36 #include "datatype.h"
37 #include "edl.inc"
38 #include "filexml.inc"
39 #include "floatautos.inc"
40 #include "maxchannels.h"
41 #include "module.h"
42 #include "overlayframe.inc"
43 #include "sharedlocation.inc"
44 #include "track.inc"
45 #include "vedit.inc"
46 #include "vframe.inc"
47 #include "maskengine.inc"
48
49 class VModule : public Module
50 {
51 public:
52         VModule() {};
53         VModule(RenderEngine *renderengine,
54                 CommonRender *commonrender,
55                 PluginArray *plugin_array,
56                 Track *track);
57         virtual ~VModule();
58
59         void create_objects();
60         AttachmentPoint* new_attachment(Plugin *plugin);
61         int get_buffer_size();
62
63         CICache* get_cache();
64 // Read frame from file and perform camera transformation
65         int import_frame(VFrame *output,
66                 VEdit *current_edit,
67                 int64_t input_position,
68                 double frame_rate,
69                 int direction,
70                 int use_opengl);
71         int render(VFrame *output,
72                 int64_t start_position,
73                 int direction,
74                 double frame_rate,
75                 int use_nudge,
76                 int debug_render,
77                 int use_opengl = 0);
78
79 // synchronization with tracks
80         FloatAutos* get_fade_automation();       // get the fade automation for this module
81
82 // Temp frames for loading from file handlers
83         VFrame *input_temp;
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;
89         MaskEngine *masker;
90 };
91
92 #endif