MythTV  master
Macros | Functions
mythvideobounds.cpp File Reference
#include <cmath>
#include <QApplication>
#include "libmythbase/mythconfig.h"
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythmiscutil.h"
#include "libmythui/mythmainwindow.h"
#include "mythplayer.h"
#include "mythvideobounds.h"
Include dependency graph for mythvideobounds.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("VideoBounds: ")
 

Functions

static QRect SCALED_RECT (QRect src, qreal scale)
 
static float fix_aspect (float raw)
 Correct for rounding errors. More...
 
static float snap (float value, float snapto, float diff)
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("VideoBounds: ")

Definition at line 37 of file mythvideobounds.cpp.

Function Documentation

◆ SCALED_RECT()

static QRect SCALED_RECT ( QRect  src,
qreal  scale 
)
inlinestatic

◆ fix_aspect()

static float fix_aspect ( float  raw)
static

Correct for rounding errors.

Definition at line 908 of file mythvideobounds.cpp.

Referenced by MythVideoBounds::ApplyLetterboxing(), and MythVideoBounds::PrintMoveResizeDebug().

◆ snap()

static float snap ( float  value,
float  snapto,
float  diff 
)
static