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
5#ifndef QEDIDPARSER_P_H
6#define QEDIDPARSER_P_H
7
8#include <QtCore/QMap>
9#include <QtCore/QPointF>
10#include <QtCore/QSize>
11
12//
13// W A R N I N G
14// -------------
15//
16// This file is not part of the Qt API. It exists purely as an
17// implementation detail. This header file may change from version to
18// version without notice, or even be removed.
19//
20// We mean it.
21//
22
23#include <QtGui/qtguiglobal.h>
24#include <QtCore/qlist.h>
25#include <QtCore/qpoint.h>
26#include <QtCore/qsize.h>
27#include <QtCore/qstring.h>
28#include <QtCore/private/qglobal_p.h>
29
30QT_BEGIN_NAMESPACE
31
32class Q_GUI_EXPORT QEdidParser
33{
34public:
35 bool parse(const QByteArray &blob);
36
37 QString identifier;
38 QString manufacturer;
39 QString model;
40 QString serialNumber;
41 QSizeF physicalSize;
42 qreal gamma;
43 QPointF redChromaticity;
44 QPointF greenChromaticity;
45 QPointF blueChromaticity;
46 QPointF whiteChromaticity;
47 QList<QList<uint16_t>> tables;
48 bool sRgb;
49 bool useTables;
50
51private:
52 QString parseEdidString(const quint8 *data);
53};
54
55QT_END_NAMESPACE
56
57#endif // QEDIDPARSER_P_H
58

source code of qtbase/src/gui/util/qedidparser_p.h