16 #if BYTE_ORDER == LITTLE_ENDIAN
22 unsigned char a,
r,
g,
b;
36 gRGB(
const char *colorstring)
42 for (
int i = 0; i < 8; i++)
44 char c = colorstring[i];
47 if (c >=
'0' && c <=
'9')
49 else if(c >=
'a' && c <=
'f')
51 else if(c >=
'A' && c <=
'F')
53 else if(c >=
':' && c <=
'?')
103 operator const std::string ()
const
106 std::string escapecolor =
"\\c";
107 escapecolor.resize(10);
108 for (
int i = 9; i >= 2; i--)
110 int hexbits =
val & 0xf;
111 escapecolor[i] = hexbits < 10 ?
'0' + hexbits
112 :
'a' - 10 + hexbits;
119 #define BLEND(x, y, a) (y + (((x-y) * a)>>8))
138 operator int()
const {
return color; }
Definition: gpixmap.h:188
@ accelNever
Definition: gpixmap.h:207
@ accelAuto
Definition: gpixmap.h:208
@ accelAlways
Definition: gpixmap.h:209
gPixmap(gUnmanagedSurface *surface)
Definition: gpixmap.cpp:1258
eSize size() const
Definition: gpixmap.h:223
virtual ~gPixmap()
Definition: gpixmap.cpp:1245
gUnmanagedSurface * surface
Definition: gpixmap.h:218
bool needClut() const
Definition: gpixmap.h:220
void(* gPixmapDisposeCallback)(gPixmap *pixmap)
Definition: gpixmap.h:212
@ blitKeepAspectRatio
Definition: gpixmap.h:199
@ blitAlphaTest
Definition: gpixmap.h:196
@ blitAlphaBlend
Definition: gpixmap.h:197
@ blitScale
Definition: gpixmap.h:198
@ blitHAlignRight
Definition: gpixmap.h:201
@ blitHAlignCenter
Definition: gpixmap.h:200
@ blitVAlignCenter
Definition: gpixmap.h:202
@ blitVAlignBottom
Definition: gpixmap.h:203
const char int accel
Definition: epng.h:36
const char int int int height
Definition: epng.h:39
const char int int width
Definition: epng.h:39
SWIG_TEMPLATE_TYPEDEF(ePtr< gPixmap >, gPixmapPtr)
line
Definition: newplugin.py:87
target
Definition: newplugin.py:59
def clip(val, min, max)
Definition: PiPSetup.py:17
pos
Definition: enigma_py_patcher.py:16
Definition: picload.cpp:163
Definition: gpixmap.h:130
int color
Definition: gpixmap.h:131
bool operator==(const gColor &o) const
Definition: gpixmap.h:139
gColor(int color)
Definition: gpixmap.h:132
gColor()
Definition: gpixmap.h:135
Definition: gpixmap.h:153
gLookup()
Definition: gpixmap.cpp:91
void build(int size, const gPalette &pal, const gRGB &start, const gRGB &end)
Definition: gpixmap.cpp:102
int size
Definition: gpixmap.h:154
gColor * lookup
Definition: gpixmap.h:155
~gLookup()
Definition: gpixmap.h:158
Definition: gpixmap.h:143
gColor findColor(const gRGB rgb) const
Definition: gpixmap.cpp:1202
uint32_t data_phys
Definition: gpixmap.h:146
gRGB * data
Definition: gpixmap.h:145
gPalette()
Definition: gpixmap.h:149
int colors
Definition: gpixmap.h:144
int start
Definition: gpixmap.h:144
unsigned char r
Definition: gpixmap.h:18
gRGB(int r, int g, int b, int a=0)
Definition: gpixmap.h:27
unsigned char a
Definition: gpixmap.h:18
unsigned char b
Definition: gpixmap.h:18
void operator=(uint32_t val)
Definition: gpixmap.h:73
void alpha_blend(const gRGB other)
Definition: gpixmap.h:117
gRGB()
Definition: gpixmap.h:59
bool operator<(const gRGB &c) const
Definition: gpixmap.h:77
bool operator!=(const gRGB &c) const
Definition: gpixmap.h:99
uint32_t argb() const
Definition: gpixmap.h:63
gRGB(const char *colorstring)
Definition: gpixmap.h:36
void set(uint32_t val)
Definition: gpixmap.h:68
unsigned char g
Definition: gpixmap.h:18
bool operator==(const gRGB &c) const
Definition: gpixmap.h:95
gRGB(const gRGB &other)
Definition: gpixmap.h:33
uint32_t value
Definition: gpixmap.h:25
gRGB(uint32_t val)
Definition: gpixmap.h:30
Definition: gpixmap.h:174
gSurface()
Definition: gpixmap.h:175
~gSurface()
Definition: gpixmap.cpp:227
Definition: gpixmap.h:163
int bypp
Definition: gpixmap.h:164
int bpp
Definition: gpixmap.h:164
gPalette clut
Definition: gpixmap.h:165
void * data
Definition: gpixmap.h:166
int data_phys
Definition: gpixmap.h:167
int x
Definition: gpixmap.h:164
int stride
Definition: gpixmap.h:164
gUnmanagedSurface()
Definition: gpixmap.cpp:138
int y
Definition: gpixmap.h:164