change to fixed rate refresh stratigy for vicons
[goodguy/history.git] / cinelerra-5.0 / plugins / lof / lof.h
1 #ifndef LOF_H
2 #define LOF_H
3
4 #include "filexml.h"
5 #include "bchash.h"
6 #include "language.h"
7 #include "pluginvclient.h"
8 #include "vframe.h"
9
10 class LofConfig;
11 class LofEffect;
12 class LofWindow;
13
14 class LofConfig {
15 public:
16         int errs;
17         int miss;
18         int mark;
19
20         LofConfig();
21
22         void copy_from(LofConfig &src);
23         int equivalent(LofConfig &src);
24         void interpolate(LofConfig &prev, LofConfig &next, 
25                 long prev_frame, long next_frame, long current_frame);
26 };
27
28 class LofEffect : public PluginVClient {
29 public:
30         LofEffect(PluginServer *server);
31         ~LofEffect();
32
33         PLUGIN_CLASS_MEMBERS(LofConfig)
34         int process_buffer(VFrame *frame, int64_t start_position, double frame_rate);
35         int is_realtime();
36         void save_data(KeyFrame *keyframe);
37         void read_data(KeyFrame *keyframe);
38         void update_gui();
39
40         VFrame *frm;
41 };
42
43
44 #endif