MythTV  master
Classes | Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
eld Class Reference

#include <eldutils.h>

Collaboration diagram for eld:
Collaboration graph
[legend]

Classes

struct  cea_sad
 
struct  eld_data
 

Public Types

enum  cea_audio_coding_types {
  TYPE_REF_STREAM_HEADER = 0, TYPE_LPCM = 1, TYPE_AC3 = 2, TYPE_MPEG1 = 3,
  TYPE_MP3 = 4, TYPE_MPEG2 = 5, TYPE_AACLC = 6, TYPE_DTS = 7,
  TYPE_ATRAC = 8, TYPE_SACD = 9, TYPE_EAC3 = 10, TYPE_DTS_HD = 11,
  TYPE_MLP = 12, TYPE_DST = 13, TYPE_WMAPRO = 14, TYPE_REF_CXT = 15,
  TYPE_HE_AAC = 15, TYPE_HE_AAC2 = 16, TYPE_MPEG_SURROUND = 17
}
 

Public Member Functions

 eld (const char *buf, int size)
 
 eld (const eld &)
 
 eld ()
 
 ~eld ()=default
 
eldoperator= (const eld &)
 
void show ()
 
QString eld_version_name () const
 
QString edid_version_name () const
 
QString info_desc () const
 
QString channel_allocation_desc () const
 
QString product_name () const
 
QString connection_name () const
 
bool isValid () const
 
int maxLPCMChannels ()
 
int maxChannels ()
 
QString codecs_desc () const
 

Private Member Functions

int update_eld (const char *buf, int size)
 
void update_sad (int index, const char *buf)
 
QString sad_desc (int index)
 

Static Private Member Functions

static QString print_pcm_rates (int pcm)
 SNDRV_PCM_RATE_* and AC_PAR_PCM values don't match, print correct rates with hdmi-specific routine. More...
 
static QString print_pcm_bits (int pcm)
 Print the supported PCM fmt bits to the string buffer. More...
 

Private Attributes

eld_data m_e
 

Detailed Description

Definition at line 37 of file eldutils.h.

Member Enumeration Documentation

◆ cea_audio_coding_types

Enumerator
TYPE_REF_STREAM_HEADER 
TYPE_LPCM 
TYPE_AC3 
TYPE_MPEG1 
TYPE_MP3 
TYPE_MPEG2 
TYPE_AACLC 
TYPE_DTS 
TYPE_ATRAC 
TYPE_SACD 
TYPE_EAC3 
TYPE_DTS_HD 
TYPE_MLP 
TYPE_DST 
TYPE_WMAPRO 
TYPE_REF_CXT 
TYPE_HE_AAC 
TYPE_HE_AAC2 
TYPE_MPEG_SURROUND 

Definition at line 57 of file eldutils.h.

Constructor & Destructor Documentation

◆ eld() [1/3]

eld::eld ( const char *  buf,
int  size 
)

Definition at line 153 of file eldutils.cpp.

◆ eld() [2/3]

eld::eld ( const eld rhs)

Definition at line 159 of file eldutils.cpp.

◆ eld() [3/3]

eld::eld ( )

Definition at line 164 of file eldutils.cpp.

◆ ~eld()

eld::~eld ( )
default

Member Function Documentation

◆ operator=()

eld & eld::operator= ( const eld rhs)

Definition at line 170 of file eldutils.cpp.

◆ show()

void eld::show ( )

Definition at line 428 of file eldutils.cpp.

Referenced by AudioOutputSettings::setELD().

◆ eld_version_name()

QString eld::eld_version_name ( ) const

Definition at line 388 of file eldutils.cpp.

◆ edid_version_name()

QString eld::edid_version_name ( ) const

Definition at line 398 of file eldutils.cpp.

◆ info_desc()

QString eld::info_desc ( ) const

Definition at line 410 of file eldutils.cpp.

◆ channel_allocation_desc()

QString eld::channel_allocation_desc ( ) const

Definition at line 374 of file eldutils.cpp.

Referenced by show().

◆ product_name()

QString eld::product_name ( ) const

Definition at line 452 of file eldutils.cpp.

Referenced by AudioOutput::GetAudioDeviceConfig(), and show().

◆ connection_name()

QString eld::connection_name ( ) const

Definition at line 457 of file eldutils.cpp.

Referenced by AudioOutput::GetAudioDeviceConfig(), and show().

◆ isValid()

bool eld::isValid ( ) const

◆ maxLPCMChannels()

int eld::maxLPCMChannels ( )

Definition at line 462 of file eldutils.cpp.

Referenced by AudioOutputSettings::BestSupportedPCMChannelsELD(), and show().

◆ maxChannels()

int eld::maxChannels ( )

Definition at line 477 of file eldutils.cpp.

Referenced by AudioOutputSettings::BestSupportedChannelsELD(), and show().

◆ codecs_desc()

QString eld::codecs_desc ( ) const

Definition at line 489 of file eldutils.cpp.

Referenced by AudioOutput::GetAudioDeviceConfig(), and show().

◆ update_eld()

int eld::update_eld ( const char *  buf,
int  size 
)
private

Definition at line 246 of file eldutils.cpp.

Referenced by eld().

◆ update_sad()

void eld::update_sad ( int  index,
const char *  buf 
)
private

Definition at line 178 of file eldutils.cpp.

Referenced by update_eld().

◆ sad_desc()

QString eld::sad_desc ( int  index)
private

Definition at line 352 of file eldutils.cpp.

Referenced by show().

◆ print_pcm_rates()

QString eld::print_pcm_rates ( int  pcm)
staticprivate

SNDRV_PCM_RATE_* and AC_PAR_PCM values don't match, print correct rates with hdmi-specific routine.

Definition at line 316 of file eldutils.cpp.

Referenced by sad_desc().

◆ print_pcm_bits()

QString eld::print_pcm_bits ( int  pcm)
staticprivate

Print the supported PCM fmt bits to the string buffer.

Parameters
pcmPCM caps bits

Definition at line 337 of file eldutils.cpp.

Referenced by sad_desc().

Member Data Documentation

◆ m_e

eld_data eld::m_e
private

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