21 #ifndef RENDERTHREAD_H 22 #define RENDERTHREAD_H 26 #include <QWaitCondition> 27 #include <QOffscreenSurface> 28 #include <QOpenGLContext> 29 #include <QOpenGLFramebufferObject> 30 #include <QOpenGLShaderProgram> 52 void start_render(QOpenGLContext* share,
SequencePtr s,
const QString &save =
nullptr, GLvoid *pixels =
nullptr,
int pixel_linesize = 0,
int idivider = 0);
93 #endif // RENDERTHREAD_H void run()
Definition: renderthread.cpp:54
void delete_shader_program()
Definition: renderthread.cpp:295
void delete_ctx()
Definition: renderthread.cpp:304
GLuint front_texture
Definition: renderthread.h:49
~RenderThread()
Definition: renderthread.cpp:50
void start_render(QOpenGLContext *share, SequencePtr s, const QString &save=nullptr, GLvoid *pixels=nullptr, int pixel_linesize=0, int idivider=0)
Definition: renderthread.cpp:238
QOpenGLShaderProgram * premultiply_program
Definition: renderthread.h:72
GLuint front_buffer
Definition: renderthread.h:48
QOpenGLShaderProgram * blend_mode_program
Definition: renderthread.h:71
QOpenGLContext * share_ctx
Definition: renderthread.h:69
void cancel()
Definition: renderthread.cpp:269
int pixel_buffer_linesize
Definition: renderthread.h:90
bool texture_failed
Definition: renderthread.h:86
void paint()
Definition: renderthread.cpp:164
QOffscreenSurface surface
Definition: renderthread.h:68
QWaitCondition waitCond
Definition: renderthread.h:67
SequencePtr seq
Definition: renderthread.h:81
GLuint back_texture_1
Definition: renderthread.h:76
GLuint back_texture_2
Definition: renderthread.h:77
void delete_fbo()
Definition: renderthread.cpp:285
RenderThread()
Definition: renderthread.cpp:32
EffectPtr gizmos
Definition: renderthread.h:50
bool running
Definition: renderthread.h:87
GLuint back_buffer_1
Definition: renderthread.h:74
QMutex mutex
Definition: renderthread.h:47
GLvoid * pixel_buffer
Definition: renderthread.h:89
int divider
Definition: renderthread.h:82
std::shared_ptr< Sequence > SequencePtr
Definition: clip.h:48
int tex_width
Definition: renderthread.h:83
void delete_texture()
Definition: renderthread.cpp:275
const int NUM_3D_ENTRIES
Definition: renderthread.h:39
const int LUT3D_EDGE_SIZE
Definition: renderthread.h:36
std::shared_ptr< Effect > EffectPtr
Definition: effect.h:48
bool queued
Definition: renderthread.h:85
int tex_height
Definition: renderthread.h:84
GLuint back_buffer_2
Definition: renderthread.h:75
Definition: renderthread.h:41
QOpenGLContext * ctx
Definition: renderthread.h:70
float ocio_lut_data[NUM_3D_ENTRIES]
Definition: renderthread.h:79
QString save_fn
Definition: renderthread.h:88
bool did_texture_fail()
Definition: renderthread.cpp:265