MythTV
master
|
#include <DetectLetterbox.h>
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 } |
Definition at line 11 of file DetectLetterbox.h.
DetectLetterbox::DetectLetterbox | ( | ) |
Definition at line 11 of file DetectLetterbox.cpp.
|
default |
void DetectLetterbox::SetDetectLetterbox | ( | bool | Detect, |
AdjustFillMode | Mode | ||
) |
Definition at line 320 of file DetectLetterbox.cpp.
Referenced by MythPlayerVideoUI::InitVideo(), and MythPlayerVideoUI::ToggleAdjustFill().
bool DetectLetterbox::GetDetectLetterbox | ( | ) | const |
Definition at line 328 of file DetectLetterbox.cpp.
Referenced by MythPlayerVideoUI::InitVideo().
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().
Definition at line 21 of file DetectLetterbox.h.
Referenced by Detect(), DetectLetterbox(), GetDetectLetterbox(), and SetDetectLetterbox().
|
private |
Definition at line 22 of file DetectLetterbox.h.
Referenced by Detect(), and SetDetectLetterbox().
|
private |
Definition at line 23 of file DetectLetterbox.h.
Referenced by Detect().
|
private |
Definition at line 24 of file DetectLetterbox.h.
Referenced by Detect(), and DetectLetterbox().
|
private |
Definition at line 25 of file DetectLetterbox.h.
Referenced by Detect(), and SetDetectLetterbox().
|
private |
Which mode was last detected.
Definition at line 26 of file DetectLetterbox.h.
Referenced by Detect(), and SetDetectLetterbox().
|
private |
On which frame was the mode switch detected.
Definition at line 27 of file DetectLetterbox.h.
Referenced by Detect().
|
private |
Definition at line 28 of file DetectLetterbox.h.
Referenced by Detect().
|
private |
Definition at line 29 of file DetectLetterbox.h.
Referenced by Detect().
|
private |
Definition at line 30 of file DetectLetterbox.h.
Referenced by Detect(), and DetectLetterbox().