#include <QOpenGLContext>
#include <QVector>
#include <QOpenGLShaderProgram>
#include "timeline/sequence.h"
#include "effects/effect.h"
#include "panels/viewer.h"
Go to the source code of this file.
Classes | |
struct | ComposeSequenceParams |
The ComposeSequenceParams struct. More... | |
Namespaces | |
olive | |
olive::rendering | |
Functions | |
GLuint | olive::rendering::compose_sequence (ComposeSequenceParams ¶ms) |
Compose a frame of a given sequence. More... | |
void | olive::rendering::compose_audio (Viewer *viewer, Sequence *seq, int playback_speed, bool wait_for_mutexes) |
Convenience wrapper function for compose_sequence() to render audio. More... | |
long | rescale_frame_number (long framenumber, double source_frame_rate, double target_frame_rate) |
Rescale a frame number between two frame rates. More... | |
double | get_timecode (Clip *c, long playhead) |
Get timecode. More... | |
long | playhead_to_clip_frame (Clip *c, long playhead) |
Convert playhead frame number to a clip frame number. More... | |
double | playhead_to_clip_seconds (Clip *c, long playhead) |
Converts the playhead to clip seconds. More... | |
int64_t | seconds_to_timestamp (Clip *c, double seconds) |
Convert seconds to FFmpeg timestamp. More... | |
int64_t | playhead_to_timestamp (Clip *c, long playhead) |
Convert Timeline playhead to FFmpeg timestamp. More... | |
void | close_active_clips (Sequence *s) |
Close all open clips in a Sequence. More... | |
void close_active_clips | ( | Sequence * | s | ) |
Close all open clips in a Sequence.
Closes any currently open clips on a Sequence and waits for them to close before returning. This may be slow as a result on large Sequence objects. If a Clip is a nested Sequence, this function calls itself recursively on that Sequence too.
s | The Sequence to close all clips on. |
double get_timecode | ( | Clip * | c, |
long | playhead | ||
) |
Get timecode.
Get the current clip/media time from the Timeline playhead in seconds. For instance if the playhead was at the start of a clip (whose in point wasn't trimmed), this would be 0.0 as it's the start of the clip/media;
c | Clip to get the timecode of |
playhead | Sequence playhead to convert to a clip/media timecode |
Timecode in seconds
long playhead_to_clip_frame | ( | Clip * | c, |
long | playhead | ||
) |
Convert playhead frame number to a clip frame number.
Converts a Timeline playhead to a the current clip's frame. Equivalent to PLAYHEAD - CLIP_TIMELINE_IN + CLIP_MEDIA_IN
. All keyframes are in clip frames.
c | The clip to get the current frame number of |
playhead | The current Timeline frame number |
The curren frame number of the clip at playhead
double playhead_to_clip_seconds | ( | Clip * | c, |
long | playhead | ||
) |
Converts the playhead to clip seconds.
Get the current timecode at the playhead in terms of clip seconds.
FIXME: Possible duplicate of get_timecode()? Will need to research this more.
c | Clip to return clip seconds of. |
playhead | Current Timeline playhead to convert to clip seconds |
Clip time in seconds
int64_t playhead_to_timestamp | ( | Clip * | c, |
long | playhead | ||
) |
long rescale_frame_number | ( | long | framenumber, |
double | source_frame_rate, | ||
double | target_frame_rate | ||
) |
Rescale a frame number between two frame rates.
Converts a frame number from one frame rate to its equivalent in another frame rate
framenumber | The frame number to convert |
source_frame_rate | Frame rate that the frame number is currently in |
target_frame_rate | Frame rate to convert to |
Rescaled frame number
int64_t seconds_to_timestamp | ( | Clip * | c, |
double | seconds | ||
) |