/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/ |
D | focus_peak.rs | 57 int4 rgb; 58 rgb.r = mergedPixel.r + 60 rgb.g = mergedPixel.r - 63 rgb.b = mergedPixel.r + 65 rgb.a = 255; 68 uchar4 out = convert_uchar4(clamp(rgb, 0, 255));
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | shadows.rs | 51 static ushort3 rgb2hsv( uchar4 rgb) 55 int ri = rgb.r; 56 int gi = rgb.g; 57 int bi = rgb.b; 170 uchar4 rgb; 172 rgb.r = rr; 173 rgb.g = rg; 174 rgb.b = rb; 176 return rgb;
|
D | exposure.rs | 29 float3 t = convert_float3(in.rgb); 30 out.rgb = convert_uchar3(clamp(convert_int3(t * bright), 0, 255));
|
D | contrast.rs | 29 float3 v = convert_float3(in.rgb) * brightM + brightC; 31 o.rgb = convert_uchar3(clamp(v, 0.f, 255.f));
|
D | greyscale.rs | 25 float3 mono = dot(f4.rgb, gMonoMult); 31 return (uchar)dot(f4.rgb, gMonoMult);
|
D | levels.rsh | 26 float3 pixel = convert_float4(in).rgb; 39 pixel.rgb = rsMatrixMultiply(&colorMat, pixel.rgb);
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | shadows.rs | 51 static ushort3 rgb2hsv( uchar4 rgb) 55 int ri = rgb.r; 56 int gi = rgb.g; 57 int bi = rgb.b; 170 uchar4 rgb; 172 rgb.r = rr; 173 rgb.g = rg; 174 rgb.b = rb; 176 return rgb;
|
D | exposure.rs | 29 float3 t = convert_float3(in.rgb); 30 out.rgb = convert_uchar3(clamp(convert_int3(t * bright), 0, 255));
|
D | contrast.rs | 29 float3 v = convert_float3(in.rgb) * brightM + brightC; 31 o.rgb = convert_uchar3(clamp(v, 0.f, 255.f));
|
D | greyscale.rs | 25 float3 mono = dot(f4.rgb, gMonoMult); 31 return (uchar)dot(f4.rgb, gMonoMult);
|
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/ |
D | shadows_f.rs | 51 static ushort3 rgb2hsv( float4 rgb) 55 int ri = rgb.r; 56 int gi = rgb.g; 57 int bi = rgb.b; 170 float4 rgb; 172 rgb.r = rr; 173 rgb.g = rg; 174 rgb.b = rb; 176 return rgb;
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | shadows.rs | 51 static ushort3 rgb2hsv( uchar4 rgb) 55 int ri = rgb.r; 56 int gi = rgb.g; 57 int bi = rgb.b; 170 uchar4 rgb; 172 rgb.r = rr; 173 rgb.g = rg; 174 rgb.b = rb; 176 return rgb;
|
D | contrast.rs | 29 float3 v = convert_float3(in.rgb) * brightM + brightC; 31 o.rgb = convert_uchar3(clamp(v, 0.f, 255.f));
|
D | greyscale.rs | 25 float3 mono = dot(f4.rgb, gMonoMult); 31 return (uchar)dot(f4.rgb, gMonoMult);
|
D | levels.rsh | 26 float3 pixel = convert_float4(in).rgb; 39 pixel.rgb = rsMatrixMultiply(&colorMat, pixel.rgb);
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | Color_Delegate.java | 37 …java.awt.Color rgb = new java.awt.Color(java.awt.Color.HSBtoRGB(hsv[0] / 360, pin(hsv[1]), pin(hsv… in nativeHSVToColor() local 38 return Color.argb(alpha, rgb.getRed(), rgb.getGreen(), rgb.getBlue()); in nativeHSVToColor()
|
/frameworks/base/libs/hwui/utils/ |
D | Color.cpp | 187 float3 rgb; in sRGBToLab() local 188 rgb.r = SkColorGetR(color) / 255.0f; in sRGBToLab() 189 rgb.g = SkColorGetG(color) / 255.0f; in sRGBToLab() 190 rgb.b = SkColorGetB(color) / 255.0f; in sRGBToLab() 191 float3 xyz = colorSpace.rgbToXYZ(rgb); in sRGBToLab() 202 float3 rgb = colorSpace.xyzToRGB(xyz); in LabToSRGB() local 204 static_cast<uint8_t>(rgb.r * 255), in LabToSRGB() 205 static_cast<uint8_t>(rgb.g * 255), in LabToSRGB() 206 static_cast<uint8_t>(rgb.b * 255)); in LabToSRGB()
|
/frameworks/base/core/res/res/raw/ |
D | color_fade_frag.frag | 12 vec3 rgb = pow(color.rgb * opacity, vec3(gamma)); 13 gl_FragColor = vec4(rgb, 1.0);
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | Material.java | 111 int rgb = Color.HSVToColor(new float[]{360 * h, s, f}); in setup() local 112 red[i] = (rgb >> 16) & 0xff; in setup() 113 green[i] = (rgb >> 8) & 0xff; in setup() 114 blue[i] = (rgb >> 0) & 0xff; in setup() 151 int rgb = material[i][1] & 0xFFFFFF; in setup() local 161 mMaterialProp[i].mRed = (rgb >> 16) & 0xff; in setup() 162 mMaterialProp[i].mGreen = (rgb >> 8) & 0xff; in setup() 163 mMaterialProp[i].mBlue = (rgb >> 0) & 0xff; in setup() 193 int rgb = (int) (Math.random() * 0xFFFFFF); in setup() local 194 mMaterialProp[i].mRed = (rgb >> 16) & 0xff; in setup() [all …]
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/ |
D | Palette.kt | 30 private fun lum(rgb: Int): Float { in lum() 31 return (Color.red(rgb) * 299f + Color.green(rgb) * 587f + Color.blue(rgb) * 114f) / 1000f in lum()
|
/frameworks/base/graphics/java/android/graphics/ |
D | ColorSpace.java | 1334 ColorSpace.Rgb rgb = (ColorSpace.Rgb) colorSpace; in adapt() local 1335 if (compare(rgb.mWhitePoint, whitePoint)) return colorSpace; in adapt() 1340 xyYToXyz(rgb.getWhitePoint()), xyz); in adapt() 1341 float[] transform = mul3x3(adaptationTransform, rgb.mTransform); in adapt() 1343 return new ColorSpace.Rgb(rgb, transform, whitePoint); in adapt() 1427 ColorSpace.Rgb rgb = (ColorSpace.Rgb) adapt(colorSpace, ILLUMINANT_D50_XYZ); in match() local 1428 if (compare(toXYZD50, rgb.mTransform) && in match() 1429 compare(function, rgb.mTransferParameters)) { in match() 3210 Rgb rgb = (Rgb) o; in equals() 3212 if (Float.compare(rgb.mMin, mMin) != 0) return false; in equals() [all …]
|
/frameworks/av/media/libstagefright/filters/ |
D | saturationARGB.rs | 30 float3 rgb = {v_in->y * 0.003921569f, v_in->z * 0.003921569f, 34 float3 result = dot(rgb, gMonoMult); 35 result = mix(result, rgb, gSaturation);
|
/frameworks/av/cmds/stagefright/filters/ |
D | saturation.rs | 30 float3 rgb = {v_in->y * 0.003921569f, v_in->z * 0.003921569f, 34 float3 result = dot(rgb, gMonoMult); 35 result = mix(result, rgb, gSaturation);
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | ImageUtils.java | 117 int rgb = image.getRGB(x, y); in assertImageSimilar() local 118 if (goldenRgb == rgb) { in assertImageSimilar() 124 if (((goldenRgb & 0xFF000000) == 0) && (rgb & 0xFF000000) == 0) { in assertImageSimilar() 129 int deltaR = ((rgb & 0xFF0000) >>> 16) - ((goldenRgb & 0xFF0000) >>> 16); in assertImageSimilar() 131 int deltaG = ((rgb & 0x00FF00) >>> 8) - ((goldenRgb & 0x00FF00) >>> 8); in assertImageSimilar() 133 int deltaB = (rgb & 0x0000FF) - (goldenRgb & 0x0000FF); in assertImageSimilar() 137 + ((rgb & 0xFF000000) >>> 24)) / 2) << 24; in assertImageSimilar()
|
/frameworks/native/services/surfaceflinger/Effects/ |
D | Daltonizer.cpp | 79 const vec3& lms_r(rgb2lms[0].rgb); in update() 81 const vec3& lms_b(rgb2lms[2].rgb); in update() 83 const vec3 lms_w((rgb2lms * vec4(1)).rgb); in update()
|