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 (MythPlayer *Player)
 
 ~DetectLetterbox ()=default
 
void SetDetectLetterbox (bool Detect)
 
bool GetDetectLetterbox () const
 
void Detect (MythVideoFrame *Frame)
 Detects if this frame is or is not letterboxed. More...
 
void SwitchTo (MythVideoFrame *Frame)
 Switch to the mode detected by DetectLetterbox. 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 }
 
MythPlayerm_player { nullptr }
 
int m_detectLetterboxLimit { 75 }
 
QMutex m_detectLetterboxLock
 

Detailed Description

Definition at line 13 of file DetectLetterbox.h.

Constructor & Destructor Documentation

◆ DetectLetterbox()

DetectLetterbox::DetectLetterbox ( MythPlayer Player)
explicit

Definition at line 12 of file DetectLetterbox.cpp.

◆ ~DetectLetterbox()

DetectLetterbox::~DetectLetterbox ( )
default

Member Function Documentation

◆ SetDetectLetterbox()

void DetectLetterbox::SetDetectLetterbox ( bool  Detect)

Definition at line 361 of file DetectLetterbox.cpp.

Referenced by TV::OSDDialogEvent(), and MythPlayerUI::ToggleAdjustFill().

◆ GetDetectLetterbox()

bool DetectLetterbox::GetDetectLetterbox ( ) const

Definition at line 369 of file DetectLetterbox.cpp.

Referenced by Detect(), TV::OSDDialogEvent(), and SwitchTo().

◆ Detect()

void DetectLetterbox::Detect ( MythVideoFrame Frame)

Detects if this frame is or is not letterboxed.

If a change is detected detectLetterboxSwitchFrame and detectLetterboxDetectedMode are set.

Definition at line 30 of file DetectLetterbox.cpp.

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

◆ SwitchTo()

void DetectLetterbox::SwitchTo ( MythVideoFrame Frame)

Switch to the mode detected by DetectLetterbox.

Switch fill mode if a switch was detected for this frame.

Definition at line 325 of file DetectLetterbox.cpp.

Referenced by MythPlayerUI::DisplayNormalFrame().

Member Data Documentation

◆ m_isDetectLetterbox

bool DetectLetterbox::m_isDetectLetterbox { false }
private

Definition at line 24 of file DetectLetterbox.h.

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

◆ m_firstFrameChecked

long long DetectLetterbox::m_firstFrameChecked { 0 }
private

Definition at line 25 of file DetectLetterbox.h.

Referenced by Detect(), and SetDetectLetterbox().

◆ m_frameType

VideoFrameType DetectLetterbox::m_frameType { FMT_NONE }
private

Definition at line 26 of file DetectLetterbox.h.

Referenced by Detect().

◆ m_detectLetterboxDefaultMode

AdjustFillMode DetectLetterbox::m_detectLetterboxDefaultMode { kAdjustFill_Off }
private

Definition at line 27 of file DetectLetterbox.h.

Referenced by Detect(), and DetectLetterbox().

◆ m_detectLetterboxDetectedMode

AdjustFillMode DetectLetterbox::m_detectLetterboxDetectedMode { kAdjustFill_Off }
private

Definition at line 28 of file DetectLetterbox.h.

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

◆ m_detectLetterboxSwitchFrame

long long DetectLetterbox::m_detectLetterboxSwitchFrame { -1 }
private

Which mode was last detected.

Definition at line 29 of file DetectLetterbox.h.

Referenced by Detect(), SetDetectLetterbox(), and SwitchTo().

◆ m_detectLetterboxPossibleHalfFrame

long long DetectLetterbox::m_detectLetterboxPossibleHalfFrame { -1 }
private

On which frame was the mode switch detected.

Definition at line 30 of file DetectLetterbox.h.

Referenced by Detect().

◆ m_detectLetterboxPossibleFullFrame

long long DetectLetterbox::m_detectLetterboxPossibleFullFrame { -1 }
private

Definition at line 31 of file DetectLetterbox.h.

Referenced by Detect().

◆ m_detectLetterboxConsecutiveCounter

int DetectLetterbox::m_detectLetterboxConsecutiveCounter { 0 }
private

Definition at line 32 of file DetectLetterbox.h.

Referenced by Detect(), and SwitchTo().

◆ m_player

MythPlayer* DetectLetterbox::m_player { nullptr }
private

Definition at line 33 of file DetectLetterbox.h.

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

◆ m_detectLetterboxLimit

int DetectLetterbox::m_detectLetterboxLimit { 75 }
private

Definition at line 34 of file DetectLetterbox.h.

Referenced by Detect(), and DetectLetterbox().

◆ m_detectLetterboxLock

QMutex DetectLetterbox::m_detectLetterboxLock
private

Definition at line 35 of file DetectLetterbox.h.

Referenced by Detect(), and SwitchTo().


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