8#include <private/qeglfsintegration_p.h>
10#include <QtCore/QLoggingCategory>
12#include <QtGui/private/qguiapplication_p.h>
13#include <QtFbSupport/private/qfbvthandler_p.h>
40 , m_cursorOutOfRange(
false)
41 , m_powerState(PowerStateOn)
43 , m_headless(headless)
50 qCDebug(qLcEglfsKmsDebug,
"EDID data for output \"%s\": identifier '%s', manufacturer '%s', model '%s', serial '%s', physical size: %.2fx%.2f",
51 name().toLatin1().constData(),
58 qCDebug(qLcEglfsKmsDebug) <<
"Failed to parse EDID data for output" <<
name();
60 qCDebug(qLcEglfsKmsDebug) <<
"No EDID data for output" <<
name();
96 case DRM_FORMAT_ARGB8888:
100 case DRM_FORMAT_BGR565:
102 case DRM_FORMAT_XRGB2101010:
104 case DRM_FORMAT_XBGR2101010:
106 case DRM_FORMAT_ARGB2101010:
108 case DRM_FORMAT_ABGR2101010:
121 return QSizeF(0.254 *
s.width(), 0.254 *
s.height());
132 return QDpi(100, 100);
180 return refresh > 0 ? refresh : 60;
IOBluetoothDevice * device
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
bool parse(const QByteArray &blob)
QEglFSKmsInterruptHandler(QEglFSKmsScreen *screen)
QString model() const override
Reimplement this function in subclass to return the model of this screen.
QString name() const override
QString serialNumber() const override
Reimplement this function in subclass to return the serial number of this screen.
void setVirtualPosition(const QPoint &pos)
QEglFSKmsInterruptHandler * m_interruptHandler
QPlatformScreen::PowerState powerState() const override
Returns the current power state.
QString manufacturer() const override
Reimplement this function in subclass to return the manufacturer of this screen.
int preferredMode() const override
Reimplement this function in subclass to return the preferred mode index from the modes list.
QList< QPlatformScreen * > m_siblings
int currentMode() const override
Reimplement this function in subclass to return the index of the current mode from the modes list.
int depth() const override
Reimplement in subclass to return current depth of the screen.
void setPowerState(QPlatformScreen::PowerState state) override
Sets the power state for this screen.
QList< QPlatformScreen::Mode > modes() const override
Reimplement this function in subclass to return the list of modes for this screen.
QDpi logicalDpi() const override
Reimplement this function in subclass to return the logical horizontal and vertical dots per inch met...
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
QEglFSKmsDevice * m_device
Qt::ScreenOrientation nativeOrientation() const override
Reimplement this function in subclass to return the native orientation of the screen,...
qreal refreshRate() const override
Reimplement this function in subclass to return the vertical refresh rate of the screen,...
QDpi logicalBaseDpi() const override
Reimplement to return the base logical DPI for the platform.
SubpixelAntialiasingType subpixelAntialiasingTypeHint() const override
Returns a hint about this screen's subpixel layout structure.
QSizeF physicalSize() const override
Reimplement this function in subclass to return the physical size of the screen, in millimeters.
virtual void waitForFlip()
Qt::ScreenOrientation orientation() const override
Reimplement this function in subclass to return the current orientation of the screen,...
virtual void pageFlipped(unsigned int sequence, unsigned int tv_sec, unsigned int tv_usec)
QRect rawGeometry() const override
QEglFSKmsScreen(QEglFSKmsDevice *device, const QKmsOutput &output, bool headless=false)
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
static QPlatformIntegration * platformIntegration()
Format
The following image formats are available in Qt.
@ Format_A2BGR30_Premultiplied
@ Format_A2RGB30_Premultiplied
QKmsScreenConfig * screenConfig() const
QSize headlessSize() const
qsizetype size() const noexcept
void reserve(qsizetype size)
void append(parameter_type t)
\inmodule QtCore\reentrant
constexpr int x() const noexcept
Returns the x coordinate of this point.
constexpr int y() const noexcept
Returns the y coordinate of this point.
\inmodule QtCore\reentrant
constexpr QSize size() const noexcept
Returns the size of the rectangle.
constexpr qreal width() const noexcept
Returns the width.
constexpr bool isEmpty() const noexcept
Returns true if either of the width and height is less than or equal to 0; otherwise returns false.
constexpr qreal height() const noexcept
Returns the height.
constexpr int height() const noexcept
Returns the height.
constexpr int width() const noexcept
Returns the width.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QByteArray toLatin1() const &
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
struct wl_display * display
Combined button and popup list for selecting options.
#define DRM_FORMAT_RGB565
#define DRM_FORMAT_ABGR8888
QPair< qreal, qreal > QDpi
#define qCDebug(category,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
#define QStringLiteral(str)
QT_BEGIN_NAMESPACE typedef uchar * output
QFileInfo info(fileName)
[8]
connect(quitButton, &QPushButton::clicked, &app, &QCoreApplication::quit, Qt::QueuedConnection)
void restoreMode(QKmsDevice *device)
void setPowerState(QKmsDevice *device, QPlatformScreen::PowerState state)
QList< drmModeModeInfo > modes
drmModePropertyBlobPtr edid_blob
QPlatformScreen::SubpixelAntialiasingType subpixelAntialiasingTypeHint() const
void cleanup(QKmsDevice *device)