r1008: pt_BR translation update
[cinelerra_cv/mob.git] / plugins / graphic / graphic.C
blob63ebc0dca4ddb424d339c2077b5fd3fde349415d
1 #include "bcdisplayinfo.h"
2 #include "clip.h"
3 #include "bchash.h"
4 #include "filexml.h"
5 #include "picon_png.h"
6 #include "units.h"
7 #include "vframe.h"
9 #include <math.h>
10 #include <string.h>
15 #define WINDOW_SIZE 16384
16 #define MAXMAGNITUDE 15
22 class GraphicEQ : public PluginAClient
24 public:
25         GraphicEQ(PluginServer *server);
26         ~GraphicEQ();
28         VFrame* new_picon();
29         char* plugin_title();
30         int is_realtime();
31         void read_data(KeyFrame *keyframe);
32         void save_data(KeyFrame *keyframe);
33         int process_realtime(long size, double *input_ptr, double *output_ptr);
34         int show_gui();
35         void raise_window();
36         int set_string();
42         int load_defaults();
43         int save_defaults();
44         void load_configuration();
45         void reset();
46         void reconfigure();
47         void update_gui();
49         double calculate_envelope();
50         double gauss(double sigma, double a, double x);
52         double envelope[WINDOW_SIZE / 2];
53         int need_reconfigure;
54         BC_Hash *defaults;
55         GraphicThread *thread;
56         GraphicFFT *fft;
57         GraphicConfig config;
70 PluginClient* new_plugin(PluginServer *server)
72         return new GraphicEQ(server);