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

#include <libmythtv/mythhdrtracker.h>

Collaboration diagram for MythHDRTracker:
[legend]

Public Member Functions

 ~MythHDRTracker ()
 
void Update (class MythVideoFrame *Frame)
 Track changes to the HDR type (EOTF) and request a change when needed. More...
 

Static Public Member Functions

static HDRTracker Create (class MythDisplay *MDisplay)
 Create a tracker instance that looks for changes in the required EOTF. More...
 

Protected Member Functions

 MythHDRTracker (MythHDRPtr HDR)
 
void Reset ()
 

Protected Attributes

MythHDRVideoPtr m_metadata { nullptr }
 
MythHDRPtr m_hdr { nullptr }
 

Detailed Description

Definition at line 12 of file mythhdrtracker.h.

Constructor & Destructor Documentation

◆ ~MythHDRTracker()

MythHDRTracker::~MythHDRTracker ( )

Definition at line 52 of file mythhdrtracker.cpp.

◆ MythHDRTracker()

MythHDRTracker::MythHDRTracker ( MythHDRPtr  HDR)
explicitprotected

Definition at line 45 of file mythhdrtracker.cpp.

Referenced by Create().

Member Function Documentation

◆ Create()

HDRTracker MythHDRTracker::Create ( class MythDisplay MDisplay)
static

Create a tracker instance that looks for changes in the required EOTF.

An instance is only created if the display supports at least one HDR format and the instance is capable of signalling the HDR metadata to the display (which is currently limited to DRM on linux - with no X11 or Wayland).

Definition at line 18 of file mythhdrtracker.cpp.

Referenced by MythVideoOutputGPU::MythVideoOutputGPU().

◆ Update()

void MythHDRTracker::Update ( class MythVideoFrame Frame)

Track changes to the HDR type (EOTF) and request a change when needed.

Note
Signalling is only requested when a change is seen; this is all static metadata currently (i.e. no HDR10+ support - which is frame by frame). But there may be an advantage to signalling every frame or at least every X frames as I'm not sure this is 100% reliable.

Definition at line 72 of file mythhdrtracker.cpp.

◆ Reset()

void MythHDRTracker::Reset ( )
protected

Definition at line 57 of file mythhdrtracker.cpp.

Referenced by Update(), and ~MythHDRTracker().

Member Data Documentation

◆ m_metadata

MythHDRVideoPtr MythHDRTracker::m_metadata { nullptr }
protected

Definition at line 23 of file mythhdrtracker.h.

Referenced by Reset(), and Update().

◆ m_hdr

MythHDRPtr MythHDRTracker::m_hdr { nullptr }
protected

Definition at line 24 of file mythhdrtracker.h.

Referenced by MythHDRTracker(), Reset(), and Update().


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