|
vdr 2.8.3
|
#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 |
Macros | |
| #define | USE_ALPHA_LUT |
Functions | |
| tColor | HsvToColor (double H, double S, double V) |
| tColor | RgbShade (tColor Color, double Factor) |
| 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 [] |
Definition at line 81 of file osd.c.
References AlphaBlend(), AlphaLutAlpha, and AlphaLutFactors.
Referenced by AlphaBlend(), cPixmapMemory::DrawBlendedPixel(), cPixmapMemory::DrawPixel(), cFreetypeFont::DrawText(), cPixmapMemory::Render(), and cImage::Scaled().
| 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 HsvToColor(), and RgbToColor().
Referenced by cTrueColorDemo::Action(), and HsvToColor().
Returns a brighter (Factor > 0) or darker (Factor < 0) version of the given Color.
If Factor is 0.0, the return value is the unchanged Color, If Factor is 1.0, white is returned. If Factor is -1.0, black is returned. The alpha value of Color is returned unchanged.
Definition at line 43 of file osd.c.
References constrain(), min(), and RgbShade().
Referenced by RgbShade(), THEME_CLR(), THEME_CLR(), THEME_CLR(), THEME_CLR(), THEME_CLR(), and THEME_CLR().
|
static |
Definition at line 59 of file osd.c.
Referenced by AlphaBlend(), and cInitAlphaLut::cInitAlphaLut().
|
static |
Definition at line 58 of file osd.c.
Referenced by AlphaBlend(), and cInitAlphaLut::cInitAlphaLut().
| class cInitAlphaLut InitAlphaLut |
|
static |
Definition at line 1891 of file osd.c.
Referenced by cOsd::SetAreas().