Loading...
Searching...
No Matches
VideoPlaybackThread.h
Go to the documentation of this file.
// Copyright (c) 2008-2019 OpenShot Studios, LLC
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#ifndef OPENSHOT_VIDEO_PLAYBACK_THREAD_H
#define OPENSHOT_VIDEO_PLAYBACK_THREAD_H
#include <AppConfig.h>
#include <juce_audio_basics/juce_audio_basics.h>
namespace openshot
{
class Frame;
class RendererBase;
using juce::Thread;
using juce::WaitableEvent;
class VideoPlaybackThread : Thread
{
RendererBase *renderer;
std::shared_ptr<Frame> frame;
WaitableEvent render;
WaitableEvent rendered;
bool reset;
VideoPlaybackThread(RendererBase *rb);
~VideoPlaybackThread();
int64_t getCurrentFramePosition();
void run();
friend class PlayerPrivate;
friend class QtPlayer;
};
}
#endif // OPENSHOT_VIDEO_PLAYBACK_THREAD_H
openshot::PlayerPrivate
The private part of QtPlayer class, which contains an audio thread and video thread,...
Definition PlayerPrivate.h:31
openshot::QtPlayer
This class is used to playback a video from a reader.
Definition QtPlayer.h:33
openshot::RendererBase
This is the base class of all Renderers in libopenshot.
Definition RendererBase.h:31
openshot::VideoPlaybackThread
The video playback class.
Definition VideoPlaybackThread.h:31
openshot
This namespace is the default namespace for all code in the openshot library.
Definition Compressor.h:29