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: */
kAdjustFill_Off
@ kAdjustFill_Off
Definition: videoouttypes.h:58
Frame
Definition: zmdefines.h:94
mythplayer.h
MythPlayer
Definition: mythplayer.h:165
VideoFrame
Definition: mythframe.h:138
DetectLetterbox::~DetectLetterbox
~DetectLetterbox()=default
FMT_NONE
@ FMT_NONE
Definition: mythframe.h:26
DetectLetterbox
Definition: DetectLetterbox.h:5
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
AdjustFillMode
AdjustFillMode
Definition: videoouttypes.h:56
DetectLetterbox::m_detectLetterboxLock
QMutex m_detectLetterboxLock
Definition: DetectLetterbox.h:26
uswcState::Detect
@ Detect
VideoFrameType
VideoFrameType
Definition: mythframe.h:25
Player
Definition: zmliveplayer.h:36