7 #include "overlayframe.inc"
8 #include "pluginvclient.h"
11 class ShapeWipeW2B
: public BC_Radial
14 ShapeWipeW2B(ShapeWipeMain
*plugin
,
15 ShapeWipeWindow
*window
,
19 ShapeWipeMain
*plugin
;
20 ShapeWipeWindow
*window
;
23 class ShapeWipeB2W
: public BC_Radial
26 ShapeWipeB2W(ShapeWipeMain
*plugin
,
27 ShapeWipeWindow
*window
,
31 ShapeWipeMain
*plugin
;
32 ShapeWipeWindow
*window
;
35 class ShapeWipeFilename
: public BC_TextBox
38 ShapeWipeFilename(ShapeWipeMain
*plugin
,
39 ShapeWipeWindow
*window
,
44 ShapeWipeMain
*plugin
;
45 ShapeWipeWindow
*window
;
49 class ShapeWipeBrowseButton
: public BC_GenericButton
52 ShapeWipeBrowseButton(ShapeWipeMain
*plugin
,
53 ShapeWipeWindow
*window
,
54 ShapeWipeFilename
*filename
,
58 ShapeWipeMain
*plugin
;
59 ShapeWipeWindow
*window
;
60 ShapeWipeFilename
*filename
;
63 class ShapeWipeAntiAlias
: public BC_CheckBox
66 ShapeWipeAntiAlias(ShapeWipeMain
*plugin
,
67 ShapeWipeWindow
*window
,
71 ShapeWipeMain
*plugin
;
72 ShapeWipeWindow
*window
;
76 class ShapeWipePreserveAspectRatio
: public BC_CheckBox
79 ShapeWipePreserveAspectRatio(ShapeWipeMain
*plugin
,
80 ShapeWipeWindow
*window
,
84 ShapeWipeMain
*plugin
;
85 ShapeWipeWindow
*window
;
89 class ShapeWipeLoad
: public BC_FileBox
92 ShapeWipeLoad(ShapeWipeFilename
*filename
,
93 char *init_directory
);
94 ShapeWipeFilename
*filename
;
97 class ShapeWipeWindow
: public BC_Window
100 ShapeWipeWindow(ShapeWipeMain
*plugin
, int x
, int y
);
101 void create_objects();
103 void reset_pattern_image();
104 ShapeWipeMain
*plugin
;
107 ShapeWipeFilename
*filename_widget
;
110 PLUGIN_THREAD_HEADER(ShapeWipeMain
, ShapeWipeThread
, ShapeWipeWindow
)
112 class ShapeWipeMain
: public PluginVClient
115 ShapeWipeMain(PluginServer
*server
);
118 // required for all realtime plugins
119 void load_configuration();
120 int process_realtime(VFrame
*incoming
, VFrame
*outgoing
);
123 void save_data(KeyFrame
*keyframe
);
124 void read_data(KeyFrame
*keyframe
);
130 char* plugin_title();
133 int read_pattern_image(int new_frame_width
, int new_frame_height
);
134 void reset_pattern_image();
137 char filename
[BCTEXTLEN
];
138 char last_read_filename
[BCTEXTLEN
];
139 unsigned char **pattern_image
;
140 unsigned char min_value
;
141 unsigned char max_value
;
146 int last_preserve_aspect
;
147 ShapeWipeThread
*thread
;