Olive
renderfunctions.h
1 #ifndef RENDERFUNCTIONS_H
2 #define RENDERFUNCTIONS_H
3 
4 #include <QOpenGLContext>
5 #include <QVector>
6 
7 class Effect;
8 class Viewer;
9 class QOpenGLShaderProgram;
10 struct Sequence;
11 class Clip;
12 
14  Viewer* viewer;
15  QOpenGLContext* ctx;
16  Sequence* seq;
17  QVector<Clip*> nests;
18  bool video;
19  bool render_audio;
20  Effect** gizmos;
21  bool texture_failed;
22  bool rendering;
23  int playback_speed;
24  QOpenGLShaderProgram* blend_mode_program;
25  QOpenGLShaderProgram* premultiply_program;
26  GLuint main_buffer;
27  GLuint main_attachment;
28  GLuint backend_buffer1;
29  GLuint backend_attachment1;
30  GLuint backend_buffer2;
31  GLuint backend_attachment2;
32 };
33 
34 GLuint compose_sequence(ComposeSequenceParams &params);
35 
36 void compose_audio(Viewer* viewer, Sequence* seq, bool render_audio, int playback_speed);
37 
38 void viewport_render();
39 
40 #endif // RENDERFUNCTIONS_H
Definition: sequence.h:13
Definition: renderfunctions.h:13
Definition: effect.h:146
Definition: clip.h:33
Definition: viewer.h:25