Music Hub
..
A session-wide music playback service
Loading...
Searching...
No Matches
video_sink.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2021-2022 UBports Foundation.
3
*
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License version 3,
6
* as published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
12
*
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
17
#ifndef LOMIRI_MEDIAHUB_VIDEO_SINK_H
18
#define LOMIRI_MEDIAHUB_VIDEO_SINK_H
19
20
#include "
global.h
"
21
22
#include <QMatrix4x4>
23
#include <QObject>
24
#include <QScopedPointer>
25
26
namespace
lomiri
{
27
namespace
MediaHub
{
28
29
class
VideoSinkPrivate
;
30
34
class
MH_EXPORT
VideoSink
:
public
QObject
35
{
36
Q_OBJECT
37
Q_DISABLE_COPY(
VideoSink
)
38
39
public
:
40
virtual
~VideoSink
();
41
45
const
QMatrix4x4 &
transformationMatrix
()
const
;
46
53
virtual
bool
swapBuffers
() = 0;
54
59
Q_SIGNALS:
60
void
frameAvailable
();
61
62
protected
:
63
VideoSink
(
VideoSinkPrivate
*d,
QObject
*parent =
nullptr
);
64
65
Q_DECLARE_PRIVATE(
VideoSink
)
66
QScopedPointer<
VideoSinkPrivate
>
d_ptr
;
67
};
68
69
}
// namespace MediaHub
70
}
// namespace lomiri
71
72
#endif
// LOMIRI_MEDIAHUB_VIDEO_SINK_H
QObject
lomiri::MediaHub::VideoSinkPrivate
Definition
video_sink_p.h:50
lomiri::MediaHub::VideoSink::d_ptr
QScopedPointer< VideoSinkPrivate > d_ptr
Definition
video_sink.h:66
lomiri::MediaHub::VideoSink::swapBuffers
virtual bool swapBuffers()=0
Releases the current buffer, and consumes the next buffer in the queue, making it available for consu...
lomiri::MediaHub::VideoSink::~VideoSink
virtual ~VideoSink()
lomiri::MediaHub::VideoSink::transformationMatrix
const QMatrix4x4 & transformationMatrix() const
Queries the 4x4 transformation matrix for the current frame.
Definition
video_sink.cpp:47
lomiri::MediaHub::VideoSink::VideoSink
VideoSink(VideoSinkPrivate *d, QObject *parent=nullptr)
Definition
video_sink.cpp:39
lomiri::MediaHub::VideoSink::frameAvailable
void frameAvailable()
The signal is emitted whenever a new frame is available and a subsequent call to swapBuffers() will n...
global.h
MH_EXPORT
#define MH_EXPORT
Definition
global.h:27
lomiri::MediaHub
Definition
dbus_utils.h:25
lomiri
Definition
dbus_utils.h:24
src
lib
MediaHub
video_sink.h
Generated on
for Music Hub by
1.15.0