r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / plugins / resample / resample.h
blob8563bb2ffd0125fde5f981cb12399c7c835915af
1 #ifndef RESAMPLEEFFECT_H
2 #define RESAMPLEEFFECT_H
5 #include "defaults.inc"
6 #include "guicast.h"
7 #include "mainprogress.inc"
8 #include "pluginaclient.h"
9 #include "resample.inc"
10 #include "vframe.inc"
12 class ResampleEffect;
15 class ResampleFraction : public BC_TextBox
17 public:
18 ResampleFraction(ResampleEffect *plugin, int x, int y);
19 int handle_event();
20 ResampleEffect *plugin;
25 class ResampleWindow : public BC_Window
27 public:
28 ResampleWindow(ResampleEffect *plugin, int x, int y);
29 void create_objects();
30 ResampleEffect *plugin;
35 class ResampleEffect : public PluginAClient
37 public:
38 ResampleEffect(PluginServer *server);
39 ~ResampleEffect();
41 char* plugin_title();
42 int get_parameters();
43 VFrame* new_picon();
44 int start_loop();
45 int process_loop(double *buffer, int64_t &write_length);
46 int stop_loop();
47 int load_defaults();
48 int save_defaults();
49 void reset();
52 Resample *resample;
53 double scale;
54 Defaults *defaults;
55 MainProgressBar *progress;
56 int64_t total_written;
57 int64_t current_position;
64 #endif