MythTV  master
DetectLetterbox.h
Go to the documentation of this file.
1 #ifndef MYTHDETECTLETTERBOX_H
2 #define MYTHDETECTLETTERBOX_H
3 
4 // Qt
5 #include <QMutex>
6 
7 // MythTV
8 #include "mythframe.h"
9 #include "videoouttypes.h"
10 
12 {
13  public:
15  ~DetectLetterbox() = default;
16  void SetDetectLetterbox(bool Detect, AdjustFillMode Mode);
17  bool GetDetectLetterbox() const;
18  bool Detect(MythVideoFrame* Frame, float VideoAspect, AdjustFillMode& Current);
19 
20  private:
21  bool m_isDetectLetterbox { false };
22  long long m_firstFrameChecked { 0 };
23  VideoFrameType m_frameType { FMT_NONE };
24  AdjustFillMode m_detectLetterboxDefaultMode { kAdjustFill_Off };
25  AdjustFillMode m_detectLetterboxDetectedMode { kAdjustFill_Off };
26  long long m_detectLetterboxSwitchFrame { -1 };
27  long long m_detectLetterboxPossibleHalfFrame { -1 };
28  long long m_detectLetterboxPossibleFullFrame { -1 };
29  int m_detectLetterboxConsecutiveCounter { 0 };
30  int m_detectLetterboxLimit { 75 };
31 };
32 
33 #endif
kAdjustFill_Off
@ kAdjustFill_Off
Definition: videoouttypes.h:74
Frame
Definition: zmdefines.h:93
mythframe.h
FMT_NONE
@ FMT_NONE
Definition: mythframe.h:22
DetectLetterbox
Definition: DetectLetterbox.h:11
videoouttypes.h
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
AdjustFillMode
AdjustFillMode
Definition: videoouttypes.h:71
VideoFrameType
VideoFrameType
Definition: mythframe.h:20
MythVideoFrame
Definition: mythframe.h:88