OpenShot Library | libopenshot
1.1.1
Toggle main menu visibility
Loading...
Searching...
No Matches
VideoPlaybackThread.h
Go to the documentation of this file.
1
9
10
// Copyright (c) 2008-2019 OpenShot Studios, LLC
11
//
12
// SPDX-License-Identifier: LGPL-3.0-or-later
13
14
#ifndef OPENSHOT_VIDEO_PLAYBACK_THREAD_H
15
#define OPENSHOT_VIDEO_PLAYBACK_THREAD_H
16
17
#include <AppConfig.h>
18
#include <juce_audio_basics/juce_audio_basics.h>
19
#include <memory>
20
#include <mutex>
21
22
namespace
openshot
23
{
24
class
Frame
;
25
class
RendererBase
;
26
using
juce::Thread;
27
using
juce::WaitableEvent;
28
32
class
VideoPlaybackThread :
Thread
33
{
34
RendererBase
*renderer;
35
std::shared_ptr<Frame> frame;
36
std::mutex frame_mutex;
37
WaitableEvent render;
38
WaitableEvent rendered;
39
bool
reset;
40
42
VideoPlaybackThread(
RendererBase
*rb);
44
~VideoPlaybackThread();
45
47
int64_t getCurrentFramePosition();
48
void
SetFrame(std::shared_ptr<Frame> next_frame);
49
51
void
run();
52
54
friend
class
PlayerPrivate
;
55
friend
class
QtPlayer
;
56
};
57
58
}
59
60
#endif
// OPENSHOT_VIDEO_PLAYBACK_THREAD_H
openshot::Frame
This class represents a single frame of video (i.e. image & audio data).
Definition
Frame.h:90
openshot::RendererBase
This is the base class of all Renderers in libopenshot.
Definition
RendererBase.h:32
openshot::Thread
openshot::VideoPlaybackThread::QtPlayer
friend class QtPlayer
Definition
VideoPlaybackThread.h:55
openshot::VideoPlaybackThread::PlayerPrivate
friend class PlayerPrivate
Parent class of VideoPlaybackThread.
Definition
VideoPlaybackThread.h:54
openshot
This namespace is the default namespace for all code in the openshot library.
Definition
AnimatedCurve.h:24
Qt
VideoPlaybackThread.h
Generated by
1.17.0