Olive
Functions
playback.cpp File Reference
#include "playback.h"
#include "project/clip.h"
#include "project/sequence.h"
#include "project/footage.h"
#include "playback/audio.h"
#include "playback/cacher.h"
#include "panels/panels.h"
#include "panels/timeline.h"
#include "panels/viewer.h"
#include "project/effect.h"
#include "panels/effectcontrols.h"
#include "project/media.h"
#include "io/config.h"
#include "io/proxygenerator.h"
#include "debug.h"
#include <libavutil/pixdesc.h>
#include <libavcodec/avcodec.h>
#include <libswscale/swscale.h>
#include <libswresample/swresample.h>
#include <QtMath>
#include <QObject>
#include <QOpenGLTexture>
#include <QOpenGLPixelTransferOptions>
#include <QOpenGLFramebufferObject>
#include <QPainter>
#include <QCoreApplication>

Functions

long refactor_frame_number (long framenumber, double source_frame_rate, double target_frame_rate)
 
bool clip_uses_cacher (ClipPtr clip)
 
void open_clip (ClipPtr clip, bool multithreaded)
 
void close_clip (ClipPtr clip, bool wait)
 
void cache_clip (ClipPtr clip, long playhead, bool reset, bool scrubbing, QVector< ClipPtr > &nests, int playback_speed)
 
double get_timecode (ClipPtr c, long playhead)
 
void get_clip_frame (ClipPtr c, long playhead, bool &texture_failed)
 
long playhead_to_clip_frame (ClipPtr c, long playhead)
 
double playhead_to_clip_seconds (ClipPtr c, long playhead)
 
int64_t seconds_to_timestamp (ClipPtr c, double seconds)
 
int64_t playhead_to_timestamp (ClipPtr c, long playhead)
 
int retrieve_next_frame (ClipPtr c, AVFrame *f)
 
bool is_clip_active (ClipPtr c, long playhead)
 
void set_sequence (SequencePtr s)
 
void closeActiveClips (SequencePtr s)
 

Function Documentation

◆ cache_clip()

void cache_clip ( ClipPtr  clip,
long  playhead,
bool  reset,
bool  scrubbing,
QVector< ClipPtr > &  nests,
int  playback_speed 
)

◆ clip_uses_cacher()

bool clip_uses_cacher ( ClipPtr  clip)

◆ close_clip()

void close_clip ( ClipPtr  clip,
bool  wait 
)

◆ closeActiveClips()

void closeActiveClips ( SequencePtr  s)

◆ get_clip_frame()

void get_clip_frame ( ClipPtr  c,
long  playhead,
bool &  texture_failed 
)

◆ get_timecode()

double get_timecode ( ClipPtr  c,
long  playhead 
)

◆ is_clip_active()

bool is_clip_active ( ClipPtr  c,
long  playhead 
)

◆ open_clip()

void open_clip ( ClipPtr  clip,
bool  multithreaded 
)

◆ playhead_to_clip_frame()

long playhead_to_clip_frame ( ClipPtr  c,
long  playhead 
)

◆ playhead_to_clip_seconds()

double playhead_to_clip_seconds ( ClipPtr  c,
long  playhead 
)

◆ playhead_to_timestamp()

int64_t playhead_to_timestamp ( ClipPtr  c,
long  playhead 
)

◆ refactor_frame_number()

long refactor_frame_number ( long  framenumber,
double  source_frame_rate,
double  target_frame_rate 
)

◆ retrieve_next_frame()

int retrieve_next_frame ( ClipPtr  c,
AVFrame *  f 
)

◆ seconds_to_timestamp()

int64_t seconds_to_timestamp ( ClipPtr  c,
double  seconds 
)

◆ set_sequence()

void set_sequence ( SequencePtr  s)