r793: Small API addon, so plugins can 'see' camera and projector automation
[cinelerra_cv/mob.git] / cinelerra / vmodule.h
blobdc0f76cddafa3d81989c21de0cc15831ebf4e6a3
1 #ifndef VMODULE_H
2 #define VMODULE_H
4 class VModuleGUI;
5 class VModuleTitle;
6 class VModuleFade;
7 class VModuleMute;
8 class VModuleMode;
10 #define VMODULEHEIGHT 91
11 #define VMODULEWIDTH 106
14 #include "guicast.h"
15 #include "datatype.h"
16 #include "edl.inc"
17 #include "filexml.inc"
18 #include "floatautos.inc"
19 #include "maxchannels.h"
20 #include "module.h"
21 #include "overlayframe.inc"
22 #include "sharedlocation.inc"
23 #include "track.inc"
24 #include "vedit.inc"
25 #include "vframe.inc"
26 #include "maskengine.inc"
28 class VModule : public Module
30 public:
31 VModule() {};
32 VModule(RenderEngine *renderengine,
33 CommonRender *commonrender,
34 PluginArray *plugin_array,
35 Track *track);
36 virtual ~VModule();
38 void create_objects();
39 AttachmentPoint* new_attachment(Plugin *plugin);
40 int get_buffer_size();
42 CICache* get_cache();
43 int import_frame(VFrame *output,
44 VEdit *current_edit,
45 int64_t input_position,
46 double frame_rate,
47 int direction);
48 int render(VFrame *output,
49 int64_t start_position,
50 int direction,
51 double frame_rate,
52 int use_nudge,
53 int debug_render);
55 // synchronization with tracks
56 FloatAutos* get_fade_automation(); // get the fade automation for this module
58 // Temp frames for loading from file handlers
59 VFrame *input_temp;
60 // For use when no VRender is available.
61 // Temp frame for transition
62 VFrame *transition_temp;
63 // Engine for transferring from file to buffer_in
64 OverlayFrame *overlay_temp;
65 MaskEngine *masker;
68 #endif