MythTV  master
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MythEDID Class Reference

#include <mythedid.h>

Collaboration diagram for MythEDID:
Collaboration graph
[legend]

Classes

struct  Primaries
 

Public Member Functions

 MythEDID (void)=default
 
 MythEDID (QByteArray &Data)
 
 MythEDID (const char *Data, int Length)
 
bool Valid (void) const
 
QStringList SerialNumbers (void) const
 
QSize DisplaySize (void) const
 
double DisplayAspect (void) const
 
uint16_t PhysicalAddress (void) const
 
float Gamma (void) const
 
bool IsHDMI (void) const
 
bool IsSRGB (void) const
 
bool IsLikeSRGB (void) const
 
Primaries ColourPrimaries (void) const
 
int AudioLatency (bool Interlaced) const
 
int VideoLatency (bool Interlaced) const
 
void Debug (void) const
 

Private Member Functions

void Parse (void)
 
bool ParseBaseBlock (const quint8 *Data)
 
bool ParseCTA861 (const quint8 *Data, uint Offset)
 
bool ParseCTABlock (const quint8 *Data, uint Offset)
 
bool ParseVSDB (const quint8 *Data, uint Offset, uint Length)
 

Private Attributes

bool m_valid { false }
 
QByteArray m_data { }
 
uint m_size { 0 }
 
quint8 m_minorVersion { 0 }
 
QSize m_displaySize { }
 
double m_displayAspect { 0.0 }
 
QStringList m_serialNumbers { }
 
float m_gamma { 0.0F }
 
bool m_sRGB { false }
 
bool m_likeSRGB { false }
 
Primaries m_primaries { {{{0.0F, 0.0F}, {0.0F, 0.0F}, {0.0F, 0.0F}}}, {0.0F, 0.0F} }
 
bool m_isHDMI { false }
 
uint16_t m_physicalAddress { 0 }
 
bool m_latencies { false }
 
bool m_interLatencies { false }
 
std::array< int, 2 > m_audioLatency { 0 }
 
std::array< int, 2 > m_videoLatency { 0 }
 

Detailed Description

Definition at line 17 of file mythedid.h.

Constructor & Destructor Documentation

◆ MythEDID() [1/3]

MythEDID::MythEDID ( void  )
default

◆ MythEDID() [2/3]

MythEDID::MythEDID ( QByteArray &  Data)
explicit

Definition at line 20 of file mythedid.cpp.

◆ MythEDID() [3/3]

MythEDID::MythEDID ( const char *  Data,
int  Length 
)

Definition at line 26 of file mythedid.cpp.

Member Function Documentation

◆ Valid()

bool MythEDID::Valid ( void  ) const

◆ SerialNumbers()

QStringList MythEDID::SerialNumbers ( void  ) const

Definition at line 37 of file mythedid.cpp.

Referenced by MythDRMDevice::Initialise().

◆ DisplaySize()

QSize MythEDID::DisplaySize ( void  ) const

Definition at line 42 of file mythedid.cpp.

Referenced by MythDisplayRPI::UpdateCurrentMode().

◆ DisplayAspect()

double MythEDID::DisplayAspect ( void  ) const

Definition at line 47 of file mythedid.cpp.

◆ PhysicalAddress()

uint16_t MythEDID::PhysicalAddress ( void  ) const

Definition at line 52 of file mythedid.cpp.

Referenced by MythCECAdapter::Open().

◆ Gamma()

float MythEDID::Gamma ( void  ) const

Definition at line 57 of file mythedid.cpp.

◆ IsHDMI()

bool MythEDID::IsHDMI ( void  ) const

Definition at line 62 of file mythedid.cpp.

Referenced by MythDisplayRPI::SwitchToVideoMode().

◆ IsSRGB()

bool MythEDID::IsSRGB ( void  ) const

Definition at line 67 of file mythedid.cpp.

Referenced by MythDisplay::Initialise().

◆ IsLikeSRGB()

bool MythEDID::IsLikeSRGB ( void  ) const

Definition at line 72 of file mythedid.cpp.

◆ ColourPrimaries()

MythEDID::Primaries MythEDID::ColourPrimaries ( void  ) const

Definition at line 77 of file mythedid.cpp.

◆ AudioLatency()

int MythEDID::AudioLatency ( bool  Interlaced) const

Definition at line 82 of file mythedid.cpp.

◆ VideoLatency()

int MythEDID::VideoLatency ( bool  Interlaced) const

Definition at line 87 of file mythedid.cpp.

◆ Debug()

void MythEDID::Debug ( void  ) const

Definition at line 376 of file mythedid.cpp.

Referenced by MythDisplayRPI::UpdateCurrentMode().

◆ Parse()

void MythEDID::Parse ( void  )
private

Definition at line 113 of file mythedid.cpp.

Referenced by MythEDID().

◆ ParseBaseBlock()

bool MythEDID::ParseBaseBlock ( const quint8 *  Data)
private

Definition at line 169 of file mythedid.cpp.

Referenced by Parse().

◆ ParseCTA861()

bool MythEDID::ParseCTA861 ( const quint8 *  Data,
uint  Offset 
)
private

Definition at line 288 of file mythedid.cpp.

Referenced by Parse().

◆ ParseCTABlock()

bool MythEDID::ParseCTABlock ( const quint8 *  Data,
uint  Offset 
)
private

Definition at line 305 of file mythedid.cpp.

Referenced by ParseCTA861().

◆ ParseVSDB()

bool MythEDID::ParseVSDB ( const quint8 *  Data,
uint  Offset,
uint  Length 
)
private

Definition at line 322 of file mythedid.cpp.

Referenced by ParseCTABlock().

Member Data Documentation

◆ m_valid

bool MythEDID::m_valid { false }
private

Definition at line 53 of file mythedid.h.

Referenced by Debug(), Parse(), ParseBaseBlock(), and Valid().

◆ m_data

QByteArray MythEDID::m_data { }
private

Definition at line 54 of file mythedid.h.

Referenced by Parse().

◆ m_size

uint MythEDID::m_size { 0 }
private

Definition at line 55 of file mythedid.h.

Referenced by Debug(), Parse(), ParseCTA861(), and ParseVSDB().

◆ m_minorVersion

quint8 MythEDID::m_minorVersion { 0 }
private

Definition at line 56 of file mythedid.h.

Referenced by Debug(), and ParseBaseBlock().

◆ m_displaySize

QSize MythEDID::m_displaySize { }
private

Definition at line 57 of file mythedid.h.

Referenced by DisplaySize(), and ParseBaseBlock().

◆ m_displayAspect

double MythEDID::m_displayAspect { 0.0 }
private

Definition at line 58 of file mythedid.h.

Referenced by DisplayAspect(), and ParseBaseBlock().

◆ m_serialNumbers

QStringList MythEDID::m_serialNumbers { }
private

Definition at line 59 of file mythedid.h.

Referenced by ParseBaseBlock(), and SerialNumbers().

◆ m_gamma

float MythEDID::m_gamma { 0.0F }
private

Definition at line 60 of file mythedid.h.

Referenced by Debug(), Gamma(), and ParseBaseBlock().

◆ m_sRGB

bool MythEDID::m_sRGB { false }
private

Definition at line 61 of file mythedid.h.

Referenced by Debug(), IsSRGB(), and ParseBaseBlock().

◆ m_likeSRGB

bool MythEDID::m_likeSRGB { false }
private

Definition at line 62 of file mythedid.h.

Referenced by IsLikeSRGB(), and ParseBaseBlock().

◆ m_primaries

Primaries MythEDID::m_primaries { {{{0.0F, 0.0F}, {0.0F, 0.0F}, {0.0F, 0.0F}}}, {0.0F, 0.0F} }
private

Definition at line 63 of file mythedid.h.

Referenced by ColourPrimaries(), Debug(), and ParseBaseBlock().

◆ m_isHDMI

bool MythEDID::m_isHDMI { false }
private

Definition at line 64 of file mythedid.h.

Referenced by IsHDMI(), and ParseVSDB().

◆ m_physicalAddress

uint16_t MythEDID::m_physicalAddress { 0 }
private

Definition at line 65 of file mythedid.h.

Referenced by Debug(), ParseVSDB(), and PhysicalAddress().

◆ m_latencies

bool MythEDID::m_latencies { false }
private

Definition at line 66 of file mythedid.h.

Referenced by Debug(), and ParseVSDB().

◆ m_interLatencies

bool MythEDID::m_interLatencies { false }
private

Definition at line 67 of file mythedid.h.

Referenced by Debug(), and ParseVSDB().

◆ m_audioLatency

std::array<int,2> MythEDID::m_audioLatency { 0 }
private

Definition at line 68 of file mythedid.h.

Referenced by AudioLatency(), Debug(), and ParseVSDB().

◆ m_videoLatency

std::array<int,2> MythEDID::m_videoLatency { 0 }
private

Definition at line 69 of file mythedid.h.

Referenced by Debug(), ParseVSDB(), and VideoLatency().


The documentation for this class was generated from the following files: