MythTV  master
DetectLetterbox.h
Go to the documentation of this file.
1 // MythTV
2 #include "mythplayer.h"
3 
5 {
6  public:
8  ~DetectLetterbox() = default;
9  void SetDetectLetterbox(bool Detect);
10  bool GetDetectLetterbox() const;
11  void Detect(VideoFrame *Frame);
12  void SwitchTo(VideoFrame *Frame);
13 
14  private:
15  bool m_isDetectLetterbox { false };
16  long long m_firstFrameChecked { 0 };
17  VideoFrameType m_frameType { FMT_NONE };
18  AdjustFillMode m_detectLetterboxDefaultMode { kAdjustFill_Off };
19  AdjustFillMode m_detectLetterboxDetectedMode { kAdjustFill_Off };
20  long long m_detectLetterboxSwitchFrame { -1 };
21  long long m_detectLetterboxPossibleHalfFrame { -1 };
22  long long m_detectLetterboxPossibleFullFrame { -1 };
23  int m_detectLetterboxConsecutiveCounter { 0 };
24  MythPlayer *m_player { nullptr };
25  int m_detectLetterboxLimit { 75 };
27 };
28 
29 /* vim: set expandtab tabstop=4 shiftwidth=4: */
VideoFrameType
Definition: mythframe.h:23
QMutex m_detectLetterboxLock
#define MTV_PUBLIC
Definition: mythtvexp.h:15
AdjustFillMode
Definition: videoouttypes.h:55