Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qeglfsopenwfdintegration.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QEGLFSOPENWFDINTEGRATION_H
5#define QEGLFSOPENWFDINTEGRATION_H
6
7#include "private/qeglfsdeviceintegration_p.h"
8#define WFD_WFDEXT_PROTOTYPES
9#include "wfd.h"
10#include "wfdext2.h"
11
12QT_BEGIN_NAMESPACE
13
14class QEglFSOpenWFDIntegration : public QEglFSDeviceIntegration
15{
16public:
17 void platformInit() override;
18 void platformDestroy() override;
19 QSize screenSize() const override;
20 EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) override;
21 void destroyNativeWindow(EGLNativeWindowType window) override;
22 EGLNativeDisplayType platformDisplay() const override;
23 virtual QSurfaceFormat surfaceFormatFor(const QSurfaceFormat &inputFormat) const;
24
25private:
26 QSize mScreenSize;
27 EGLNativeDisplayType mNativeDisplay;
28 WFDDevice mDevice;
29 WFDPort mPort;
30 WFDPipeline mPipeline;
31};
32
34
35#endif
#define MAX_NUM_OF_WFD_DEVICES
#define MAX_NUM_OF_WFD_PORT_MODES
#define MAX_NUM_OF_WFD_PORTS
#define MAX_NUM_OF_WFD_PIPELINES
#define MAX_NUM_OF_WFD_BUFFERS
WFD_EGLImageType * image
wfd_buffer_t buffers[MAX_NUM_OF_WFD_BUFFERS]