21 #ifndef RENDERFUNCTIONS_H
22 #define RENDERFUNCTIONS_H
24 #include <QOpenGLContext>
26 #include <QOpenGLShaderProgram>
219 namespace rendering {
292 long rescale_frame_number(
long framenumber,
double source_frame_rate,
double target_frame_rate);
408 #endif // RENDERFUNCTIONS_H
GLuint main_buffer
The OpenGL framebuffer object that the final texture to be shown is rendered to.
Definition: renderfunctions.h:164
GLuint backend_attachment2
Backend OpenGL framebuffer 2's texture attachment.
Definition: renderfunctions.h:205
void compose_audio(Viewer *viewer, Sequence *seq, int playback_speed, bool wait_for_mutexes)
Convenience wrapper function for compose_sequence() to render audio.
Definition: renderfunctions.cpp:663
Viewer * viewer
Reference to the Viewer class that's calling compose_sequence()
Definition: renderfunctions.h:44
QOpenGLShaderProgram * premultiply_program
Premultiply alpha shader.
Definition: renderfunctions.h:155
double playhead_to_clip_seconds(Clip *c, long playhead)
Converts the playhead to clip seconds.
Definition: renderfunctions.cpp:688
The ComposeSequenceParams struct.
Definition: renderfunctions.h:37
QOpenGLShaderProgram * blend_mode_program
Blending mode shader.
Definition: renderfunctions.h:143
bool wait_for_mutexes
Run all cachers in the same thread that compose_sequence() is in.
Definition: renderfunctions.h:121
long rescale_frame_number(long framenumber, double source_frame_rate, double target_frame_rate)
Rescale a frame number between two frame rates.
Definition: renderfunctions.cpp:676
GLuint ocio_lut_texture
OpenGL texture containing LUT obtained form OpenColorIO.
Definition: renderfunctions.h:215
Effect * gizmos
Set to the Effect whose gizmos were chosen to be drawn on screen.
Definition: renderfunctions.h:83
GLuint backend_buffer1
Backend OpenGL framebuffer 1 used for further processing before rendering to main_buffer.
Definition: renderfunctions.h:181
int64_t playhead_to_timestamp(Clip *c, long playhead)
Convert Timeline playhead to FFmpeg timestamp.
Definition: renderfunctions.cpp:708
int playback_speed
Set the current playback speed (adjusted with Shuttle Left/Right)
Definition: renderfunctions.h:130
bool video
Set compose mode to video or audio.
Definition: renderfunctions.h:76
QOpenGLShaderProgram * ocio_shader
OpenGL shader containing OpenColorIO shader information.
Definition: renderfunctions.h:210
double get_timecode(Clip *c, long playhead)
Get timecode.
Definition: renderfunctions.cpp:680
QOpenGLContext * ctx
The OpenGL context to use while rendering.
Definition: renderfunctions.h:53
int64_t seconds_to_timestamp(Clip *c, double seconds)
Convert seconds to FFmpeg timestamp.
Definition: renderfunctions.cpp:704
Sequence * seq
The sequence to compose.
Definition: renderfunctions.h:61
QVector< Clip * > nests
Array to store the nested sequence hierarchy.
Definition: renderfunctions.h:69
GLuint backend_buffer2
Backend OpenGL framebuffer 2 used for further processing before rendering to main_buffer.
Definition: renderfunctions.h:197
GLuint compose_sequence(ComposeSequenceParams ¶ms)
Compose a frame of a given sequence.
Definition: renderfunctions.cpp:165
long playhead_to_clip_frame(Clip *c, long playhead)
Convert playhead frame number to a clip frame number.
Definition: renderfunctions.cpp:684
Definition: sequence.h:31
GLuint main_attachment
The attachment to the framebuffer in main_buffer.
Definition: renderfunctions.h:173
void close_active_clips(Sequence *s)
Close all open clips in a Sequence.
Definition: renderfunctions.cpp:712
GLuint backend_attachment1
Backend OpenGL framebuffer 1's texture attachment.
Definition: renderfunctions.h:189
bool texture_failed
A variable that compose_sequence() will set to TRUE if any of the clips couldn't be shown...
Definition: renderfunctions.h:105