10#define LOC QString("HDRTracker: ")
29 if (!hdr->m_supportedTypes)
31 LOG(VB_PLAYBACK, LOG_INFO,
LOC +
"No HDR support detected for this display");
36 if (!hdr->IsControllable())
38 LOG(VB_PLAYBACK, LOG_INFO,
LOC +
"HDR signalling support not available");
46 : m_hdr(
std::move(HDR))
48 LOG(VB_GENERAL, LOG_INFO,
LOC + QString(
"Tracking HDR signalling for: %1")
49 .arg(
m_hdr->TypesToString().join(
",")));
79 eotf &
m_hdr->m_supportedTypes)
96 std::make_shared<MythHDRVideoMetadata>(*(
Frame->m_hdrMetadata.get())) :
97 std::make_shared<MythHDRVideoMetadata>();
static MythHDR::HDRType FFmpegTransferToHDRType(int Transfer)
MythHDRVideoPtr m_metadata
MythHDRTracker(MythHDRPtr HDR)
void Update(class MythVideoFrame *Frame)
Track changes to the HDR type (EOTF) and request a change when needed.
static HDRTracker Create(class MythDisplay *MDisplay)
Create a tracker instance that looks for changes in the required EOTF.
std::shared_ptr< class MythHDR > MythHDRPtr
std::shared_ptr< class MythHDRTracker > HDRTracker
#define LOG(_MASK_, _LEVEL_, _QSTRING_)