MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MythHDR Class Reference

#include <mythhdr.h>

Inheritance diagram for MythHDR:
Inheritance graph
[legend]

Public Types

enum  HDRType { SDR = 0x00, HDR10 = 0x01, HLG = 0x02 }
 
using MythHDRDesc = std::tuple< HDRTypes, double, double, double >
 

Public Member Functions

virtual ~MythHDR ()=default
 
virtual void SetHDRMetadata (HDRType, const MythHDRMetaPtr &)
 
QStringList TypesToString () const
 
bool IsControllable () const
 
double GetMaxLuminance () const
 

Static Public Member Functions

static MythHDRPtr Create (class MythDisplay *MDisplay, const MythHDRDesc &Desc)
 
static QString TypeToString (HDRType Type)
 
static QStringList TypesToString (HDRTypes Types)
 

Public Attributes

HDRType m_currentType { SDR }
 
HDRTypes m_supportedTypes { SDR }
 

Protected Member Functions

 MythHDR (const MythHDRDesc &Desc)
 

Protected Attributes

bool m_controllable { false }
 
double m_minLuminance { 0.0 }
 
double m_maxAvgLuminance { 0.0 }
 
double m_maxLuminance { 0.0 }
 

Detailed Description

Definition at line 31 of file mythhdr.h.

Member Typedef Documentation

◆ MythHDRDesc

using MythHDR::MythHDRDesc = std::tuple<HDRTypes,double,double,double>

Definition at line 45 of file mythhdr.h.

Member Enumeration Documentation

◆ HDRType

Enumerator
SDR 
HDR10 
HLG 

Definition at line 36 of file mythhdr.h.

Constructor & Destructor Documentation

◆ ~MythHDR()

virtual MythHDR::~MythHDR ( )
virtualdefault

◆ MythHDR()

MythHDR::MythHDR ( const MythHDRDesc Desc)
explicitprotected

Definition at line 47 of file mythhdr.cpp.

Referenced by Create().

Member Function Documentation

◆ Create()

MythHDRPtr MythHDR::Create ( class MythDisplay MDisplay,
const MythHDRDesc Desc 
)
static

Definition at line 29 of file mythhdr.cpp.

Referenced by MythDisplay::InitHDR().

◆ SetHDRMetadata()

virtual void MythHDR::SetHDRMetadata ( HDRType  ,
const MythHDRMetaPtr  
)
inlinevirtual

Reimplemented in MythDRMHDR.

Definition at line 48 of file mythhdr.h.

◆ TypeToString()

QString MythHDR::TypeToString ( HDRType  Type)
static

Definition at line 65 of file mythhdr.cpp.

Referenced by TypesToString().

◆ TypesToString() [1/2]

QStringList MythHDR::TypesToString ( HDRTypes  Types)
static

Definition at line 72 of file mythhdr.cpp.

◆ TypesToString() [2/2]

QStringList MythHDR::TypesToString ( ) const

Definition at line 81 of file mythhdr.cpp.

Referenced by MythEDID::Debug().

◆ IsControllable()

bool MythHDR::IsControllable ( ) const

Definition at line 55 of file mythhdr.cpp.

◆ GetMaxLuminance()

double MythHDR::GetMaxLuminance ( ) const

Definition at line 60 of file mythhdr.cpp.

Member Data Documentation

◆ m_currentType

HDRType MythHDR::m_currentType { SDR }

Definition at line 56 of file mythhdr.h.

Referenced by MythDRMHDR::SetHDRMetadata().

◆ m_supportedTypes

HDRTypes MythHDR::m_supportedTypes { SDR }

Definition at line 57 of file mythhdr.h.

Referenced by TypesToString().

◆ m_controllable

bool MythHDR::m_controllable { false }
protected

Definition at line 62 of file mythhdr.h.

Referenced by IsControllable(), and MythDRMHDR::MythDRMHDR().

◆ m_minLuminance

double MythHDR::m_minLuminance { 0.0 }
protected

Definition at line 63 of file mythhdr.h.

◆ m_maxAvgLuminance

double MythHDR::m_maxAvgLuminance { 0.0 }
protected

Definition at line 64 of file mythhdr.h.

◆ m_maxLuminance

double MythHDR::m_maxLuminance { 0.0 }
protected

Definition at line 65 of file mythhdr.h.

Referenced by GetMaxLuminance().


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