Fixed initialisation of tf in file_open(). Without setting the memory to 0,
[cinelerra_cv/mob.git] / plugins / despike / despike.h
blobe5c36241b240a2fc087e3678122364573e25ee5e
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 BC_Hash *defaults;
56 DespikeThread *thread;
57 double last_sample;
60 #endif