MythTV  master
Macros | Functions
mythpainter_yuva.cpp File Reference
#include <QPainter>
#include <QImage>
#include "mythpainter_yuva.h"
#include "mythfontproperties.h"
#include "mythlogging.h"
Include dependency graph for mythpainter_yuva.cpp:

Go to the source code of this file.

Macros

#define MAX_FONT_CACHE   32
 
#define SCALEBITS   8
 
#define ONE_HALF   (1 << (SCALEBITS - 1))
 
#define FIX(x)   ((int) ((x) * (1L<<SCALEBITS) /*+ 0.5*/))
 

Functions

QColor rgb_to_yuv (const QColor &original)
 

Macro Definition Documentation

◆ MAX_FONT_CACHE

#define MAX_FONT_CACHE   32

Definition at line 8 of file mythpainter_yuva.cpp.

◆ SCALEBITS

#define SCALEBITS   8

Definition at line 198 of file mythpainter_yuva.cpp.

◆ ONE_HALF

#define ONE_HALF   (1 << (SCALEBITS - 1))

Definition at line 199 of file mythpainter_yuva.cpp.

◆ FIX

#define FIX (   x)    ((int) ((x) * (1L<<SCALEBITS) /*+ 0.5*/))

Definition at line 200 of file mythpainter_yuva.cpp.

Function Documentation

◆ rgb_to_yuv()

QColor rgb_to_yuv ( const QColor &  original)
inline