Home
last modified time | relevance | path

Searched refs:hue (Results 1 – 25 of 72) sorted by relevance

123

/external/ImageMagick/MagickCore/
Dgem.c88 MagickPrivate void ConvertHCLToRGB(const double hue,const double chroma, in ConvertHCLToRGB() argument
106 h=6.0*hue; in ConvertHCLToRGB()
181 MagickPrivate void ConvertHCLpToRGB(const double hue,const double chroma, in ConvertHCLpToRGB() argument
200 h=6.0*hue; in ConvertHCLpToRGB()
286 MagickPrivate void ConvertHSBToRGB(const double hue,const double saturation, in ConvertHSBToRGB() argument
309 h=6.0*(hue-floor(hue)); in ConvertHSBToRGB()
389 MagickPrivate void ConvertHSIToRGB(const double hue,const double saturation, in ConvertHSIToRGB() argument
404 h=360.0*hue; in ConvertHSIToRGB()
462 MagickExport void ConvertHSLToRGB(const double hue,const double saturation, in ConvertHSLToRGB() argument
477 h=hue*360.0; in ConvertHSLToRGB()
[all …]
Denhance.c1374 hue, in Contrast() local
1383 hue=0.0; in Contrast()
1386 ConvertRGBToHSB(*red,*green,*blue,&hue,&saturation,&brightness); in Contrast()
1394 ConvertHSBToRGB(hue,saturation,brightness,red,green,blue); in Contrast()
3446 hue, in ModulateHCL() local
3453 ConvertRGBToHCL(*red,*green,*blue,&hue,&chroma,&luma); in ModulateHCL()
3454 hue+=fmod((percent_hue-100.0),200.0)/200.0; in ModulateHCL()
3457 ConvertHCLToRGB(hue,chroma,luma,red,green,blue); in ModulateHCL()
3465 hue, in ModulateHCLp() local
3472 ConvertRGBToHCLp(*red,*green,*blue,&hue,&chroma,&luma); in ModulateHCLp()
[all …]
Dcomposite.c181 static void HCLComposite(const MagickRealType hue,const MagickRealType chroma, in HCLComposite() argument
200 h=6.0*hue; in HCLComposite()
248 const MagickRealType blue,MagickRealType *hue,MagickRealType *chroma, in CompositeHCL() argument
262 assert(hue != (MagickRealType *) NULL); in CompositeHCL()
282 *hue=(h/6.0); in CompositeHCL()
1233 hue, local
1283 hue=0.0;
1779 &hue,&chroma,&sans);
1780 HCLComposite(hue,chroma,luma,&red,&green,&blue);
1949 &hue,&chroma,&luma);
[all …]
Daccelerate-kernels-private.h1051 float hue=pixel.x;
1063 float h=6.0f*(hue-floor(hue));
1976 float *hue, float *saturation, float *lightness)
1994 *hue=0.0;
2001 *hue=(QuantumScale*green-QuantumScale*blue)/c;
2003 *hue+=6.0;
2007 *hue=2.0+(QuantumScale*blue-QuantumScale*red)/c;
2009 *hue=4.0+(QuantumScale*red-QuantumScale*green)/c;
2011 *hue*=60.0/360.0;
2018 inline void ConvertHSLToRGB(const float hue,const float saturation, const float lightness,
[all …]
/external/python/cpython3/Lib/
Dcolorsys.py108 def _v(m1, m2, hue): argument
109 hue = hue % 1.0
110 if hue < ONE_SIXTH:
111 return m1 + (m2-m1)*hue*6.0
112 if hue < 0.5:
114 if hue < TWO_THIRD:
115 return m1 + (m2-m1)*(TWO_THIRD-hue)*6.0
/external/python/cpython2/Lib/
Dcolorsys.py100 def _v(m1, m2, hue): argument
101 hue = hue % 1.0
102 if hue < ONE_SIXTH:
103 return m1 + (m2-m1)*hue*6.0
104 if hue < 0.5:
106 if hue < TWO_THIRD:
107 return m1 + (m2-m1)*(TWO_THIRD-hue)*6.0
/external/ImageMagick/Magick++/lib/
DColor.cpp628 void Magick::ColorHSL::hue(const double hue_) in hue() function in Magick::ColorHSL
631 hue, in hue() local
640 ConvertRGBToHSL(quantumRed(),quantumGreen(),quantumBlue(),&hue,&saturation, in hue()
643 hue=hue_; in hue()
645 ConvertHSLToRGB(hue,saturation,lightness,&red,&green,&blue); in hue()
652 double Magick::ColorHSL::hue(void) const in hue() function in Magick::ColorHSL
655 hue, in hue() local
659 ConvertRGBToHSL(quantumRed(),quantumGreen(),quantumBlue(),&hue,&saturation, in hue()
662 return(hue); in hue()
668 hue, in lightness() local
[all …]
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dimage_ops.cc55 auto hue = in RGBToHSV() local
61 hue = xla::Select(xla::Eq(red, value), xla::Mul(norm, xla::Sub(green, blue)), in RGBToHSV()
62 hue); in RGBToHSV()
63 hue = xla::Select(xla::Gt(range, zero), hue, zeros); in RGBToHSV()
64 hue = xla::Select(xla::Lt(hue, zero), xla::Add(hue, one), hue); in RGBToHSV()
65 return {hue, saturation, value}; in RGBToHSV()
72 xla::XlaOp hue = hsv[0]; in HSVToRGB() local
82 auto dh = xla::Mul(hue, six); in HSVToRGB()
150 xla::XlaOp hue = xla::SliceInDim(input, /*start_index=*/0, in Compile() local
160 auto rgb = HSVToRGB(context->builder(), {hue, saturation, value}, in Compile()
[all …]
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_AdjustHue.pbtxt12 A float delta to add to the hue.
18 The hue-adjusted image or images.
21 summary: "Adjust the hue of one or more images."
27 colors are first mapped into HSV. A delta is then applied all the hue values,
Dapi_def_RGBToHSV.pbtxt21 `output[..., 0]` contains hue, `output[..., 1]` contains saturation, and
22 `output[..., 2]` contains value. All HSV values are in `[0,1]`. A hue of 0
23 corresponds to pure red, hue 1/3 is pure green, and 2/3 is pure blue.
/external/perfetto/ui/src/tracks/counter/
Dfrontend.ts93 const hue = (180 - Math.floor(expCapped * (180 / 6)) + 360) % 360; constant
95 ctx.fillStyle = `hsl(${hue}, 45%, 75%)`;
96 ctx.strokeStyle = `hsl(${hue}, 45%, 45%)`;
117 ctx.strokeStyle = `hsl(${hue}, 10%, 15%)`;
134 ctx.fillStyle = `hsl(${hue}, 45%, 75%)`;
135 ctx.strokeStyle = `hsl(${hue}, 45%, 45%)`;
/external/perfetto/ui/src/tracks/cpu_freq/
Dfrontend.ts88 const hue = hueForCpu(this.config.cpu); constant
93 ctx.fillStyle = `hsl(${hue}, ${saturation}%, 70%)`;
94 ctx.strokeStyle = `hsl(${hue}, ${saturation}%, 55%)`;
143 ctx.fillStyle = `hsl(${hue}, 45%, 75%)`;
144 ctx.strokeStyle = `hsl(${hue}, 45%, 45%)`;
/external/ImageMagick/tests/
Dvalidate.c95 static void ConvertHSIToRGB(const double hue,const double saturation, in ConvertHSIToRGB() argument
101 h=360.0*hue; in ConvertHSIToRGB()
133 const double blue,double *hue,double *saturation,double *intensity) in ConvertRGBToHSI() argument
142 *hue=0.0; in ConvertRGBToHSI()
150 *hue=atan2(beta,alpha)*(180.0/MagickPI)/360.0; in ConvertRGBToHSI()
151 if (*hue < 0.0) in ConvertRGBToHSI()
152 *hue+=1.0; in ConvertRGBToHSI()
155 static void ConvertHSVToRGB(const double hue,const double saturation, in ConvertHSVToRGB() argument
164 h=hue*360.0; in ConvertHSVToRGB()
364 const double hue,double *X,double *Y,double *Z) in ConvertLCHabToXYZ() argument
[all …]
/external/ImageMagick/coders/
Dsixel.c147 static int hue_to_rgb(int n1, int n2, int hue) in hue_to_rgb() argument
151 if (hue < 0) { in hue_to_rgb()
152 hue += HLSMAX; in hue_to_rgb()
155 if (hue > HLSMAX) { in hue_to_rgb()
156 hue -= HLSMAX; in hue_to_rgb()
159 if (hue < (HLSMAX / 6)) { in hue_to_rgb()
160 return (n1 + (((n2 - n1) * hue + (HLSMAX / 12)) / (HLSMAX / 6))); in hue_to_rgb()
162 if (hue < (HLSMAX / 2)) { in hue_to_rgb()
165 if (hue < ((HLSMAX * 2) / 3)) { in hue_to_rgb()
166 return (n1 + (((n2 - n1) * (((HLSMAX * 2) / 3) - hue) + (HLSMAX / 12))/(HLSMAX / 6))); in hue_to_rgb()
[all …]
/external/dng_sdk/source/
Ddng_camera_profile.cpp379 for (uint32 hue = 0; hue < hues; hue++) in FingerprintHueSatMap() local
385 map.GetDelta (hue, sat, val, modify); in FingerprintHueSatMap()
878 for (uint32 hue = 0; hue < hues; hue++) in ReadHueSatMap() local
890 hueSatMap.SetDelta (hue, sat, val, modify); in ReadHueSatMap()
/external/libpng/contrib/gregbook/
Drpng2-x.c1230 double red=0.0, green=0.0, blue=0.0, hue, s, v, f, p, q, t; in rpng2_x_load_bg_image() local
1267 hue = (angle + PI) * INV_PI_360 + aoffset; in rpng2_x_load_bg_image()
1278 if ((hue < 0.0) || (hue >= 360.0)) in rpng2_x_load_bg_image()
1279 hue -= (((int)(hue / 360.0)) * 360.0); in rpng2_x_load_bg_image()
1280 hue /= 60.0; in rpng2_x_load_bg_image()
1281 ii = (int)hue; in rpng2_x_load_bg_image()
1282 f = hue - (double)ii; in rpng2_x_load_bg_image()
2002 double red=0.0, green=0.0, blue=0.0, hue, s, v, f, p, q, t; in rpng2_x_reload_bg_image() local
2035 hue = (angle + PI) * INV_PI_360 + aoffset; in rpng2_x_reload_bg_image()
2046 if ((hue < 0.0) || (hue >= 360.0)) in rpng2_x_reload_bg_image()
[all …]
Drpng2-win.c978 double red=0.0, green=0.0, blue=0.0, hue, s, v, f, p, q, t;
1015 hue = (angle + PI) * INV_PI_360 + aoffset;
1026 if ((hue < 0.0) || (hue >= 360.0))
1027 hue -= (((int)(hue / 360.0)) * 360.0);
1028 hue /= 60.0;
1029 ii = (int)hue;
1030 f = hue - (double)ii;
/external/skqp/docs/
DSkBlendMode_Reference.bmh192 #Line # hue of source with saturation and luminosity of destination ##
194 Replaces hue of destination with hue of source, leaving saturation and luminosity
199 #Line # saturation of source with hue and luminosity of destination ##
201 Replaces saturation of destination saturation hue of source, leaving hue and
206 #Line # hue and saturation of source with luminosity of destination ##
208 Replaces hue and saturation of destination with hue and saturation of source,
213 #Line # luminosity of source with hue and saturation of destination ##
215 Replaces luminosity of destination with luminosity of source, leaving hue and
826 #Line # hue of source with saturation and luminosity of destination ##
831 source hue, leaving destination luminosity and saturation unchanged.
[all …]
/external/skia/docs/
DSkBlendMode_Reference.bmh192 #Line # hue of source with saturation and luminosity of destination ##
194 Replaces hue of destination with hue of source, leaving saturation and luminosity
199 #Line # saturation of source with hue and luminosity of destination ##
201 Replaces saturation of destination saturation hue of source, leaving hue and
206 #Line # hue and saturation of source with luminosity of destination ##
208 Replaces hue and saturation of destination with hue and saturation of source,
213 #Line # luminosity of source with hue and saturation of destination ##
215 Replaces luminosity of destination with luminosity of source, leaving hue and
826 #Line # hue of source with saturation and luminosity of destination ##
831 source hue, leaving destination luminosity and saturation unchanged.
[all …]
/external/mesa3d/src/gallium/state_trackers/xvmc/
Dattributes.c100 context_priv->procamp.hue = value / 1000.0f; in XvMCSetAttribute()
144 *value = context_priv->procamp.hue * 1000; in XvMCGetAttribute()
/external/perfetto/ui/src/tracks/chrome_slices/
Dfrontend.ts97 const hue = hash(cat); constant
99 ctx.fillStyle = `hsl(${hue}, ${saturation}%, ${hovered ? 30 : 65}%)`;
/external/ImageMagick/www/source/
Danalyze.c97 hue, in analyzeImage() local
169 GetPixelBlue(p),&hue,&saturation,&brightness); in analyzeImage()
/external/ImageMagick/filters/
Danalyze.c97 hue, in analyzeImage() local
166 GetPixelBlue(image,p),&hue,&saturation,&brightness); in analyzeImage()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_csc.h40 float hue; member
/external/perfetto/ui/src/tracks/cpu_slices/
Dfrontend.ts46 private hue: number;
51 this.hue = hueForCpu(this.config.cpu);
94 ctx.fillStyle = `hsl(${this.hue}, 50%, 60%)`;

123