vdr
1.7.27
|
#include "osd.h"
#include <math.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/unistd.h>
#include "device.h"
#include "tools.h"
Go to the source code of this file.
Classes | |
class | cInitAlphaLut |
Defines | |
#define | USE_ALPHA_LUT |
Functions | |
tColor | HsvToColor (double H, double S, double V) |
tColor | AlphaBlend (tColor ColorFg, tColor ColorBg, uint8_t AlphaLayer) |
Variables | |
static uint16_t | AlphaLutFactors [255][256][2] |
static uint8_t | AlphaLutAlpha [255][256] |
class cInitAlphaLut | InitAlphaLut |
static const char * | OsdErrorTexts [] |
#define USE_ALPHA_LUT |
tColor AlphaBlend | ( | tColor | ColorFg, |
tColor | ColorBg, | ||
uint8_t | AlphaLayer | ||
) |
Definition at line 71 of file osd.c.
References AlphaLutAlpha, and AlphaLutFactors.
Referenced by cPixmapMemory::DrawPixel(), cFreetypeFont::DrawText(), and cPixmapMemory::Render().
tColor HsvToColor | ( | double | H, |
double | S, | ||
double | V | ||
) |
Converts the given Hue (0..360), Saturation (0..1) and Value (0..1) to an RGB tColor value.
The alpha value of the result is 0x00, so the caller may need to set it accordingly.
Definition at line 19 of file osd.c.
References RgbToColor().
Referenced by cTrueColorDemo::Action().
uint8_t AlphaLutAlpha[255][256] [static] |
Definition at line 49 of file osd.c.
Referenced by AlphaBlend(), and cInitAlphaLut::cInitAlphaLut().
uint16_t AlphaLutFactors[255][256][2] [static] |
Definition at line 48 of file osd.c.
Referenced by AlphaBlend(), and cInitAlphaLut::cInitAlphaLut().
class cInitAlphaLut InitAlphaLut |
const char* OsdErrorTexts[] [static] |
{ "ok", "too many areas", "too many colors", "bpp not supported", "areas overlap", "wrong alignment", "out of memory", "wrong area size", "unknown", }
Definition at line 1590 of file osd.c.
Referenced by cOsd::SetAreas().