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* MDisplay);
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:72
MythHDRTracker::Reset
void Reset()
Definition: mythhdrtracker.cpp:57
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:52
MythVideoFrame
Definition: mythframe.h:88
MythHDRTracker::MythHDRTracker
MythHDRTracker(MythHDRPtr HDR)
Definition: mythhdrtracker.cpp:45
MythHDRTracker::Create
static HDRTracker Create(class MythDisplay *MDisplay)
Create a tracker instance that looks for changes in the required EOTF.
Definition: mythhdrtracker.cpp:18
MythHDRTracker::m_hdr
MythHDRPtr m_hdr
Definition: mythhdrtracker.h:24