Mir
hardware_buffer_stream.h
Go to the documentation of this file.
1/*
2 * Copyright © 2017 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License version 2 or 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 * Authored by: Kevin DuBois <kevin.dubois@canonical.com>
17 */
18
19#ifndef MIR_CLIENT_EXTENSIONS_HARDWARE_BUFFER_STREAM_H_
20#define MIR_CLIENT_EXTENSIONS_HARDWARE_BUFFER_STREAM_H_
21
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30//This extension should probably not be published.
31//Mesa's egl will use MirPresentationChain + MirBuffer, so there's no need
32//for a 'hardware' buffer stream publicly.
33//Internally, its useful in playground/ and the nested server until we switch upstream
34//driver stacks to the mir egl platform.
35
36#pragma GCC diagnostic push
37#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
38typedef MirBufferStream* (*MirExtensionGetHardwareBufferStream)(
40 int width, int height,
42#pragma GCC diagnostic pop
43
45{
48
49static inline MirExtensionHardwareBufferStreamV1 const* mir_extension_hardware_buffer_stream_v1(
50 MirConnection* connection)
51{
53 connection, "mir_extension_hardware_buffer_stream", 1);
54}
55
56#ifdef __cplusplus
57}
58#endif
59#endif /* MIR_CLIENT_EXTENSIONS_HARDWARE_BUFFER_STREAM_H_ */
int width
Definition: client_types.h:1
int height
Definition: client_types.h:2
MirPixelFormat the EGL implementation will now set correct pixel format
Definition: mir_connection.h:350
MirPixelFormat
32-bit pixel formats (8888): The order of components in the enum matches the order of the components ...
Definition: common.h:245
struct MirBufferStream MirBufferStream
Definition: client_types.h:49
struct MirRenderSurface MirRenderSurface
Definition: client_types.h:57
struct MirConnection MirConnection
Definition: client_types.h:41
struct MirExtensionHardwareBufferStreamV1 MirExtensionHardwareBufferStreamV1
MirBufferStream *(* MirExtensionGetHardwareBufferStream)(MirRenderSurface *rs, int width, int height, MirPixelFormat format)
Definition: hardware_buffer_stream.h:38
void const * mir_connection_request_extension(MirConnection *connection, char const *interface, int version)
Request a Mir extension.
Definition: hardware_buffer_stream.h:45
MirExtensionGetHardwareBufferStream get_hardware_buffer_stream
Definition: hardware_buffer_stream.h:46

Copyright © 2012-2022 Canonical Ltd.
Generated on Sun Oct 9 06:13:38 UTC 2022
This documentation is licensed under the GPL version 2 or 3.