31#ifndef OPENSHOT_VIDEO_CACHE_THREAD_H
32#define OPENSHOT_VIDEO_CACHE_THREAD_H
34#include "../OpenMPUtilities.h"
35#include "../ReaderBase.h"
36#include "../RendererBase.h"
41 using juce::WaitableEvent;
49 std::atomic_int position;
74 void Seek(int64_t new_position);
The private part of QtPlayer class, which contains an audio thread and video thread,...
This class is used to playback a video from a reader.
This abstract class is the base class, used by all readers in libopenshot.
void setSpeed(int new_speed)
Set Speed (The speed and direction to playback a reader (1=normal, 2=fast, 3=faster,...
std::shared_ptr< Frame > frame
void Play()
Play the video.
int64_t getCurrentFramePosition()
Get the currently playing frame number (if any)
void Stop()
Stop the audio playback.
~VideoCacheThread()
Destructor.
int64_t current_display_frame
VideoCacheThread()
Constructor.
void Reader(ReaderBase *new_reader)
Set the current thread's reader.
void Seek(int64_t new_position)
Seek the reader to a particular frame number.
int max_concurrent_frames
void setCurrentFramePosition(int64_t current_frame_number)
Set the currently displaying frame number.
int getSpeed() const
Get Speed (The speed and direction to playback a reader (1=normal, 2=fast, 3=faster,...
void run()
Start the thread.
This namespace is the default namespace for all code in the openshot library.