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
qedidparser_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
2// Copyright (C) 2021 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4// Qt-Security score:significant reason:default
5
6#ifndef QEDIDPARSER_P_H
7#define QEDIDPARSER_P_H
8
9#include <QtCore/QMap>
10#include <QtCore/QPointF>
11#include <QtCore/QSize>
12
13//
14// W A R N I N G
15// -------------
16//
17// This file is not part of the Qt API. It exists purely as an
18// implementation detail. This header file may change from version to
19// version without notice, or even be removed.
20//
21// We mean it.
22//
23
24#include <QtGui/qtguiglobal.h>
25#include <QtCore/qlist.h>
26#include <QtCore/qpoint.h>
27#include <QtCore/qsize.h>
28#include <QtCore/qstring.h>
29#include <QtCore/private/qglobal_p.h>
30
32
34{
35public:
36 bool parse(const QByteArray &blob);
37
38 QString identifier;
39 QString manufacturer;
40 QString model;
41 QString serialNumber;
42 QSizeF physicalSize;
43 qreal gamma;
44 QPointF redChromaticity;
45 QPointF greenChromaticity;
46 QPointF blueChromaticity;
47 QPointF whiteChromaticity;
48 QList<QList<uint16_t>> tables;
49 bool sRgb;
50 bool useTables;
51
52private:
53 QString parseEdidString(const quint8 *data);
54};
55
56QT_END_NAMESPACE
57
58#endif // QEDIDPARSER_P_H
#define EDID_DESCRIPTOR_SERIAL_NUMBER
#define EDID_FEATURE_SUPPORT
#define EDID_CHROMATICITIES_BLOCK
#define EDID_TRANSFER_FUNCTION
static QString lookupVendorIdInSystemDatabase(QByteArrayView id)
#define EDID_OFFSET_SERIAL
#define EDID_DESCRIPTOR_ALPHANUMERIC_STRING
#define EDID_OFFSET_PNP_ID
#define EDID_OFFSET_PHYSICAL_HEIGHT
#define EDID_DESCRIPTOR_PRODUCT_NAME
#define EDID_PHYSICAL_WIDTH
#define EDID_DATA_BLOCK_COUNT
#define EDID_OFFSET_DATA_BLOCKS