MythTV  master
Public Member Functions | Private Attributes | List of all members
DetectLetterbox Class Reference

#include <DetectLetterbox.h>

Collaboration diagram for DetectLetterbox:
Collaboration graph
[legend]

Public Member Functions

 DetectLetterbox ()
 
 ~DetectLetterbox ()=default
 
void SetDetectLetterbox (bool Detect, AdjustFillMode Mode)
 
bool GetDetectLetterbox () const
 
bool Detect (MythVideoFrame *Frame, float VideoAspect, AdjustFillMode &Current)
 Detects if this frame is or is not letterboxed. More...
 

Private Attributes

bool m_isDetectLetterbox { false }
 
long long m_firstFrameChecked { 0 }
 
VideoFrameType m_frameType { FMT_NONE }
 
AdjustFillMode m_detectLetterboxDefaultMode { kAdjustFill_Off }
 
AdjustFillMode m_detectLetterboxDetectedMode { kAdjustFill_Off }
 
long long m_detectLetterboxSwitchFrame { -1 }
 Which mode was last detected. More...
 
long long m_detectLetterboxPossibleHalfFrame { -1 }
 On which frame was the mode switch detected. More...
 
long long m_detectLetterboxPossibleFullFrame { -1 }
 
int m_detectLetterboxConsecutiveCounter { 0 }
 
int m_detectLetterboxLimit { 75 }
 

Detailed Description

Definition at line 11 of file DetectLetterbox.h.

Constructor & Destructor Documentation

◆ DetectLetterbox()

DetectLetterbox::DetectLetterbox ( )

Definition at line 11 of file DetectLetterbox.cpp.

◆ ~DetectLetterbox()

DetectLetterbox::~DetectLetterbox ( )
default

Member Function Documentation

◆ SetDetectLetterbox()

void DetectLetterbox::SetDetectLetterbox ( bool  Detect,
AdjustFillMode  Mode 
)

◆ GetDetectLetterbox()

bool DetectLetterbox::GetDetectLetterbox ( ) const

Definition at line 325 of file DetectLetterbox.cpp.

Referenced by MythPlayerVideoUI::InitVideo().

◆ Detect()

bool DetectLetterbox::Detect ( MythVideoFrame Frame,
float  VideoAspect,
AdjustFillMode Current 
)

Detects if this frame is or is not letterboxed.

If a change is detected detectLetterboxSwitchFrame and detectLetterboxDetectedMode are set.

Definition at line 27 of file DetectLetterbox.cpp.

Referenced by MythPlayerUI::DisplayNormalFrame(), and SetDetectLetterbox().

Member Data Documentation

◆ m_isDetectLetterbox

bool DetectLetterbox::m_isDetectLetterbox { false }
private

Definition at line 21 of file DetectLetterbox.h.

Referenced by Detect(), DetectLetterbox(), GetDetectLetterbox(), and SetDetectLetterbox().

◆ m_firstFrameChecked

long long DetectLetterbox::m_firstFrameChecked { 0 }
private

Definition at line 22 of file DetectLetterbox.h.

Referenced by Detect(), and SetDetectLetterbox().

◆ m_frameType

VideoFrameType DetectLetterbox::m_frameType { FMT_NONE }
private

Definition at line 23 of file DetectLetterbox.h.

Referenced by Detect().

◆ m_detectLetterboxDefaultMode

AdjustFillMode DetectLetterbox::m_detectLetterboxDefaultMode { kAdjustFill_Off }
private

Definition at line 24 of file DetectLetterbox.h.

Referenced by Detect(), and DetectLetterbox().

◆ m_detectLetterboxDetectedMode

AdjustFillMode DetectLetterbox::m_detectLetterboxDetectedMode { kAdjustFill_Off }
private

Definition at line 25 of file DetectLetterbox.h.

Referenced by Detect(), and SetDetectLetterbox().

◆ m_detectLetterboxSwitchFrame

long long DetectLetterbox::m_detectLetterboxSwitchFrame { -1 }
private

Which mode was last detected.

Definition at line 26 of file DetectLetterbox.h.

Referenced by Detect(), and SetDetectLetterbox().

◆ m_detectLetterboxPossibleHalfFrame

long long DetectLetterbox::m_detectLetterboxPossibleHalfFrame { -1 }
private

On which frame was the mode switch detected.

Definition at line 27 of file DetectLetterbox.h.

Referenced by Detect().

◆ m_detectLetterboxPossibleFullFrame

long long DetectLetterbox::m_detectLetterboxPossibleFullFrame { -1 }
private

Definition at line 28 of file DetectLetterbox.h.

Referenced by Detect().

◆ m_detectLetterboxConsecutiveCounter

int DetectLetterbox::m_detectLetterboxConsecutiveCounter { 0 }
private

Definition at line 29 of file DetectLetterbox.h.

Referenced by Detect().

◆ m_detectLetterboxLimit

int DetectLetterbox::m_detectLetterboxLimit { 75 }
private

Definition at line 30 of file DetectLetterbox.h.

Referenced by Detect(), and DetectLetterbox().


The documentation for this class was generated from the following files: