MythTV  master
mythhdrtracker.h
Go to the documentation of this file.
1 #ifndef MYTHHDRTRACKER_H
2 #define MYTHHDRTRACKER_H
3 
4 // MythTV
5 #include "mythhdrvideometadata.h"
6 
7 // Std
8 #include <memory>
9 
10 using HDRTracker = std::shared_ptr<class MythHDRTracker>;
11 
13 {
14  public:
15  static HDRTracker Create(class MythDisplay* _Display);
17  void Update(class MythVideoFrame* Frame);
18 
19  protected:
20  explicit MythHDRTracker(MythHDRPtr HDR);
21  void Reset();
22 
24  MythHDRPtr m_hdr { nullptr };
25 };
26 
27 #endif
MythHDRPtr
std::shared_ptr< class MythHDR > MythHDRPtr
Definition: mythhdr.h:30
MythHDRTracker::Update
void Update(class MythVideoFrame *Frame)
Track changes to the HDR type (EOTF) and request a change when needed.
Definition: mythhdrtracker.cpp:71
MythHDRTracker::Reset
void Reset()
Definition: mythhdrtracker.cpp:56
MythHDRTracker::Create
static HDRTracker Create(class MythDisplay *_Display)
Create a tracker instance that looks for changes in the required EOTF.
Definition: mythhdrtracker.cpp:17
Frame
Definition: zmdefines.h:93
mythhdrvideometadata.h
MythHDRTracker
Definition: mythhdrtracker.h:12
MythHDRTracker::m_metadata
MythHDRVideoPtr m_metadata
Definition: mythhdrtracker.h:23
MythHDRVideoPtr
std::shared_ptr< class MythHDRVideoMetadata > MythHDRVideoPtr
Definition: mythframe.h:86
MythDisplay
Definition: mythdisplay.h:22
HDRTracker
std::shared_ptr< class MythHDRTracker > HDRTracker
Definition: mythhdrtracker.h:10
MythHDRTracker::~MythHDRTracker
~MythHDRTracker()
Definition: mythhdrtracker.cpp:51
MythVideoFrame
Definition: mythframe.h:88
MythHDRTracker::MythHDRTracker
MythHDRTracker(MythHDRPtr HDR)
Definition: mythhdrtracker.cpp:44
MythHDRTracker::m_hdr
MythHDRPtr m_hdr
Definition: mythhdrtracker.h:24