prevent popup deactivation while button_down
[goodguy/history.git] / cinelerra-5.0 / 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
48 class VModule : public Module
49 {
50 public:
51         VModule() {};
52         VModule(RenderEngine *renderengine, 
53                 CommonRender *commonrender, 
54                 PluginArray *plugin_array,
55                 Track *track);
56         virtual ~VModule();
57
58         void create_objects();
59         AttachmentPoint* new_attachment(Plugin *plugin);
60         int get_buffer_size();
61
62         CICache* get_cache();
63 // Read frame from file and perform camera transformation
64         int import_frame(VFrame *output,
65                 VEdit *current_edit,
66                 int64_t input_position,
67                 double frame_rate,
68                 int direction,
69                 int use_opengl);
70         int render(VFrame *output,
71                 int64_t start_position,
72                 int direction,
73                 double frame_rate,
74                 int use_nudge,
75                 int debug_render,
76                 int use_opengl = 0);
77
78 // synchronization with tracks
79         FloatAutos* get_fade_automation();       // get the fade automation for this module
80
81 // Temp frames for loading from file handlers
82         VFrame *input_temp;
83 // For use when no VRender is available.
84 // Temp frame for transition
85         VFrame *transition_temp;
86 // Engine for transferring from file to buffer_in
87         OverlayFrame *overlay_temp;
88 };
89
90 #endif