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);
80 void setSpeed(
int new_speed) { speed = new_speed; }
98 #endif // OPENSHOT_VIDEO_CACHE_THREAD_H void setSpeed(int new_speed)
Set Speed (The speed and direction to playback a reader (1=normal, 2=fast, 3=faster, -1=rewind, etc...)
VideoCacheThread()
Constructor.
void Play()
Play the video.
This class is used to playback a video from a reader.
This abstract class is the base class, used by all readers in libopenshot.
std::shared_ptr< Frame > frame
~VideoCacheThread()
Destructor.
void Reader(ReaderBase *new_reader)
Set the current thread's reader.
void Stop()
Stop the audio playback.
The private part of QtPlayer class, which contains an audio thread and video thread, and controls the video timing and audio synchronization code.
int max_concurrent_frames
void run()
Start the thread.
This namespace is the default namespace for all code in the openshot library.
void Seek(int64_t new_position)
Seek the reader to a particular frame number.
int64_t current_display_frame
void setCurrentFramePosition(int64_t current_frame_number)
Set the currently displaying frame number.
int64_t getCurrentFramePosition()
Get the currently playing frame number (if any)
int getSpeed() const
Get Speed (The speed and direction to playback a reader (1=normal, 2=fast, 3=faster, -1=rewind, etc...)