Olive
cornerpineffect.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 CORNERPINEFFECT_H
22 #define CORNERPINEFFECT_H
23 
24 #include "project/effect.h"
25 
26 class CornerPinEffect : public Effect {
27  Q_OBJECT
28 public:
29  CornerPinEffect(Clip* c, const EffectMeta* em);
30  void process_coords(double timecode, GLTextureCoords& coords, int data);
31  void process_shader(double timecode, GLTextureCoords& coords, int iterations);
32  void gizmo_draw(double timecode, GLTextureCoords& coords);
33 private:
34  EffectField* top_left_x;
35  EffectField* top_left_y;
36  EffectField* top_right_x;
37  EffectField* top_right_y;
38  EffectField* bottom_left_x;
39  EffectField* bottom_left_y;
40  EffectField* bottom_right_x;
41  EffectField* bottom_right_y;
42  EffectField* perspective;
43 
44  EffectGizmo* top_left_gizmo;
45  EffectGizmo* top_right_gizmo;
46  EffectGizmo* bottom_left_gizmo;
47  EffectGizmo* bottom_right_gizmo;
48 };
49 
50 #endif // CORNERPINEFFECT_H
Definition: effect.h:125
Definition: effect.h:166
Definition: effect.h:47
Definition: effectgizmo.h:41
Definition: cornerpineffect.h:26
Definition: clip.h:53
Definition: effectfield.h:43