Music Hub  ..
A session-wide music playback service
socket_types.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2017 Canonical Ltd.
3  * Copyright © 2022 UBports Foundation.
4  *
5  * Contact: Alberto Mardegan <mardy@users.sourceforge.net>
6  *
7  * This program is free software: you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License version 3,
9  * as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * Authored by: Alfonso Sanchez-Beato <alfonso.sanchez-beato@canonical.com>
20  */
21 #ifndef LOMIRI_MEDIAHUBSERVICE_VIDEO_SOCKET_TYPES_H
22 #define LOMIRI_MEDIAHUBSERVICE_VIDEO_SOCKET_TYPES_H
23 
24 namespace lomiri
25 {
26 namespace MediaHubService
27 {
28 namespace video
29 {
30 
32 {
33  int width;
34  int height;
35  int fourcc;
36  int stride;
37  int offset;
38 };
39 
40 struct BufferData
41 {
42  int fd;
44 };
45 
46 }
47 }
48 }
49 
50 #endif // LOMIRI_MEDIAHUBSERVICE_VIDEO_SOCKET_TYPES_H
lomiri::MediaHubService::video::BufferMetadata::fourcc
int fourcc
Definition: socket_types.h:35
lomiri::MediaHubService::video::BufferMetadata::offset
int offset
Definition: socket_types.h:37
lomiri::MediaHubService::video::BufferData
Definition: socket_types.h:40
lomiri::MediaHubService::video::BufferData::fd
int fd
Definition: socket_types.h:42
lomiri::MediaHubService::video::BufferMetadata::width
int width
Definition: socket_types.h:33
lomiri::MediaHubService::video::BufferMetadata
Definition: socket_types.h:31
lomiri::MediaHubService::video::BufferMetadata::stride
int stride
Definition: socket_types.h:36
lomiri
Definition: dbus_utils.h:24
lomiri::MediaHubService::video
Definition: socket_types.h:28
lomiri::MediaHubService::video::BufferData::meta
BufferMetadata meta
Definition: socket_types.h:43
lomiri::MediaHubService::video::BufferMetadata::height
int height
Definition: socket_types.h:34