Ardour
9.0-pre0-582-g084a23a80d
|
Go to the source code of this file.
Macros | |
#define | RGB_TO_UINT(r, g, b) ((((guint)(r))<<16)|(((guint)(g))<<8)|((guint)(b))) |
#define | RGB_TO_RGBA(x, a) (((x) << 8) | ((((guint)a) & 0xff))) |
#define | RGBA_TO_UINT(r, g, b, a) RGB_TO_RGBA(RGB_TO_UINT(r,g,b), a) |
#define | RGB_WHITE RGB_TO_UINT(0xff, 0xff, 0xff) |
#define | RGB_BLACK RGB_TO_UINT(0x00, 0x00, 0x00) |
#define | RGB_RED RGB_TO_UINT(0xff, 0x00, 0x00) |
#define | RGB_GREEN RGB_TO_UINT(0x00, 0xff, 0x00) |
#define | RGB_BLUE RGB_TO_UINT(0x00, 0x00, 0xff) |
#define | RGB_YELLOW RGB_TO_UINT(0xff, 0xff, 0x00) |
#define | RGB_VIOLET RGB_TO_UINT(0xff, 0x00, 0xff) |
#define | RGB_CYAN RGB_TO_UINT(0x00, 0xff, 0xff) |
#define | RGBA_WHITE RGB_TO_RGBA(RGB_WHITE, 0xff) |
#define | RGBA_BLACK RGB_TO_RGBA(RGB_BLACK, 0xff) |
#define | RGBA_RED RGB_TO_RGBA(RGB_RED, 0xff) |
#define | RGBA_GREEN RGB_TO_RGBA(RGB_GREEN, 0xff) |
#define | RGBA_BLUE RGB_TO_RGBA(RGB_BLUE, 0xff) |
#define | RGBA_YELLOW RGB_TO_RGBA(RGB_YELLOW, 0xff) |
#define | RGBA_VIOLET RGB_TO_RGBA(RGB_VIOLET, 0xff) |
#define | RGBA_CYAN RGB_TO_RGBA(RGB_CYAN, 0xff) |
#define | RGB_GREY(x) RGB_TO_UINT(x,x,x) |
#define | RGBA_GREY(x) RGB_TO_RGBA(RGB_GREY(x), 0xff) |
#define | UINT_RGBA_R(x) (((guint)(x))>>24) |
#define | UINT_RGBA_G(x) ((((guint)(x))>>16)&0xff) |
#define | UINT_RGBA_B(x) ((((guint)(x))>>8)&0xff) |
#define | UINT_RGBA_A(x) (((guint)(x))&0xff) |
#define | UINT_RGBA_R_FLT(x) ((((guint)(x))>>24)/255.0) |
#define | UINT_RGBA_G_FLT(x) (((((guint)(x))>>16)&0xff)/255.0) |
#define | UINT_RGBA_B_FLT(x) (((((guint)(x))>>8)&0xff)/255.0) |
#define | UINT_RGBA_A_FLT(x) ((((guint)(x))&0xff)/255.0) |
#define | UINT_RGBA_CHANGE_R(x, r) (((x)&(~(0xff<<24)))|(((r)&0xff)<<24)) |
#define | UINT_RGBA_CHANGE_G(x, g) (((x)&(~(0xff<<16)))|(((g)&0xff)<<16)) |
#define | UINT_RGBA_CHANGE_B(x, b) (((x)&(~(0xff<<8)))|(((b)&0xff)<<8)) |
#define | UINT_RGBA_CHANGE_A(x, a) (((x)&(~0xff))|((a)&0xff)) |
#define | UINT_TO_RGB(u, r, g, b) { (*(r)) = ((u)>>16)&0xff; (*(g)) = ((u)>>8)&0xff; (*(b)) = (u)&0xff; } |
#define | UINT_TO_RGBA(u, r, g, b, a) { UINT_TO_RGB(((u)>>8),r,g,b); (*(a)) = (u)&0xff; } |
#define | MONO_INTERPOLATE(v1, v2, t) ((gint)rint((v2)*(t)+(v1)*(1-(t)))) |
#define | UINT_INTERPOLATE(c1, c2, t) |
#define | PIXEL_RGB(p, r, g, b) {((guchar*)(p))[0]=(r); ((guchar*)(p))[1]=(g); ((guchar*)(p))[2]=(b);} |
#define | PIXEL_RGBA(p, r, g, b, a) |
#define | PIXEL_RGB_UINT(p, i) UINT_TO_RGB((i), ((guchar*)p), ((guchar*)p)+1, ((guchar*)p)+2) |
#define | PIXEL_RGBA_UINT(p, i) PIXEL_RGBA((p), ((i)>>24)&0xff, ((i)>>16)&0xff, ((i)>>8)&0xff, (i)&0xff) |
#define | PIXEL_BLACK(p) PIXEL_RGB(p,0,0,0) |
#define | PIXEL_WHITE(p) PIXEL_RGB(p,0xff,0xff,0xff) |
#define | PIXEL_GREY(p, g) PIXEL_RGB(p,g,g,g) |
#define | PIXEL_GREYA(p, g, a) PIXEL_RGBA(p,g,g,g,a) |
#define | BUF_PTR(inbuf, ptx, pty) ((inbuf)->buf + 3*((ptx)-(inbuf)->rect.x0) + (inbuf)->buf_rowstride*((pty)-(inbuf)->rect.y0)) |
#define | BUF_INBOUNDS_X(inbuf, ptx) ((inbuf)->rect.x0 <= (ptx) && (ptx) < (inbuf)->rect.x1) |
#define | BUF_INBOUNDS_Y(inbuf, pty) ((inbuf)->rect.y0 <= (pty) && (pty) < (inbuf)->rect.y1) |
#define | PAINT_DOT(inbuf, colr, colg, colb, ptx, pty) |
#define | FAST_PAINT_DOT(inbuf, colr, colg, colb, ptx, pty) |
#define | PAINT_DOTA(inbuf, colr, colg, colb, cola, ptx, pty) |
#define | FAST_PAINT_DOTA(inbuf, colr, colg, colb, cola, ptx, pty) |
#define | PAINT_HORIZ(inbuf, colr, colg, colb, ptx0, ptx1, pty) |
#define | FAST_PAINT_HORIZ(inbuf, colr, colg, colb, ptx0, ptx1, pty) |
#define | PAINT_HORIZA(inbuf, colr, colg, colb, cola, ptx0, ptx1, pty) |
#define | PAINT_VERT(inbuf, colr, colg, colb, ptx, pty0, pty1) |
#define | FAST_PAINT_VERT(inbuf, colr, colg, colb, ptx, pty0, pty1) |
#define | PAINT_VERTA(inbuf, colr, colg, colb, cola, ptx, pty0, pty1) |
#define | PAINT_VERTA_GR(inbuf, colr, colg, colb, cola, ptx, pty0, pty1, origin_y, obj_top) |
#define | PAINT_BOX(inbuf, colr, colg, colb, cola, ptx0, pty0, ptx1, pty1) |
#define | PAINT_BOX_GR(inbuf, colr, colg, colb, cola, ptx0, pty0, ptx1, pty1, v_span) |
#define | FAST_PAINT_BOX(inbuf, colr, colg, colb, cola, ptx0, pty0, ptx1, pty1) |
#define BUF_INBOUNDS_X | ( | inbuf, | |
ptx | |||
) | ((inbuf)->rect.x0 <= (ptx) && (ptx) < (inbuf)->rect.x1) |
Definition at line 93 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define BUF_INBOUNDS_Y | ( | inbuf, | |
pty | |||
) | ((inbuf)->rect.y0 <= (pty) && (pty) < (inbuf)->rect.y1) |
Definition at line 95 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define BUF_PTR | ( | inbuf, | |
ptx, | |||
pty | |||
) | ((inbuf)->buf + 3*((ptx)-(inbuf)->rect.x0) + (inbuf)->buf_rowstride*((pty)-(inbuf)->rect.y0)) |
Definition at line 91 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define FAST_PAINT_BOX | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
cola, | |||
ptx0, | |||
pty0, | |||
ptx1, | |||
pty1 | |||
) |
Definition at line 331 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define FAST_PAINT_DOT | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
ptx, | |||
pty | |||
) |
Definition at line 105 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define FAST_PAINT_DOTA | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
cola, | |||
ptx, | |||
pty | |||
) |
Definition at line 119 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define FAST_PAINT_HORIZ | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
ptx0, | |||
ptx1, | |||
pty | |||
) |
Definition at line 144 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define FAST_PAINT_VERT | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
ptx, | |||
pty0, | |||
pty1 | |||
) |
Definition at line 201 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define MONO_INTERPOLATE | ( | v1, | |
v2, | |||
t | |||
) | ((gint)rint((v2)*(t)+(v1)*(1-(t)))) |
Definition at line 65 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PAINT_BOX | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
cola, | |||
ptx0, | |||
pty0, | |||
ptx1, | |||
pty1 | |||
) |
Definition at line 267 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PAINT_BOX_GR | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
cola, | |||
ptx0, | |||
pty0, | |||
ptx1, | |||
pty1, | |||
v_span | |||
) |
Definition at line 296 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PAINT_DOT | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
ptx, | |||
pty | |||
) |
Definition at line 97 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PAINT_DOTA | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
cola, | |||
ptx, | |||
pty | |||
) |
Definition at line 111 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PAINT_HORIZ | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
ptx0, | |||
ptx1, | |||
pty | |||
) |
Definition at line 125 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PAINT_HORIZA | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
cola, | |||
ptx0, | |||
ptx1, | |||
pty | |||
) |
Definition at line 163 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PAINT_VERT | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
ptx, | |||
pty0, | |||
pty1 | |||
) |
Definition at line 182 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PAINT_VERTA | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
cola, | |||
ptx, | |||
pty0, | |||
pty1 | |||
) |
Definition at line 218 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PAINT_VERTA_GR | ( | inbuf, | |
colr, | |||
colg, | |||
colb, | |||
cola, | |||
ptx, | |||
pty0, | |||
pty1, | |||
origin_y, | |||
obj_top | |||
) |
Definition at line 238 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PIXEL_BLACK | ( | p | ) | PIXEL_RGB(p,0,0,0) |
Definition at line 87 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PIXEL_GREY | ( | p, | |
g | |||
) | PIXEL_RGB(p,g,g,g) |
Definition at line 89 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PIXEL_GREYA | ( | p, | |
g, | |||
a | |||
) | PIXEL_RGBA(p,g,g,g,a) |
Definition at line 90 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PIXEL_RGB | ( | p, | |
r, | |||
g, | |||
b | |||
) | {((guchar*)(p))[0]=(r); ((guchar*)(p))[1]=(g); ((guchar*)(p))[2]=(b);} |
Definition at line 71 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PIXEL_RGB_UINT | ( | p, | |
i | |||
) | UINT_TO_RGB((i), ((guchar*)p), ((guchar*)p)+1, ((guchar*)p)+2) |
Definition at line 83 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PIXEL_RGBA | ( | p, | |
r, | |||
g, | |||
b, | |||
a | |||
) |
Definition at line 73 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PIXEL_RGBA_UINT | ( | p, | |
i | |||
) | PIXEL_RGBA((p), ((i)>>24)&0xff, ((i)>>16)&0xff, ((i)>>8)&0xff, (i)&0xff) |
Definition at line 85 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define PIXEL_WHITE | ( | p | ) | PIXEL_RGB(p,0xff,0xff,0xff) |
Definition at line 88 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGB_BLACK RGB_TO_UINT(0x00, 0x00, 0x00) |
Definition at line 32 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGB_BLUE RGB_TO_UINT(0x00, 0x00, 0xff) |
Definition at line 35 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGB_CYAN RGB_TO_UINT(0x00, 0xff, 0xff) |
Definition at line 38 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGB_GREEN RGB_TO_UINT(0x00, 0xff, 0x00) |
Definition at line 34 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGB_GREY | ( | x | ) | RGB_TO_UINT(x,x,x) |
Definition at line 47 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGB_RED RGB_TO_UINT(0xff, 0x00, 0x00) |
Definition at line 33 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGB_TO_RGBA | ( | x, | |
a | |||
) | (((x) << 8) | ((((guint)a) & 0xff))) |
Definition at line 29 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGB_TO_UINT | ( | r, | |
g, | |||
b | |||
) | ((((guint)(r))<<16)|(((guint)(g))<<8)|((guint)(b))) |
Definition at line 28 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGB_VIOLET RGB_TO_UINT(0xff, 0x00, 0xff) |
Definition at line 37 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGB_WHITE RGB_TO_UINT(0xff, 0xff, 0xff) |
Definition at line 31 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGB_YELLOW RGB_TO_UINT(0xff, 0xff, 0x00) |
Definition at line 36 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGBA_BLACK RGB_TO_RGBA(RGB_BLACK, 0xff) |
Definition at line 40 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGBA_BLUE RGB_TO_RGBA(RGB_BLUE, 0xff) |
Definition at line 43 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGBA_CYAN RGB_TO_RGBA(RGB_CYAN, 0xff) |
Definition at line 46 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGBA_GREEN RGB_TO_RGBA(RGB_GREEN, 0xff) |
Definition at line 42 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGBA_GREY | ( | x | ) | RGB_TO_RGBA(RGB_GREY(x), 0xff) |
Definition at line 48 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGBA_RED RGB_TO_RGBA(RGB_RED, 0xff) |
Definition at line 41 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGBA_TO_UINT | ( | r, | |
g, | |||
b, | |||
a | |||
) | RGB_TO_RGBA(RGB_TO_UINT(r,g,b), a) |
Definition at line 30 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGBA_VIOLET RGB_TO_RGBA(RGB_VIOLET, 0xff) |
Definition at line 45 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGBA_WHITE RGB_TO_RGBA(RGB_WHITE, 0xff) |
Definition at line 39 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define RGBA_YELLOW RGB_TO_RGBA(RGB_YELLOW, 0xff) |
Definition at line 44 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_INTERPOLATE | ( | c1, | |
c2, | |||
t | |||
) |
Definition at line 66 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_RGBA_A | ( | x | ) | (((guint)(x))&0xff) |
Definition at line 52 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_RGBA_A_FLT | ( | x | ) | ((((guint)(x))&0xff)/255.0) |
Definition at line 56 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_RGBA_B | ( | x | ) | ((((guint)(x))>>8)&0xff) |
Definition at line 51 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_RGBA_B_FLT | ( | x | ) | (((((guint)(x))>>8)&0xff)/255.0) |
Definition at line 55 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_RGBA_CHANGE_A | ( | x, | |
a | |||
) | (((x)&(~0xff))|((a)&0xff)) |
Definition at line 60 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_RGBA_CHANGE_B | ( | x, | |
b | |||
) | (((x)&(~(0xff<<8)))|(((b)&0xff)<<8)) |
Definition at line 59 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_RGBA_CHANGE_G | ( | x, | |
g | |||
) | (((x)&(~(0xff<<16)))|(((g)&0xff)<<16)) |
Definition at line 58 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_RGBA_CHANGE_R | ( | x, | |
r | |||
) | (((x)&(~(0xff<<24)))|(((r)&0xff)<<24)) |
Definition at line 57 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_RGBA_G | ( | x | ) | ((((guint)(x))>>16)&0xff) |
Definition at line 50 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_RGBA_G_FLT | ( | x | ) | (((((guint)(x))>>16)&0xff)/255.0) |
Definition at line 54 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_RGBA_R | ( | x | ) | (((guint)(x))>>24) |
Definition at line 49 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_RGBA_R_FLT | ( | x | ) | ((((guint)(x))>>24)/255.0) |
Definition at line 53 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_TO_RGB | ( | u, | |
r, | |||
g, | |||
b | |||
) | { (*(r)) = ((u)>>16)&0xff; (*(g)) = ((u)>>8)&0xff; (*(b)) = (u)&0xff; } |
Definition at line 61 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.
#define UINT_TO_RGBA | ( | u, | |
r, | |||
g, | |||
b, | |||
a | |||
) | { UINT_TO_RGB(((u)>>8),r,g,b); (*(a)) = (u)&0xff; } |
Definition at line 63 of file libs/gtkmm2ext/gtkmm2ext/rgb_macros.h.