4 // the simplest plugin possible
10 #include "translatewin.h"
11 #include "overlayframe.h"
12 #include "pluginvclient.h"
18 int equivalent(TranslateConfig
&that
);
19 void copy_from(TranslateConfig
&that
);
20 void interpolate(TranslateConfig
&prev
,
21 TranslateConfig
&next
,
24 int64_t current_frame
);
26 float in_x
, in_y
, in_w
, in_h
, out_x
, out_y
, out_w
, out_h
;
30 class TranslateMain
: public PluginVClient
33 TranslateMain(PluginServer
*server
);
36 // required for all realtime plugins
37 int process_realtime(VFrame
*input_ptr
, VFrame
*output_ptr
);
44 void save_data(KeyFrame
*keyframe
);
45 void read_data(KeyFrame
*keyframe
);
49 int load_configuration();
51 // a thread for the GUI
52 TranslateThread
*thread
;
54 OverlayFrame
*overlayer
; // To translate images
55 VFrame
*temp_frame
; // Used if buffers are the same
57 TranslateConfig config
;