MythTV  master
Classes | Functions | Variables
mhi.cpp File Reference
#include "mhi.h"
#include <QRegion>
#include <QVector>
#include <QUrl>
#include <QPoint>
#include <QRgb>
#include <QVariant>
#include <QByteArray>
#include <QStringList>
#include <QTime>
#include <QHash>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <cstring>
#include <deque>
#include "libmythbase/mthread.h"
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythdb.h"
#include "libmythbase/mythdbcon.h"
#include "libmythbase/mythdirs.h"
#include "libmythbase/mythevent.h"
#include "libmythbase/mythlogging.h"
#include "libmythui/mythimage.h"
#include "libmythui/mythmainwindow.h"
#include "libmythui/mythpainter.h"
#include "libmythui/mythrect.h"
#include "libmythui/mythuiactions.h"
#include "libmythui/mythuiimage.h"
#include "dsmcc.h"
#include "interactivescreen.h"
#include "interactivetv.h"
#include "mythavutil.h"
#include "mythplayerui.h"
#include "tv_actions.h"
#include "libavutil/imgutils.h"
Include dependency graph for mhi.cpp:

Go to the source code of this file.

Classes

class  MHIImageData
 Data for items in the interactive television display stack. More...
 
class  MHKeyLookup
 
struct  lineSeg
 

Functions

int Roundup (int n, int r)
 
static FT_F26Dot6 Point2FT (int pt)
 
static int FT2Point (FT_F26Dot6 fp)
 

Variables

static bool ft_loaded = false
 
static FT_Library ft_library
 
static constexpr uint8_t FONT_WIDTHRES { 54 }
 
static constexpr uint8_t FONT_HEIGHTRES { 72 }
 
static constexpr const char * FONT_TO_USE { "FreeSans.ttf" }
 
const unsigned kTuneQuietly = 1U<<0
 
const unsigned kTuneKeepApp = 1U<<1
 
const unsigned kTuneCarId = 1U<<2
 
const unsigned kTuneCarReset = 1U<<3
 
const unsigned kTuneKeepChnl = 1U<<16
 
const int kShift = 6
 

Function Documentation

◆ Roundup()

int Roundup ( int  n,
int  r 
)
inline

Definition at line 821 of file mhi.cpp.

Referenced by MHIContext::DrawVideo().

◆ Point2FT()

static FT_F26Dot6 Point2FT ( int  pt)
inlinestatic

Definition at line 1254 of file mhi.cpp.

Referenced by MHIText::AddText(), and MHIText::GetBounds().

◆ FT2Point()

static int FT2Point ( FT_F26Dot6  fp)
inlinestatic

Definition at line 1259 of file mhi.cpp.

Referenced by MHIText::AddText(), and MHIText::GetBounds().

Variable Documentation

◆ ft_loaded

bool ft_loaded = false
static

Definition at line 45 of file mhi.cpp.

Referenced by MHIContext::MHIContext().

◆ ft_library

FT_Library ft_library
static

Definition at line 46 of file mhi.cpp.

Referenced by MHIContext::LoadFont(), and MHIContext::MHIContext().

◆ FONT_WIDTHRES

constexpr uint8_t FONT_WIDTHRES { 54 }
staticconstexpr

Definition at line 48 of file mhi.cpp.

Referenced by MHIText::AddText(), and MHIText::GetBounds().

◆ FONT_HEIGHTRES

constexpr uint8_t FONT_HEIGHTRES { 72 }
staticconstexpr

Definition at line 49 of file mhi.cpp.

Referenced by MHIText::AddText(), and MHIText::GetBounds().

◆ FONT_TO_USE

constexpr const char* FONT_TO_USE { "FreeSans.ttf" }
staticconstexpr

Definition at line 50 of file mhi.cpp.

Referenced by MHIContext::MHIContext().

◆ kTuneQuietly

const unsigned kTuneQuietly = 1U<<0

Definition at line 54 of file mhi.cpp.

Referenced by MHIContext::BeginStream().

◆ kTuneKeepApp

const unsigned kTuneKeepApp = 1U<<1

Definition at line 55 of file mhi.cpp.

Referenced by MHIContext::BeginStream(), and MHIContext::Restart().

◆ kTuneCarId

const unsigned kTuneCarId = 1U<<2

Definition at line 56 of file mhi.cpp.

Referenced by MHIContext::Restart().

◆ kTuneCarReset

const unsigned kTuneCarReset = 1U<<3

Definition at line 57 of file mhi.cpp.

Referenced by MHIContext::Restart().

◆ kTuneKeepChnl

const unsigned kTuneKeepChnl = 1U<<16

Definition at line 61 of file mhi.cpp.

Referenced by MHIContext::BeginStream(), and MHIContext::Restart().

◆ kShift

const int kShift = 6

Definition at line 1253 of file mhi.cpp.

Referenced by FT2Point(), and Point2FT().