MythTV
0.27pre
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Groups
Pages
libs
libmythtv
DetectLetterbox.h
Go to the documentation of this file.
1
// -*- Mode: c++ -*-
2
3
#include "
mythplayer.h
"
4
5
using namespace
std;
6
7
class
MythPlayer
;
8
9
class
MTV_PUBLIC
DetectLetterbox
10
{
11
public
:
12
DetectLetterbox
(
MythPlayer
*
const
player);
13
~
DetectLetterbox
();
14
void
SetDetectLetterbox(
bool
detect);
15
bool
GetDetectLetterbox()
const
;
16
void
Detect(
VideoFrame
*frame);
17
void
SwitchTo(
VideoFrame
*frame);
18
19
private
:
20
bool
isDetectLetterbox
;
21
int
firstFrameChecked
;
22
23
AdjustFillMode
detectLetterboxDefaultMode
;
24
AdjustFillMode
detectLetterboxDetectedMode
;
// Wich mode was last detected
25
long
long
detectLetterboxSwitchFrame
;
// On wich frame was the mode switch detected
26
long
long
detectLetterboxPossibleHalfFrame
;
27
long
long
detectLetterboxPossibleFullFrame
;
28
int
detectLetterboxConsecutiveCounter
;
29
30
MythPlayer
*
m_player
;
31
32
int
detectLetterboxLimit
;
33
QMutex
detectLetterboxLock
;
34
};
35
36
/* vim: set expandtab tabstop=4 shiftwidth=4: */
Generated on Wed May 22 2013 06:59:39 for MythTV by
1.8.1.2