/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
D | TexturePixel.java | 19 public float intensity, red, green, blue, alpha; field in TexturePixel 29 this.red = pixel.red; in fromPixel() 42 this.red = colorRGBA.r; in fromColor() 62 this.red = r; in fromARGB8() 77 this.red = pixelValue >= 0 ? pixelValue / 255.0f : 1.0f - (~pixelValue) / 255.0f; in fromARGB8() 107 this.red = pixelValue >= 0 ? pixelValue / 255.0f : 1.0f - (~pixelValue) / 255.0f; in fromImage() 112 this.red = pixelValue >= 0 ? pixelValue / 255.0f : 1.0f - (~pixelValue) / 255.0f; in fromImage() 127 this.red = pixelValue >= 0 ? pixelValue / 255.0f : 1.0f - (~pixelValue) / 255.0f; in fromImage() 133 this.red = pixelValue >= 0 ? pixelValue / 255.0f : 1.0f - (~pixelValue) / 255.0f; in fromImage() 146 this.intensity = this.blue = this.red = this.green = this.alpha = 0.0f; in fromImage() [all …]
|
/external/webkit/Source/WebCore/platform/graphics/filters/ |
D | FEColorMatrix.cpp | 76 inline void matrix(double& red, double& green, double& blue, double& alpha, const Vector<float>& va… in matrix() argument 78 …double r = values[0] * red + values[1] * green + values[2] * blue + values[3] * alpha + values… in matrix() 79 …double g = values[5] * red + values[6] * green + values[7] * blue + values[8] * alpha + values… in matrix() 80 …double b = values[10] * red + values[11] * green + values[12] * blue + values[13] * alpha + valu… in matrix() 81 …double a = values[15] * red + values[16] * green + values[17] * blue + values[18] * alpha + values… in matrix() 83 red = r; in matrix() 89 inline void saturate(double& red, double& green, double& blue, const float& s) in saturate() argument 91 double r = (0.213 + 0.787 * s) * red + (0.715 - 0.715 * s) * green + (0.072 - 0.072 * s) * blue; in saturate() 92 double g = (0.213 - 0.213 * s) * red + (0.715 + 0.285 * s) * green + (0.072 - 0.072 * s) * blue; in saturate() 93 double b = (0.213 - 0.213 * s) * red + (0.715 - 0.715 * s) * green + (0.072 + 0.928 * s) * blue; in saturate() [all …]
|
/external/qemu/distrib/sdl-1.2.15/src/video/x11/ |
D | SDL_x11gamma.c | 33 static int X11_SetGammaNoLock(_THIS, float red, float green, float blue) in X11_SetGammaNoLock() argument 41 if ( red < MIN_GAMMA ) { in X11_SetGammaNoLock() 42 gamma.red = MIN_GAMMA; in X11_SetGammaNoLock() 44 if ( red > MAX_GAMMA ) { in X11_SetGammaNoLock() 45 gamma.red = MAX_GAMMA; in X11_SetGammaNoLock() 47 gamma.red = red; in X11_SetGammaNoLock() 69 gamma_saved[0] = gamma.red; in X11_SetGammaNoLock() 83 int X11_SetVidModeGamma(_THIS, float red, float green, float blue) in X11_SetVidModeGamma() argument 88 result = X11_SetGammaNoLock(this, red, green, blue); in X11_SetVidModeGamma() 94 static int X11_GetGammaNoLock(_THIS, float *red, float *green, float *blue) in X11_GetGammaNoLock() argument [all …]
|
/external/qemu/distrib/sdl-1.2.15/src/video/ |
D | SDL_gamma.c | 93 int SDL_SetGamma(float red, float green, float blue) in SDL_SetGamma() argument 104 CalculateGammaRamp(red, ramp[0]); in SDL_SetGamma() 111 succeeded = video->SetGamma(this, red, green, blue); in SDL_SetGamma() 119 int SDL_GetGamma(float *red, float *green, float *blue) in SDL_GetGamma() argument 132 CalculateGammaFromRamp(red, ramp[0]); in SDL_GetGamma() 139 succeeded = video->GetGamma(this, red, green, blue); in SDL_GetGamma() 144 int SDL_SetGammaRamp(const Uint16 *red, const Uint16 *green, const Uint16 *blue) in SDL_SetGammaRamp() argument 163 if ( red ) { in SDL_SetGammaRamp() 164 SDL_memcpy(&video->gamma[0*256], red, 256*sizeof(*video->gamma)); in SDL_SetGammaRamp() 196 int SDL_GetGammaRamp(Uint16 *red, Uint16 *green, Uint16 *blue) in SDL_GetGammaRamp() argument [all …]
|
/external/skia/src/animator/ |
D | SkDrawColor.cpp | 25 SkScalar red = SkIntToScalar(SkColorGetR(color)); in RGB_to_HSV() local 28 SkScalar min = SkMinScalar(SkMinScalar(red, green), blue); in RGB_to_HSV() 29 SkScalar value = SkMaxScalar(SkMaxScalar(red, green), blue); in RGB_to_HSV() 41 if (red == value) { in RGB_to_HSV() 47 hue = 120 * SK_Scalar1 + SkScalarMul(blue - red, part60); in RGB_to_HSV() 49 hue = 240 * SK_Scalar1 + SkScalarMul(red - green, part60); in RGB_to_HSV() 65 SkScalar red SK_INIT_TO_AVOID_WARNING; in HSV_to_RGB() 69 red = green = blue = value; in HSV_to_RGB() 79 case 0: red = value; green = t; blue = p; break; in HSV_to_RGB() 80 case 1: red = q; green = value; blue = p; break; in HSV_to_RGB() [all …]
|
/external/skia/legacy/src/animator/ |
D | SkDrawColor.cpp | 25 SkScalar red = SkIntToScalar(SkColorGetR(color)); in RGB_to_HSV() local 28 SkScalar min = SkMinScalar(SkMinScalar(red, green), blue); in RGB_to_HSV() 29 SkScalar value = SkMaxScalar(SkMaxScalar(red, green), blue); in RGB_to_HSV() 41 if (red == value) { in RGB_to_HSV() 47 hue = 120 * SK_Scalar1 + SkScalarMul(blue - red, part60); in RGB_to_HSV() 49 hue = 240 * SK_Scalar1 + SkScalarMul(red - green, part60); in RGB_to_HSV() 65 SkScalar red SK_INIT_TO_AVOID_WARNING; in HSV_to_RGB() 69 red = green = blue = value; in HSV_to_RGB() 79 case 0: red = value; green = t; blue = p; break; in HSV_to_RGB() 80 case 1: red = q; green = value; blue = p; break; in HSV_to_RGB() [all …]
|
/external/libpng/ |
D | pngrtran.c | 499 int r = (palette[i].red >> (8 - PNG_DITHER_RED_BITS)); in png_set_dither() 676 png_set_rgb_to_gray(png_structp png_ptr, int error_action, double red, in png_set_rgb_to_gray() argument 682 if (red > 21474.83647 || red < -21474.83648 || in png_set_rgb_to_gray() 691 red_fixed = (int)((float)red*100000.0 + 0.5); in png_set_rgb_to_gray() 700 png_fixed_point red, png_fixed_point green) in png_set_rgb_to_gray_fixed() argument 729 if (red < 0 || green < 0) in png_set_rgb_to_gray_fixed() 734 else if (red + green < 100000L) in png_set_rgb_to_gray_fixed() 736 red_int = (png_uint_16)(((png_uint_32)red*32768L)/100000L); in png_set_rgb_to_gray_fixed() 815 png_ptr->background.red == png_ptr->background.green && in png_init_read_transformations() 816 png_ptr->background.red == png_ptr->background.blue) in png_init_read_transformations() [all …]
|
/external/qemu/distrib/libpng-1.2.19/ |
D | pngrtran.c | 475 int r = (palette[i].red >> (8 - PNG_DITHER_RED_BITS)); in png_set_dither() 643 png_set_rgb_to_gray(png_structp png_ptr, int error_action, double red, in png_set_rgb_to_gray() argument 646 int red_fixed = (int)((float)red*100000.0 + 0.5); in png_set_rgb_to_gray() 655 png_fixed_point red, png_fixed_point green) in png_set_rgb_to_gray_fixed() argument 678 if(red < 0 || green < 0) in png_set_rgb_to_gray_fixed() 683 else if(red + green < 100000L) in png_set_rgb_to_gray_fixed() 685 red_int = (png_uint_16)(((png_uint_32)red*32768L)/100000L); in png_set_rgb_to_gray_fixed() 757 png_ptr->background.red == png_ptr->background.green && in png_init_read_transformations() 758 png_ptr->background.red == png_ptr->background.blue) in png_init_read_transformations() 761 png_ptr->background.gray = png_ptr->background.red; in png_init_read_transformations() [all …]
|
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/texture/plugins/ |
D | TGALoader.java | 183 entry.red = (byte)(int)(getBitsAsByte(cMapData, offset, bitsPerColor) * scalar); in load() 211 byte red = 0; in load() 267 red = dis.readByte(); in load() 269 rawData[rawDataIndex++] = red; in load() 280 byte red = 0; in load() 301 red = dis.readByte(); in load() 304 rawData[rawDataIndex++] = red; in load() 315 red = dis.readByte(); in load() 317 rawData[rawDataIndex++] = red; in load() 340 red = dis.readByte(); in load() [all …]
|
/external/webkit/Source/WebCore/platform/graphics/gtk/ |
D | ColorGtk.cpp | 29 : m_color(makeRGB(c.red >> 8, c.green >> 8, c.blue >> 8)) in Color() 36 : m_color(makeRGBA(static_cast<int>(c.red * 255), in Color() 46 double red, green, blue, alpha; in operator GdkRGBA() local 47 getRGBA(red, green, blue, alpha); in operator GdkRGBA() 48 GdkRGBA rgba = { red, green, blue, alpha }; in operator GdkRGBA()
|
/external/ppp/pppd/plugins/ |
D | passwordfd.c | 35 int readgood, red; in pwfd_passwd() local 50 red = read (passwdfd, passwd + readgood, MAXSECRETLEN - 1 - readgood); in pwfd_passwd() 51 if (red == 0) in pwfd_passwd() 53 if (red < 0) { in pwfd_passwd() 58 readgood += red; in pwfd_passwd()
|
D | passprompt.c | 33 ssize_t red; in promptpass() local 73 red = read(p[0], passwd + readgood, MAXSECRETLEN-1 - readgood); in promptpass() 74 if (red == 0) in promptpass() 76 if (red < 0) { in promptpass() 83 readgood += red; in promptpass()
|
/external/libpng/contrib/gregbook/ |
D | rpng2-x.c | 1217 double red=0.0, green=0.0, blue=0.0, hue, s, v, f, p, q, t; in rpng2_x_load_bg_image() local 1273 if (ii == 0) { red = v; green = t; blue = p; } in rpng2_x_load_bg_image() 1274 else if (ii == 1) { red = q; green = v; blue = p; } in rpng2_x_load_bg_image() 1275 else if (ii == 2) { red = p; green = v; blue = t; } in rpng2_x_load_bg_image() 1276 else if (ii == 3) { red = p; green = q; blue = v; } in rpng2_x_load_bg_image() 1277 else if (ii == 4) { red = t; green = p; blue = v; } in rpng2_x_load_bg_image() 1278 else if (ii == 5) { red = v; green = p; blue = q; } in rpng2_x_load_bg_image() 1279 *dest++ = (uch)(red * 255.0); in rpng2_x_load_bg_image() 1294 ulg red, green, blue; in rpng2_x_load_bg_image() local 1302 red = *src++; in rpng2_x_load_bg_image() [all …]
|
D | readpng.c | 154 int readpng_get_bgcolor(uch *red, uch *green, uch *blue) in readpng_get_bgcolor() argument 182 *red = pBackground->red >> 8; in readpng_get_bgcolor() 187 *red = *green = *blue = pBackground->gray? 255 : 0; in readpng_get_bgcolor() 189 *red = *green = *blue = (255/3) * pBackground->gray; in readpng_get_bgcolor() 191 *red = *green = *blue = (255/15) * pBackground->gray; in readpng_get_bgcolor() 193 *red = (uch)pBackground->red; in readpng_get_bgcolor()
|
D | rpng-x.c | 706 ulg red, green, blue; in rpng_x_display_image() local 713 red = *src++; in rpng_x_display_image() 717 pixel = (red << RShift) | in rpng_x_display_image() 727 red = (RShift < 0)? red << (-RShift) : red >> RShift; in rpng_x_display_image() 730 pixel = (red & RMask) | (green & GMask) | (blue & BMask); in rpng_x_display_image() 745 red = r; in rpng_x_display_image() 749 red = bg_red; in rpng_x_display_image() 756 alpha_composite(red, r, a, bg_red); in rpng_x_display_image() 760 pixel = (red << RShift) | in rpng_x_display_image() 780 ush red, green, blue; in rpng_x_display_image() local [all …]
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowColor.java | 11 public static int rgb(int red, int green, int blue) { in rgb() argument 12 return argb(0xff, red, green, blue); in rgb() 16 public static int argb(int alpha, int red, int green, int blue) { in argb() argument 17 return (alpha << 24) | (red << 16) | (green << 8) | blue; in argb()
|
/external/webkit/Source/WebCore/svg/ |
D | ColorDistance.cpp | 37 : m_redDiff(toColor.red() - fromColor.red()) in ColorDistance() 68 return Color(clampColorValue(first.red() + second.red()), in addColorsAndClamp() 75 return Color(clampColorValue(color.red() + m_redDiff), in addToColorAndClamp()
|
/external/eigen/blas/testing/ |
D | runblastest.sh | 4 red='\E[31m' 21 echo -e $red Test $1 failed: $black 29 echo -e $red "Test $1 failed (FATAL ERROR, read the file $1.summ for details)" $black 37 …echo -e $red "Test $1 failed (FAILED THE TESTS OF ERROR-EXITS, read the file $1.summ for details)…
|
/external/v8/benchmarks/ |
D | raytrace.js | 80 red : 0.0, property in Flog.RayTracer.Color 89 this.red = r; 97 result.red = c1.red + c2.red; 107 result.red = c1.red + s; 119 result.red = c1.red - c2.red; 129 result.red = c1.red * c2.red; 139 result.red = c1.red * f; 149 result.red = c1.red / f; 157 this.red = (this.red > 0.0) ? ( (this.red > 1.0) ? 1.0 : this.red ) : 0.0; 163 …var d = Math.abs(this.red - color.red) + Math.abs(this.green - color.green) + Math.abs(this.blue -… [all …]
|
/external/webkit/PerformanceTests/SunSpider/tests/v8-v6/ |
D | v8-raytrace.js | 75 red : 0.0, property in Flog.RayTracer.Color 84 this.red = r; 92 result.red = c1.red + c2.red; 102 result.red = c1.red + s; 114 result.red = c1.red - c2.red; 124 result.red = c1.red * c2.red; 134 result.red = c1.red * f; 144 result.red = c1.red / f; 152 this.red = (this.red > 0.0) ? ( (this.red > 1.0) ? 1.0 : this.red ) : 0.0; 158 …var d = Math.abs(this.red - color.red) + Math.abs(this.green - color.green) + Math.abs(this.blue -… [all …]
|
/external/webkit/Source/WebCore/platform/graphics/ |
D | Color.cpp | 157 int dR = c1.red() - c2.red(); in differenceSquared() 192 appendByteAsHex(red(), builder, Lowercase); in serialized() 202 appendNumber(result, red()); in serialized() 222 return String::format("#%02X%02X%02X%02X", red(), green(), blue(), alpha()); in nameForRenderTreeAsText() 223 return String::format("#%02X%02X%02X", red(), green(), blue()); in nameForRenderTreeAsText() 317 int r = (red() * alpha() * (255 - source.alpha()) + 255 * source.alpha() * source.red()) / d; in blend() 333 int r = blendComponent(red(), alpha); in blendWithWhite() 347 r = red() / 255.0f; in getRGBA() 355 r = red() / 255.0; in getRGBA() 366 double r = static_cast<double>(red()) / 255.0; in getHSL() [all …]
|
/external/webkit/PerformanceTests/SunSpider/tests/v8-v4/ |
D | v8-raytrace.js | 75 red : 0.0, property in Flog.RayTracer.Color 84 this.red = r; 92 result.red = c1.red + c2.red; 102 result.red = c1.red + s; 114 result.red = c1.red - c2.red; 124 result.red = c1.red * c2.red; 134 result.red = c1.red * f; 144 result.red = c1.red / f; 152 this.red = (this.red > 0.0) ? ( (this.red > 1.0) ? 1.0 : this.red ) : 0.0; 158 …var d = Math.abs(this.red - color.red) + Math.abs(this.green - color.green) + Math.abs(this.blue -… [all …]
|
/external/webkit/PerformanceTests/SunSpider/tests/v8-v5/ |
D | v8-raytrace.js | 75 red : 0.0, property in Flog.RayTracer.Color 84 this.red = r; 92 result.red = c1.red + c2.red; 102 result.red = c1.red + s; 114 result.red = c1.red - c2.red; 124 result.red = c1.red * c2.red; 134 result.red = c1.red * f; 144 result.red = c1.red / f; 152 this.red = (this.red > 0.0) ? ( (this.red > 1.0) ? 1.0 : this.red ) : 0.0; 158 …var d = Math.abs(this.red - color.red) + Math.abs(this.green - color.green) + Math.abs(this.blue -… [all …]
|
/external/eigen/test/eigen2/ |
D | runtest.sh | 4 red='\E[31m' 14 echo -e $red Test $1 failed: $black 23 echo -e $red Build of target $1 failed: $black
|
/external/webkit/Source/WebCore/platform/graphics/cairo/ |
D | FontCairo.cpp | 136 float red, green, blue, alpha; in drawGlyphs() local 137 context->fillColor().getRGBA(red, green, blue, alpha); in drawGlyphs() 138 cairo_set_source_rgba(cr, red, green, blue, alpha * context->getAlpha()); in drawGlyphs() 166 float red, green, blue, alpha; in drawGlyphs() local 167 context->strokeColor().getRGBA(red, green, blue, alpha); in drawGlyphs() 168 cairo_set_source_rgba(cr, red, green, blue, alpha * context->getAlpha()); in drawGlyphs()
|