MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
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 ()
void SetDetectLetterbox (bool detect)
bool GetDetectLetterbox () const
void Detect (VideoFrame *frame)
 Detects if this frame is or is not letterboxed.
void SwitchTo (VideoFrame *frame)
 Switch to the mode detected by DetectLetterbox.

Private Attributes

bool isDetectLetterbox
int firstFrameChecked
AdjustFillMode detectLetterboxDefaultMode
AdjustFillMode detectLetterboxDetectedMode
long long detectLetterboxSwitchFrame
long long detectLetterboxPossibleHalfFrame
long long detectLetterboxPossibleFullFrame
int detectLetterboxConsecutiveCounter
MythPlayerm_player
int detectLetterboxLimit
QMutex detectLetterboxLock

Detailed Description

Definition at line 9 of file DetectLetterbox.h.

Constructor & Destructor Documentation

DetectLetterbox::DetectLetterbox ( MythPlayer *const  player)

Definition at line 9 of file DetectLetterbox.cpp.

DetectLetterbox::~DetectLetterbox ( )

Definition at line 25 of file DetectLetterbox.cpp.

Member Function Documentation

void DetectLetterbox::SetDetectLetterbox ( bool  detect)

Definition at line 329 of file DetectLetterbox.cpp.

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

bool DetectLetterbox::GetDetectLetterbox ( ) const

Definition at line 337 of file DetectLetterbox.cpp.

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

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 35 of file DetectLetterbox.cpp.

Referenced by MythPlayer::ReleaseNextVideoFrame().

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 293 of file DetectLetterbox.cpp.

Referenced by MythPlayer::DisplayNormalFrame().

Member Data Documentation

bool DetectLetterbox::isDetectLetterbox
private

Definition at line 20 of file DetectLetterbox.h.

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

int DetectLetterbox::firstFrameChecked
private

Definition at line 21 of file DetectLetterbox.h.

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

AdjustFillMode DetectLetterbox::detectLetterboxDefaultMode
private

Definition at line 23 of file DetectLetterbox.h.

Referenced by Detect(), and DetectLetterbox().

AdjustFillMode DetectLetterbox::detectLetterboxDetectedMode
private

Definition at line 24 of file DetectLetterbox.h.

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

long long DetectLetterbox::detectLetterboxSwitchFrame
private

Definition at line 25 of file DetectLetterbox.h.

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

long long DetectLetterbox::detectLetterboxPossibleHalfFrame
private

Definition at line 26 of file DetectLetterbox.h.

Referenced by Detect(), and DetectLetterbox().

long long DetectLetterbox::detectLetterboxPossibleFullFrame
private

Definition at line 27 of file DetectLetterbox.h.

Referenced by Detect(), and DetectLetterbox().

int DetectLetterbox::detectLetterboxConsecutiveCounter
private

Definition at line 28 of file DetectLetterbox.h.

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

MythPlayer* DetectLetterbox::m_player
private

Definition at line 30 of file DetectLetterbox.h.

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

int DetectLetterbox::detectLetterboxLimit
private

Definition at line 32 of file DetectLetterbox.h.

Referenced by Detect(), and DetectLetterbox().

QMutex DetectLetterbox::detectLetterboxLock
private

Definition at line 33 of file DetectLetterbox.h.

Referenced by Detect(), and SwitchTo().


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