Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qedidparser.cpp File Reference

(b4814163c78e396834ad54963073cf03449073db)

#include <QtCore/QFile>
#include <QtCore/QByteArrayView>
#include "qedidparser_p.h"
#include "qedidvendortable_p.h"
+ Include dependency graph for qedidparser.cpp:

Go to the source code of this file.

Macros

#define EDID_DESCRIPTOR_ALPHANUMERIC_STRING   0xfe
 
#define EDID_DESCRIPTOR_PRODUCT_NAME   0xfc
 
#define EDID_DESCRIPTOR_SERIAL_NUMBER   0xff
 
#define EDID_DATA_BLOCK_COUNT   4
 
#define EDID_OFFSET_DATA_BLOCKS   0x36
 
#define EDID_OFFSET_LAST_BLOCK   0x6c
 
#define EDID_OFFSET_PNP_ID   0x08
 
#define EDID_OFFSET_SERIAL   0x0c
 
#define EDID_PHYSICAL_WIDTH   0x15
 
#define EDID_OFFSET_PHYSICAL_HEIGHT   0x16
 
#define EDID_TRANSFER_FUNCTION   0x17
 
#define EDID_FEATURE_SUPPORT   0x18
 
#define EDID_CHROMATICITIES_BLOCK   0x19
 

Functions

static QString lookupVendorIdInSystemDatabase (QByteArrayView id)
 

Macro Definition Documentation

◆ EDID_CHROMATICITIES_BLOCK

#define EDID_CHROMATICITIES_BLOCK   0x19

Definition at line 24 of file qedidparser.cpp.

Referenced by QEdidParser::parse().

◆ EDID_DATA_BLOCK_COUNT

#define EDID_DATA_BLOCK_COUNT   4

Definition at line 15 of file qedidparser.cpp.

Referenced by QEdidParser::parse().

◆ EDID_DESCRIPTOR_ALPHANUMERIC_STRING

#define EDID_DESCRIPTOR_ALPHANUMERIC_STRING   0xfe

Definition at line 11 of file qedidparser.cpp.

Referenced by QEdidParser::parse().

◆ EDID_DESCRIPTOR_PRODUCT_NAME

#define EDID_DESCRIPTOR_PRODUCT_NAME   0xfc

Definition at line 12 of file qedidparser.cpp.

Referenced by QEdidParser::parse().

◆ EDID_DESCRIPTOR_SERIAL_NUMBER

#define EDID_DESCRIPTOR_SERIAL_NUMBER   0xff

Definition at line 13 of file qedidparser.cpp.

Referenced by QEdidParser::parse().

◆ EDID_FEATURE_SUPPORT

#define EDID_FEATURE_SUPPORT   0x18

Definition at line 23 of file qedidparser.cpp.

Referenced by QEdidParser::parse().

◆ EDID_OFFSET_DATA_BLOCKS

#define EDID_OFFSET_DATA_BLOCKS   0x36

Definition at line 16 of file qedidparser.cpp.

Referenced by QEdidParser::parse().

◆ EDID_OFFSET_LAST_BLOCK

#define EDID_OFFSET_LAST_BLOCK   0x6c

Definition at line 17 of file qedidparser.cpp.

◆ EDID_OFFSET_PHYSICAL_HEIGHT

#define EDID_OFFSET_PHYSICAL_HEIGHT   0x16

Definition at line 21 of file qedidparser.cpp.

Referenced by QEdidParser::parse().

◆ EDID_OFFSET_PNP_ID

#define EDID_OFFSET_PNP_ID   0x08

Definition at line 18 of file qedidparser.cpp.

Referenced by QEdidParser::parse().

◆ EDID_OFFSET_SERIAL

#define EDID_OFFSET_SERIAL   0x0c

Definition at line 19 of file qedidparser.cpp.

Referenced by QEdidParser::parse().

◆ EDID_PHYSICAL_WIDTH

#define EDID_PHYSICAL_WIDTH   0x15

Definition at line 20 of file qedidparser.cpp.

Referenced by QEdidParser::parse().

◆ EDID_TRANSFER_FUNCTION

#define EDID_TRANSFER_FUNCTION   0x17

Definition at line 22 of file qedidparser.cpp.

Referenced by QEdidParser::parse().

Function Documentation

◆ lookupVendorIdInSystemDatabase()

static QString lookupVendorIdInSystemDatabase ( QByteArrayView id)
static

Definition at line 30 of file qedidparser.cpp.

References QFileDevice::atEnd(), file, fileName, QString::first(), QString::fromUtf8(), QString::indexOf(), QString::isEmpty(), line, QFile::open(), read(), QIODevice::readLine(), QIODeviceBase::ReadOnly, QString::size(), QString::sliced(), and QString::startsWith().

Referenced by QEdidParser::parse().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: