Olive
frei0reffect.h
1 /***
2 
3  Olive - Non-Linear Video Editor
4  Copyright (C) 2019 Olive Team
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 ***/
20 
21 #ifndef FREI0REFFECT_H
22 #define FREI0REFFECT_H
23 
24 #ifndef NOFREI0R
25 
26 #include "project/effect.h"
27 
28 #include <frei0r.h>
29 
30 #include "io/crossplatformlib.h"
31 
32 typedef void (*f0rGetParamInfo)(f0r_param_info_t * info,
33  int param_index );
34 
35 class Frei0rEffect : public Effect {
36  Q_OBJECT
37 public:
38  Frei0rEffect(Clip* c, const EffectMeta* em);
39  ~Frei0rEffect();
40 
41  virtual void process_image(double timecode, uint8_t* input, uint8_t* output, int size);
42 
43  virtual void refresh();
44 private:
45  ModulePtr handle;
46  f0r_instance_t instance;
47  int param_count;
48  f0rGetParamInfo get_param_info;
49  void destruct_module();
50  void construct_module();
51  bool open;
52 };
53 
54 #endif
55 
56 #endif // FREI0REFFECT_H
Definition: effect.h:166
Definition: effect.h:47
Definition: clip.h:53
Definition: frei0reffect.h:35