r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / plugins / despike / despike.h
blobd2ddc4fd203aaf26a9fbcdc91829ff3cd4f60bb3
1 #ifndef DESPIKE_H
2 #define DESPIKE_H
4 class Despike;
5 class DespikeEngine;
7 #include "despikewindow.h"
8 #include "pluginaclient.h"
10 class DespikeConfig
12 public:
13 DespikeConfig();
15 int equivalent(DespikeConfig &that);
16 void copy_from(DespikeConfig &that);
17 void interpolate(DespikeConfig &prev,
18 DespikeConfig &next,
19 int64_t prev_frame,
20 int64_t next_frame,
21 int64_t current_frame);
23 double level;
24 double slope;
27 class Despike : public PluginAClient
29 public:
30 Despike(PluginServer *server);
31 ~Despike();
33 void update_gui();
34 int load_configuration();
36 // data for despike
37 DespikeConfig config;
39 DB db;
41 char* plugin_title();
42 VFrame* new_picon();
43 int is_realtime();
44 int process_realtime(int64_t size, double *input_ptr, double *output_ptr);
45 int show_gui();
46 int set_string();
47 void save_data(KeyFrame *keyframe);
48 void read_data(KeyFrame *keyframe);
49 void raise_window();
51 // non realtime support
52 int load_defaults();
53 int save_defaults();
54 Defaults *defaults;
56 DespikeThread *thread;
57 double last_sample;
60 #endif