Music Hub  ..
A session-wide music playback service
video_sink_p.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2021-2022 UBports Foundation.
3  *
4  * Contact: Alberto Mardegan <mardy@users.sourceforge.net>
5  *
6  * This program is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License version 3,
8  * as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef LOMIRI_MEDIAHUB_VIDEO_SINK_P_H
20 #define LOMIRI_MEDIAHUB_VIDEO_SINK_P_H
21 
22 #include "video_sink.h"
23 
24 #include "dbus_constants.h"
25 #include "player.h"
26 
27 #include <functional>
28 
29 namespace lomiri {
30 namespace MediaHub {
31 
32 struct AVBackend
33 {
34  enum Backend
35  {
39  };
40 };
41 
42 typedef std::function<VideoSink *(uint32_t textureId, QObject *parent)>
44 typedef uint32_t PlayerKey;
45 
47  AVBackend::Backend backend);
48 
50 {
51 public:
52  virtual ~VideoSinkPrivate() = default;
53 
55 };
56 
57 } // namespace MediaHub
58 } // namespace lomiri
59 
60 #endif // LOMIRI_MEDIAHUB_VIDEO_SINK_P_H
lomiri::MediaHub::AVBackend
Definition: video_sink_p.h:32
QObject
lomiri::MediaHub::AVBackend::None
@ None
Definition: video_sink_p.h:36
video_sink.h
player.h
dbus_constants.h
lomiri::MediaHub::VideoSinkFactory
std::function< VideoSink *(uint32_t textureId, QObject *parent)> VideoSinkFactory
Definition: video_sink_p.h:43
lomiri::MediaHub::createVideoSinkFactory
VideoSinkFactory createVideoSinkFactory(PlayerKey key, AVBackend::Backend backend)
Definition: video_sink.cpp:53
DBusConstants::None
@ None
Definition: dbus_constants.h:71
lomiri::MediaHub::VideoSinkPrivate::~VideoSinkPrivate
virtual ~VideoSinkPrivate()=default
lomiri::MediaHub::VideoSinkPrivate::m_transformationMatrix
QMatrix4x4 m_transformationMatrix
Definition: video_sink_p.h:54
lomiri::MediaHub::AVBackend::Hybris
@ Hybris
Definition: video_sink_p.h:37
DBusConstants::Hybris
@ Hybris
Definition: dbus_constants.h:72
lomiri::MediaHub::AVBackend::Backend
Backend
Definition: video_sink_p.h:34
lomiri::MediaHub::PlayerKey
uint32_t PlayerKey
Definition: video_sink_p.h:44
DBusConstants::Mir
@ Mir
Definition: dbus_constants.h:73
lomiri::MediaHub::AVBackend::Mir
@ Mir
Definition: video_sink_p.h:38
lomiri
Definition: dbus_utils.h:24
lomiri::MediaHub::VideoSinkPrivate
Definition: video_sink_p.h:49