/haiku-fatelf/src/servers/app/drawing/Painter/drawing_modes/ |
H A D | DrawingModeAlphaCOSolid.h | 20 uint16 alpha = pattern->HighColor().alpha * cover; local 21 if (alpha == 255 * 255) { 24 BLEND_ALPHA_CO(p, c.r, c.g, c.b, alpha); 34 uint16 alpha = pattern->HighColor().alpha * cover; local 35 if (alpha == 255 * 255) { 54 BLEND_ALPHA_CO(p, c.r, c.g, c.b, alpha); 59 alpha = alpha >> 74 uint16 alpha = hAlpha * *covers; local 99 uint16 alpha = hAlpha * *covers; local [all...] |
H A D | DrawingModeAlphaPC.h | 36 uint16 alpha = color.alpha * cover; local 37 if (alpha == 255*255) { 40 BLEND_ALPHA_PC(p, color.red, color.green, color.blue, alpha); 53 uint16 alpha = color.alpha * cover; local 54 if (alpha) { 55 if (alpha == 255) { 58 BLEND_ALPHA_PC(p, color.red, color.green, color.blue, alpha); 75 uint16 alpha local 98 uint16 alpha = color.alpha * *covers; local 124 uint16 alpha = colors->a * *covers; local 138 uint16 alpha = colors->a * cover; local [all...] |
H A D | DrawingModeAlphaPO.h | 36 uint16 alpha = color.alpha * cover; local 37 if (alpha == 255 * 255) { 40 BLEND_ALPHA_PO(p, color.red, color.green, color.blue, alpha); 53 uint16 alpha = color.alpha * cover; local 54 if (alpha) { 55 if (alpha == 255) { 58 BLEND_ALPHA_PO(p, color.red, color.green, color.blue, alpha); 75 uint16 alpha local 100 uint16 alpha = color.alpha * *covers; local 126 uint16 alpha = colors->a * *covers; local 140 uint16 alpha = colors->a * cover; local [all...] |
H A D | DrawingModeAlphaPOSolid.h | 20 uint16 alpha = c.a * cover; local 21 if (alpha == 255 * 255) { 24 BLEND_ALPHA_PO(p, c.r, c.g, c.b, alpha); 34 uint16 alpha = c.a * cover; local 35 if (alpha == 255 * 255) { 54 BLEND_ALPHA_CO(p, c.r, c.g, c.b, alpha); 59 alpha = alpha >> 8; 60 blend_line32(p, len, c.r, c.g, c.b, alpha); 73 uint16 alpha local 97 uint16 alpha = c.a * *covers; local [all...] |
H A D | DrawingModeAlphaCC.h | 36 uint16 alpha = pattern->HighColor().alpha * cover; local 37 if (alpha == 255 * 255) { 40 BLEND_ALPHA_CC(p, color.red, color.green, color.blue, alpha); 51 uint16 alpha = color.alpha * cover; local 52 if (alpha == 255 * 255) { 83 BLEND_ALPHA_CC(p, color.red, color.green, color.blue, alpha); 97 uint8 hAlpha = pattern->HighColor().alpha; 100 uint16 alpha local 124 uint16 alpha = hAlpha * *covers; local 151 uint16 alpha = hAlpha * colors->a * *covers / 255; local 165 uint16 alpha = hAlpha * colors->a * cover / 255; local [all...] |
H A D | DrawingModeAlphaCO.h | 36 uint16 alpha = pattern->HighColor().alpha * cover; local 37 if (alpha == 255 * 255) { 40 BLEND_ALPHA_CO(p, color.red, color.green, color.blue, alpha); 51 uint16 alpha = color.alpha * cover; local 52 if (alpha == 255*255) { 83 BLEND_ALPHA_CO(p, color.red, color.green, color.blue, alpha); 97 uint8 hAlpha = pattern->HighColor().alpha; 100 uint16 alpha local 126 uint16 alpha = hAlpha * *covers; local 153 uint16 alpha = hAlpha * colors->a * *covers / 255; local 167 uint16 alpha = hAlpha * colors->a * cover / 255; local [all...] |
H A D | DrawingModeAlphaPCSUBPIX.h | 38 alphaRed = color.alpha * covers[subpixelL]; 39 alphaGreen = color.alpha * covers[subpixelM]; 40 alphaBlue = color.alpha * covers[subpixelR];
|
H A D | DrawingModeAlphaPOSUBPIX.h | 38 alphaRed = color.alpha * covers[subpixelL]; 39 alphaGreen = color.alpha * covers[subpixelM]; 40 alphaBlue = color.alpha * covers[subpixelR];
|
/haiku-fatelf/src/add-ons/translators/wonderbrush/support/ |
H A D | blending.h | 88 blend_colors_copy(uint8* bottom, uint8 alpha, uint8* dest, argument 92 if (alpha > 0) { 93 if (bottom[3] == 0 || alpha == 255) { 97 dest[3] = alpha; 105 gc1, gc2, gc3, alpha, 115 blend_colors(uint8* bottom, uint8 alpha, argument 119 if (alpha > 0) { 120 if (bottom[3] == 0 || alpha == 255) { 124 bottom[3] = alpha; 132 gc1, gc2, gc3, alpha, 140 blend_colors_copy(uint8* bottom, uint8 alpha, uint8* dest, uint8 c1, uint8 c2, uint8 c3) argument 161 blend_colors(uint8* bottom, uint8 alpha, uint8 c1, uint8 c2, uint8 c3) argument 181 uint8 alpha = (source[3] * alphaOverride) / 255; local 232 blend_pixels(uint8* bottom, uint8* top, uint8 alpha) argument 261 blend_pixels_copy(uint8* bottom, uint8* top, uint8* dest, uint8 alpha) argument 297 uint8 alpha = (top[3] * alphaOverride) / 255; local 327 uint8 alpha = (top[3] * alphaOverride) / 255; local 363 blend_colors_copy(uint8* bottom, uint8 alpha, uint8* dest, uint8 c1, uint8 c2, uint8 c3) argument 397 blend_colors(uint8* bottom, uint8 alpha, uint8 c1, uint8 c2, uint8 c3) argument 429 uint8 alpha = (source[3] * alphaOverride) / 255; local 517 blend_pixels(uint8* bottom, uint8* top, uint8 alpha) argument 538 blend_pixels_copy(uint8* bottom, uint8* top, uint8* dest, uint8 alpha) argument 566 uint8 alpha = (top[3] * alphaOverride) / 255; local 588 uint8 alpha = (top[3] * alphaOverride) / 255; local [all...] |
/haiku-fatelf/src/kits/interface/ |
H A D | ColorTools.cpp | 65 target->alpha = (uint8)( ((int16(other.alpha)-int16(target->alpha))*amount)/255 66 + target->alpha ); 71 const uint8 alphaMix = (uint8)( ((int16(other.alpha)-int16(255-target->alpha))*amount)/255 72 + (255-target->alpha) ); 79 target->alpha = (uint8)( ((int16(other.alpha)-int16(target->alpha))*amoun [all...] |
/haiku-fatelf/src/add-ons/media/media-add-ons/video_mixer/ |
H A D | BufferMixer.cpp | 49 #define ALPHABLEND(source, destination, alpha) (((destination) * (256 - (alpha)) + (source) * (alpha)) >> 8) 58 uint8 alpha = 0; local 65 alpha = *source++; 66 *destination++ = ALPHABLEND(c1, *destination, alpha); 67 *destination++ = ALPHABLEND(c2, *destination, alpha); 68 *destination++ = ALPHABLEND(c3, *destination, alpha);
|
/haiku-fatelf/headers/private/interface/ |
H A D | ColorTools.h | 70 inline rgb_color make_color(uint8 red, uint8 green, uint8 blue, uint8 alpha=255) argument 76 c.alpha = alpha; 81 // Mix two colors together, ignoring their relative alpha channels. 83 // if another value, it is somewhere in-between. The resulting alpha 87 // Blend two colors together, weighting by their relative alpha channels. 90 // alpha channel. For example, if color1.alpha is 0 and color2.alpha is
|
/haiku-fatelf/src/apps/soundrecorder/ |
H A D | DrawingTidbits.h | 30 Color(int32 r, int32 g, int32 b, int32 alpha = 255) 36 result.alpha = alpha;
|
/haiku-fatelf/src/libs/pdflib/bind/pdflib/perl/ |
H A D | pdfclock.cgi.pl | 31 for ($alpha = 0; $alpha < 360; $alpha += 6) 44 for ($alpha = 0; $alpha < 360; $alpha += 30)
|
H A D | pdfclock.pl | 34 for ($alpha = 0; $alpha < 360; $alpha += 6) 47 for ($alpha = 0; $alpha < 360; $alpha += 30)
|
/haiku-fatelf/headers/libs/agg/ |
H A D | agg_pixfmt_rgb_packed.h | 44 unsigned alpha, 52 (((((cr - r) * alpha + (r << 8)) >> 1) & 0x7C00) | 53 ((((cg - g) * alpha + (g << 8)) >> 6) & 0x03E0) | 54 (((cb - b) * alpha + (b << 8)) >> 11) | 0x8000); 83 unsigned alpha, 86 alpha = color_type::base_mask - alpha; 92 ((((r * alpha + cr * cover) >> 1) & 0x7C00) | 93 (((g * alpha + cg * cover) >> 6) & 0x03E0) | 94 ((b * alpha 42 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned) argument 81 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned cover) argument 128 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned) argument 173 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned) argument 211 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned cover) argument 255 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned) argument 296 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned) argument 336 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned cover) argument 383 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned) argument 424 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned) argument 464 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned cover) argument 511 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned) argument 554 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned) argument 591 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned cover) argument 636 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned) argument 676 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned) argument 713 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned cover) argument 758 blend_pix(pixel_type* p, unsigned cr, unsigned cg, unsigned cb, unsigned alpha, unsigned) argument 817 calc_type alpha = (calc_type(c.a) * (cover + 1)) >> 8; local 937 calc_type alpha = (calc_type(c.a) * (cover + 1)) >> 8; local 967 calc_type alpha = (calc_type(c.a) * (cover + 1)) >> 8; local 1111 value_type alpha = psrc[src_order::A]; local [all...] |
/haiku-fatelf/src/add-ons/screen_savers/icons/ |
H A D | IconDisplay.cpp | 81 backColor.alpha = (fTicks * 255) / fDelay; 88 backColor.alpha = 255; 99 backColor.alpha = 255; 108 backColor.alpha = 255 - (fTicks * 255) / fDelay; 110 backColor.alpha = 0; 124 backColor.alpha = 255;
|
/haiku-fatelf/src/add-ons/translators/hpgs/lib/ |
H A D | hpgsimage.c | 52 int x, int y, hpgs_paint_color *c, double *alpha) 63 if (alpha) 64 *alpha = 1.0; 70 int x, int y, const hpgs_paint_color *c, double alpha) 79 if (alpha >= 1.0) 81 else if (alpha > 0.0) 82 row[x] = (unsigned char)(gray * alpha + row[x] * (1.0-alpha)); 104 const hpgs_paint_color *c, double alpha) 113 if (alpha > 51 pim_get_pixel_8(const hpgs_image *_this, int x, int y, hpgs_paint_color *c, double *alpha) argument 69 pim_put_pixel_8(hpgs_image *_this, int x, int y, const hpgs_paint_color *c, double alpha) argument 102 pim_rop3_pixel_8(hpgs_image *_this, int x, int y, const hpgs_paint_color *c, double alpha) argument 143 pim_get_pixel_16(const hpgs_image *_this, int x, int y, hpgs_paint_color *c, double *alpha) argument 161 pim_put_pixel_16(hpgs_image *_this, int x, int y, const hpgs_paint_color *c, double alpha) argument 207 pim_rop3_pixel_16(hpgs_image *_this, int x, int y, const hpgs_paint_color *c, double alpha) argument 257 pim_get_pixel_24(const hpgs_image *_this, int x, int y, hpgs_paint_color *c, double *alpha) argument 274 pim_put_pixel_24(hpgs_image *_this, int x, int y, const hpgs_paint_color *c, double alpha) argument 316 pim_rop3_pixel_24(hpgs_image *_this, int x, int y, const hpgs_paint_color *c, double alpha) argument 369 pim_get_pixel_32(const hpgs_image *_this, int x, int y, hpgs_paint_color *c, double *alpha) argument 386 pim_put_pixel_32(hpgs_image *_this, int x, int y, const hpgs_paint_color *c, double alpha) argument 434 pim_rop3_pixel_32(hpgs_image *_this, int x, int y, const hpgs_paint_color *c, double alpha) argument 495 pim_put_pixel_256(hpgs_image *_this, int x, int y, const hpgs_paint_color *c, double alpha) argument 509 pim_get_pixel_256(const hpgs_image *_this, int x, int y, hpgs_paint_color *c, double *alpha) argument 685 unsigned char alpha; local [all...] |
/haiku-fatelf/src/libs/pdflib/bind/pdflib/c/ |
H A D | pdfclock.c | 19 float alpha; local 53 for (alpha = 0; alpha < 360; alpha += 6) 66 for (alpha = 0; alpha < 360; alpha += 30)
|
/haiku-fatelf/src/libs/pdflib/bind/pdflib/cpp/ |
H A D | pdfclock.cpp | 24 float alpha; local 53 for (alpha = 0; alpha < 360; alpha += 6) 66 for (alpha = 0; alpha < 360; alpha += 30)
|
/haiku-fatelf/src/apps/icon-o-matic/generic/gui/ |
H A D | SwatchView.cpp | 57 blend_color(rgb_color& a, const rgb_color& b, float alpha) argument 59 float alphaInv = 1.0 - alpha; 60 a.red = (uint8)(b.red * alphaInv + a.red * alpha); 61 a.green = (uint8)(b.green * alphaInv + a.green * alpha); 62 a.blue = (uint8)(b.blue * alphaInv + a.blue * alpha); 74 if (fColor.alpha < 255) { 76 float alpha = fColor.alpha / 255.0; local 79 blend_color(h, kAlphaHigh, alpha); 81 blend_color(l, kAlphaLow, alpha); [all...] |
/haiku-fatelf/src/bin/gdb/opcodes/ |
H A D | makefile.vms | 9 ifeq ($(ARCH),alpha) 10 OBJS=alpha-dis.obj,alpha-opc.obj,dis-buf.obj,disassemble.obj
|
/haiku-fatelf/src/libs/pdflib/libs/pdflib/ |
H A D | p_draw.c | 151 pdf_short_arc(PDF *p, float x, float y, float r, float alpha, float beta) argument 156 alpha = (float) (alpha * PDC_M_PI / 180); 159 /* This formula yields ARC_MAGIC for alpha == 0, beta == 90 degrees */ 160 bcp = (float) (4.0/3 * (1 - cos((beta - alpha)/2)) / sin((beta - alpha)/2)); 162 sin_alpha = (float) sin(alpha); 164 cos_alpha = (float) cos(alpha); 177 pdf_orient_arc(PDF *p, float x, float y, float r, float alpha, float beta, argument 180 float rad_a = (float) (alpha * PDC_M_P 227 pdf__arc(PDF *p, float x, float y, float r, float alpha, float beta) argument 234 pdf__arcn(PDF *p, float x, float y, float r, float alpha, float beta) argument 430 PDF_arc(PDF *p, float x, float y, float r, float alpha, float beta) argument 443 PDF_arcn(PDF *p, float x, float y, float r, float alpha, float beta) argument [all...] |
/haiku-fatelf/src/servers/app/ |
H A D | RGBColor.cpp | 57 // alpha's the easy part 58 col->alpha=0; 121 // start with alpha value 122 uint16 color16 = color.alpha > 127 ? 0x8000 : 0; 162 \param alpha alpha, defaults to 255 175 \param alpha alpha, defaults to 255 256 \return 15-bit value of the current color plus 1-bit alpha 288 \return current color, including alpha [all...] |
/haiku-fatelf/src/libs/pdflib/bind/pdflib/tcl/ |
H A D | pdfclock.tcl | 38 for {set alpha 0} {$alpha < 360} {set alpha [expr $alpha + 6]} { 50 for {set alpha 0} {$alpha < 360} {set alpha [expr $alpha + 30]} {
|