r1006: configure: Use libx264_pic instead of libx264 if available.
[cinelerra_cv/mob.git] / cinelerra / attachmentpoint.h
blobe2aef4481f3834ff17483a2c46d6bd6af151f7d3
1 #ifndef ATTACHMENTPOINT_H
2 #define ATTACHMENTPOINT_H
4 #include "arraylist.h"
5 #include "filexml.inc"
6 #include "floatauto.inc"
7 #include "floatautos.inc"
8 #include "mwindow.inc"
9 #include "messages.inc"
10 #include "plugin.inc"
11 #include "pluginserver.inc"
12 #include "renderengine.inc"
13 #include "sharedlocation.h"
14 #include "vframe.inc"
15 #include "virtualnode.inc"
17 #include <stdint.h>
19 // Attachment points for Modules to attach plugins
20 class AttachmentPoint
22 public:
23 AttachmentPoint(RenderEngine *renderengine,
24 Plugin *plugin,
25 int data_type);
26 virtual ~AttachmentPoint();
28 virtual int reset_parameters();
29 // Used by Module::swap_attachments before virtual console expansion.
30 // Return 1 if the plugin id is the same
31 int identical(AttachmentPoint *old);
33 // Move new_virtual_plugins to virtual_plugins.
34 // Called after virtual console expansion.
35 int render_init();
37 // Cause plugins to free any resources which are required after stopping
38 void render_stop();
40 // Called before every buffer processing
41 void reset_status();
43 // Attach a virtual plugin for realtime playback. Returns the number
44 // of the buffer assigned to a multichannel plugin.
45 int attach_virtual_plugin(VirtualNode *virtual_plugin);
46 virtual void delete_buffer_vector() {};
48 // return 0 if ready to render
49 // check all the virtual plugins for waiting status
50 // all virtual plugins attached to this must be waiting for a render
51 // int sort(VirtualNode *virtual_plugin);
52 // Called by plugin server to render GUI with data.
53 void render_gui(void *data);
54 void render_gui(void *data, int size);
55 int gui_open();
56 virtual int get_buffer_size() { return 0; };
58 // For unshared plugins, virtual plugins to send configuration events to and
59 // read data from.
60 // For shared plugins, virtual plugins to allocate buffers for and read
61 // data from.
62 ArrayList<VirtualNode*> virtual_plugins;
64 // List for a new virtual console which is transferred to virtual_plugins after
65 // virtual console expansion.
66 ArrayList<VirtualNode*> new_virtual_plugins;
68 // Plugin servers to do signal processing
69 ArrayList<PluginServer*> plugin_servers;
71 // renderengine Plugindb entry
72 PluginServer *plugin_server;
73 // Pointer to the plugin object in EDL
74 Plugin *plugin;
75 // ID of plugin object in EDL
76 int plugin_id;
77 RenderEngine *renderengine;
78 // Current input buffer being loaded. Determines when the plugin server is run
79 // int current_buffer;
81 // Status of last buffer processed.
82 // Used in shared multichannel plugin to tell of it's already been processed
83 // or needs to be processed again for a different target.
84 // start_position is the end of the range if playing in reverse.
85 int64_t start_position;
86 int64_t len;
87 int64_t sample_rate;
88 double frame_rate;
89 int is_processed;
90 int data_type;
102 int multichannel_shared(int search_new);
103 int singlechannel();
107 int dump();
111 #endif