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 *const player)
 
 ~DetectLetterbox ()=default
 
void SetDetectLetterbox (bool detect)
 
bool GetDetectLetterbox () const
 
void Detect (VideoFrame *frame)
 Detects if this frame is or is not letterboxed. More...
 
void SwitchTo (VideoFrame *frame)
 Switch to the mode detected by DetectLetterbox. More...
 

Private Attributes

bool m_isDetectLetterbox
 
int m_firstFrameChecked {0}
 
AdjustFillMode m_detectLetterboxDefaultMode
 
AdjustFillMode m_detectLetterboxDetectedMode
 Which mode was last detected. More...
 
long long m_detectLetterboxSwitchFrame {-1}
 On which frame was the mode switch detected. More...
 
long long m_detectLetterboxPossibleHalfFrame {-1}
 
long long m_detectLetterboxPossibleFullFrame {-1}
 
int m_detectLetterboxConsecutiveCounter {0}
 
MythPlayerm_player {nullptr}
 
int m_detectLetterboxLimit {75}
 
QMutex m_detectLetterboxLock
 

Detailed Description

Definition at line 9 of file DetectLetterbox.h.

Constructor & Destructor Documentation

◆ DetectLetterbox()

DetectLetterbox::DetectLetterbox ( MythPlayer *const  player)
explicit

Definition at line 9 of file DetectLetterbox.cpp.

◆ ~DetectLetterbox()

DetectLetterbox::~DetectLetterbox ( )
default

Member Function Documentation

◆ SetDetectLetterbox()

void DetectLetterbox::SetDetectLetterbox ( bool  detect)

Definition at line 320 of file DetectLetterbox.cpp.

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

◆ GetDetectLetterbox()

bool DetectLetterbox::GetDetectLetterbox ( ) const

Definition at line 328 of file DetectLetterbox.cpp.

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

◆ Detect()

void DetectLetterbox::Detect ( VideoFrame frame)

Detects if this frame is or is not letterboxed.

If a change is detected detectLetterboxSwitchFrame and detectLetterboxDetectedMode are set.

Definition at line 26 of file DetectLetterbox.cpp.

Referenced by MythPlayer::ReleaseNextVideoFrame().

◆ SwitchTo()

void DetectLetterbox::SwitchTo ( VideoFrame frame)

Switch to the mode detected by DetectLetterbox.

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

Definition at line 284 of file DetectLetterbox.cpp.

Referenced by MythPlayer::DisplayNormalFrame().

Member Data Documentation

◆ m_isDetectLetterbox

bool DetectLetterbox::m_isDetectLetterbox
private

Definition at line 20 of file DetectLetterbox.h.

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

◆ m_firstFrameChecked

int DetectLetterbox::m_firstFrameChecked {0}
private

Definition at line 21 of file DetectLetterbox.h.

Referenced by Detect(), and SetDetectLetterbox().

◆ m_detectLetterboxDefaultMode

AdjustFillMode DetectLetterbox::m_detectLetterboxDefaultMode
private

Definition at line 23 of file DetectLetterbox.h.

Referenced by Detect(), and DetectLetterbox().

◆ m_detectLetterboxDetectedMode

AdjustFillMode DetectLetterbox::m_detectLetterboxDetectedMode
private

Which mode was last detected.

Definition at line 25 of file DetectLetterbox.h.

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

◆ m_detectLetterboxSwitchFrame

long long DetectLetterbox::m_detectLetterboxSwitchFrame {-1}
private

On which frame was the mode switch detected.

Definition at line 27 of file DetectLetterbox.h.

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

◆ m_detectLetterboxPossibleHalfFrame

long long DetectLetterbox::m_detectLetterboxPossibleHalfFrame {-1}
private

Definition at line 28 of file DetectLetterbox.h.

Referenced by Detect().

◆ m_detectLetterboxPossibleFullFrame

long long DetectLetterbox::m_detectLetterboxPossibleFullFrame {-1}
private

Definition at line 29 of file DetectLetterbox.h.

Referenced by Detect().

◆ m_detectLetterboxConsecutiveCounter

int DetectLetterbox::m_detectLetterboxConsecutiveCounter {0}
private

Definition at line 30 of file DetectLetterbox.h.

Referenced by Detect(), and SwitchTo().

◆ m_player

MythPlayer* DetectLetterbox::m_player {nullptr}
private

Definition at line 32 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: