Olive
frei0reffect.h
1 #ifndef FREI0REFFECT_H
2 #define FREI0REFFECT_H
3 
4 #ifndef NOFREI0R
5 
6 #include "project/effect.h"
7 
8 #include <frei0r.h>
9 
10 #include "io/crossplatformlib.h"
11 
12 typedef void (*f0rGetParamInfo)(f0r_param_info_t * info,
13  int param_index );
14 
15 class Frei0rEffect : public Effect {
16  Q_OBJECT
17 public:
18  Frei0rEffect(Clip* c, const EffectMeta* em);
19  ~Frei0rEffect();
20 
21  virtual void process_image(double timecode, uint8_t* input, uint8_t* output, int size);
22 
23  virtual void refresh();
24 private:
25  ModulePtr handle;
26  f0r_instance_t instance;
27  int param_count;
28  f0rGetParamInfo get_param_info;
29  void destruct_module();
30  void construct_module();
31  bool open;
32 };
33 
34 #endif
35 
36 #endif // FREI0REFFECT_H
Definition: effect.h:146
Definition: effect.h:27
Definition: clip.h:33
Definition: frei0reffect.h:15