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
qeglfskmshelpers_p.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// Qt-Security score:significant reason:default
4
5#ifndef QEGLFSKMSHELPERS_H
6#define QEGLFSKMSHELPERS_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QString>
20
22
23inline QString q_fourccToString(uint code)
24{
25 QString s;
26 s.reserve(4);
27 s.append(code & 0xff);
28 s.append((code >> 8) & 0xff);
29 s.append((code >> 16) & 0xff);
30 s.append((code >> 24) & 0xff);
31 return s;
32}
33
34QT_END_NAMESPACE
35
36#endif // QEGLFSKMSHELPERS_H
gbm_device * gbmDevice() const
bool removeLayer(int id) override
void setLayerPosition(int id, const QPoint &position) override
gbm_surface * createSurface()
void setLayerBuffer(int id, int dmabufFd) override
void addBlendListener(void(*callback)()) override
int addLayer(int dmabufFd, const QSize &size, const QPoint &position, uint drmPixelFormat, uint bytesPerLine) override
void setLayerAlpha(int id, qreal alpha) override
QEglFSKmsVsp2Screen(QEglFSKmsDevice *device, const QKmsOutput &output)
Combined button and popup list for selecting options.
QT_BEGIN_NAMESPACE QString q_fourccToString(uint code)
static QT_BEGIN_NAMESPACE uint32_t drmFormatToGbmFormat(uint32_t drmFormat)
static uint32_t gbmFormatToDrmFormat(uint32_t gbmFormat)
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)