/aosp_15_r20/frameworks/base/graphics/java/android/graphics/ |
H A D | Color.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 38 * <p>The <code>Color</code> class provides methods for creating, converting and 41 * <li>Color ints, the most common representation</li> 42 * <li>Color longs</li> 43 * <li><code>Color</code> instances</li> 47 * <h3>Color ints</h3> 48 * <p>Color ints are the most common representation of colors on Android and 51 * <p>A color int always defines a color in the {@link ColorSpace.Named#SRGB sRGB} 52 * color space using 4 components packed in a single 32 bit integer value:</p> 54 * <table summary="Color int definition"> [all …]
|
/aosp_15_r20/external/deqp-deps/glslang/Test/baseResults/ |
D | hlsl.logical.unary.frag.out | 5 0:12 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color}) 9 0:13 Convert int to bool ( temp bool) 11 … uniform block{ uniform int ival, uniform 4-component vector of int ival4, uniform float fval, … 14 0:14 Negate conditional ( temp 4-component vector of bool) 15 0:14 Convert int to bool ( temp 4-component vector of bool) 16 0:14 ival4: direct index for structure ( uniform 4-component vector of int) 17 … uniform block{ uniform int ival, uniform 4-component vector of int ival4, uniform float fval, … 21 0:16 Convert float to bool ( temp bool) 23 … uniform block{ uniform int ival, uniform 4-component vector of int ival4, uniform float fval, … 26 0:17 Negate conditional ( temp 4-component vector of bool) [all …]
|
D | hlsl.intrinsics.promote.outputs.frag.out | 5 0:20 Function Definition: @main( ( temp structure{ temp 4-component vector of float color}) 10 …ol b, uniform 2-component vector of int i2, uniform 2-component vector of uint u2, uniform 2-co… 26 0:40 Convert uint to int ( temp int) 37 0:41 Convert uint to int ( temp int) 55 0:42 Convert uint to int ( temp int) 67 0:43 Convert uint to int ( temp int) 71 0:43 Convert uint to int ( temp int) 74 0:47 move second child to first child ( temp 4-component vector of float) 75 0:47 color: direct index for structure ( temp 4-component vector of float) 76 0:47 'ps_output' ( temp structure{ temp 4-component vector of float color}) [all …]
|
D | hlsl.logical.binary.frag.out | 5 0:12 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color}) 10 0:13 logical-and ( temp bool) 11 0:13 Convert int to bool ( temp bool) 13 … uniform block{ uniform int ival, uniform 4-component vector of int ival4, uniform float fval, … 16 0:13 Convert float to bool ( temp bool) 18 … uniform block{ uniform int ival, uniform 4-component vector of int ival4, uniform float fval, … 24 0:14 logical-or ( temp bool) 25 0:14 Convert int to bool ( temp bool) 27 … uniform block{ uniform int ival, uniform 4-component vector of int ival4, uniform float fval, … 30 0:14 Convert float to bool ( temp bool) [all …]
|
D | hlsl.promote.binary.frag.out | 5 0:14 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color}) 9 0:15 Convert int to float ( temp float) 11 …l, uniform 4-component vector of bool bval4, uniform int ival, uniform 4-component vector of in… 15 …l, uniform 4-component vector of bool bval4, uniform int ival, uniform 4-component vector of in… 18 0:16 mod ( temp 4-component vector of float) 19 0:16 Convert int to float ( temp 4-component vector of float) 20 0:16 ival4: direct index for structure ( uniform 4-component vector of int) 21 …l, uniform 4-component vector of bool bval4, uniform int ival, uniform 4-component vector of in… 24 0:16 fval4: direct index for structure ( uniform 4-component vector of float) 25 …l, uniform 4-component vector of bool bval4, uniform int ival, uniform 4-component vector of in… [all …]
|
D | functionSemantics.frag.out | 2 ERROR: 0:74: 'return' : cannot convert return value to function return type 54 0:17 component-wise multiply ( temp int) 59 0:17 component-wise multiply ( temp int) 70 0:23 'b' ( in 3-component vector of float) 75 0:25 Convert float to int ( temp int) 76 0:25 component-wise multiply ( temp float) 81 0:26 Convert float to int ( temp int) 82 0:26 component-wise multiply ( temp float) 86 0:26 'b' ( in 3-component vector of float) 117 0:46 t: direct index for structure ( temp 4-component vector of int) [all …]
|
/aosp_15_r20/external/angle/third_party/glslang/src/Test/baseResults/ |
H A D | hlsl.logical.unary.frag.out | 5 0:12 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color}) 9 0:13 Convert int to bool ( temp bool) 11 … uniform block{ uniform int ival, uniform 4-component vector of int ival4, uniform float fval, … 14 0:14 Negate conditional ( temp 4-component vector of bool) 15 0:14 Convert int to bool ( temp 4-component vector of bool) 16 0:14 ival4: direct index for structure ( uniform 4-component vector of int) 17 … uniform block{ uniform int ival, uniform 4-component vector of int ival4, uniform float fval, … 21 0:16 Convert float to bool ( temp bool) 23 … uniform block{ uniform int ival, uniform 4-component vector of int ival4, uniform float fval, … 26 0:17 Negate conditional ( temp 4-component vector of bool) [all …]
|
H A D | hlsl.intrinsics.promote.outputs.frag.out | 5 0:20 Function Definition: @main( ( temp structure{ temp 4-component vector of float color}) 10 …ol b, uniform 2-component vector of int i2, uniform 2-component vector of uint u2, uniform 2-co… 26 0:40 Convert uint to int ( temp int) 37 0:41 Convert uint to int ( temp int) 55 0:42 Convert uint to int ( temp int) 67 0:43 Convert uint to int ( temp int) 71 0:43 Convert uint to int ( temp int) 74 0:47 move second child to first child ( temp 4-component vector of float) 75 0:47 color: direct index for structure ( temp 4-component vector of float) 76 0:47 'ps_output' ( temp structure{ temp 4-component vector of float color}) [all …]
|
H A D | hlsl.logical.binary.frag.out | 5 0:12 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color}) 10 0:13 logical-and ( temp bool) 11 0:13 Convert int to bool ( temp bool) 13 … uniform block{ uniform int ival, uniform 4-component vector of int ival4, uniform float fval, … 16 0:13 Convert float to bool ( temp bool) 18 … uniform block{ uniform int ival, uniform 4-component vector of int ival4, uniform float fval, … 24 0:14 logical-or ( temp bool) 25 0:14 Convert int to bool ( temp bool) 27 … uniform block{ uniform int ival, uniform 4-component vector of int ival4, uniform float fval, … 30 0:14 Convert float to bool ( temp bool) [all …]
|
H A D | hlsl.promote.binary.frag.out | 5 0:14 Function Definition: @main( ( temp structure{ temp 4-component vector of float Color}) 9 0:15 Convert int to float ( temp float) 11 …l, uniform 4-component vector of bool bval4, uniform int ival, uniform 4-component vector of in… 15 …l, uniform 4-component vector of bool bval4, uniform int ival, uniform 4-component vector of in… 18 0:16 mod ( temp 4-component vector of float) 19 0:16 Convert int to float ( temp 4-component vector of float) 20 0:16 ival4: direct index for structure ( uniform 4-component vector of int) 21 …l, uniform 4-component vector of bool bval4, uniform int ival, uniform 4-component vector of in… 24 0:16 fval4: direct index for structure ( uniform 4-component vector of float) 25 …l, uniform 4-component vector of bool bval4, uniform int ival, uniform 4-component vector of in… [all …]
|
H A D | functionSemantics.frag.out | 2 ERROR: 0:74: 'return' : cannot convert return value to function return type 54 0:17 component-wise multiply ( temp int) 59 0:17 component-wise multiply ( temp int) 70 0:23 'b' ( in 3-component vector of float) 75 0:25 Convert float to int ( temp int) 76 0:25 component-wise multiply ( temp float) 81 0:26 Convert float to int ( temp int) 82 0:26 component-wise multiply ( temp float) 86 0:26 'b' ( in 3-component vector of float) 117 0:46 t: direct index for structure ( temp 4-component vector of int) [all …]
|
/aosp_15_r20/frameworks/base/core/java/com/android/internal/graphics/ |
H A D | ColorUtils.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 23 import android.graphics.Color; 28 * Copied from: frameworks/support/core-utils/java/android/support/v4/graphics/ColorUtils.java 30 * A set of color-related utility methods, building upon those available in {@code Color}. 52 int bgAlpha = Color.alpha(background); in compositeColors() 53 int fgAlpha = Color.alpha(foreground); in compositeColors() 56 int r = compositeComponent(Color.red(foreground), fgAlpha, in compositeColors() 57 Color.red(background), bgAlpha, a); in compositeColors() 58 int g = compositeComponent(Color.green(foreground), fgAlpha, in compositeColors() 59 Color.green(background), bgAlpha, a); in compositeColors() [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/lite/g3doc/r1/convert/ |
H A D | cmdline_examples.md | 8 ## Command-line tools <a name="tools"></a> 17 * *Example*: `tflite_convert --output_file=...` 21 * *Example*: `bazel run tensorflow/lite/python:tflite_convert -- 22 --output_file=...` 26 tensorflow/lite/python:tflite_convert --`'* 32 was available (run `toco --help` for additional details). 44 | tar xzv -C /tmp 48 | tar xzv -C /tmp 53 The following section shows examples of how to convert a basic model from each 56 #### Convert a SavedModel <a name="savedmodel"></a> [all …]
|
/aosp_15_r20/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
H A D | WideColorGamutTests.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 24 import android.graphics.Color; 62 // The colors are defined as found in wide-gamut-test.png, which is Display P3 63 // Since the UI toolkit renders in scRGB, we want to convert here to compare values 65 private static final Color[] COLORS = { 66 Color.valueOf(0.937f, 0.000f, 0.000f, 1.0f, DISPLAY_P3).convert(SCRGB), 67 Color.valueOf(1.000f, 0.000f, 0.000f, 1.0f, DISPLAY_P3).convert(SCRGB), 68 Color.valueOf(0.918f, 0.200f, 0.137f, 1.0f, DISPLAY_P3).convert(SCRGB) 80 try (InputStream in = getActivity().getAssets().open("wide-gamut-test.png")) { in loadBitmap() 83 Assert.fail("Could not load wide-gamut-test.png"); in loadBitmap() [all …]
|
/aosp_15_r20/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/shadows/ |
H A D | ShadowNativeLinearGradientTest.java | 11 import android.graphics.Color; 31 int[] color = {Color.BLUE, Color.GREEN, Color.RED}; in testLinearGradient() local 34 lg = new LinearGradient(0, 0, 0, 40, color, position, TileMode.CLAMP); in testLinearGradient() 39 // BLUE -> GREEN, B sub-value decreasing while G sub-value increasing in testLinearGradient() 40 assertTrue(Color.blue(b.getPixel(10, 0)) > Color.blue(b.getPixel(10, 5))); in testLinearGradient() 41 assertTrue(Color.blue(b.getPixel(10, 5)) > Color.blue(b.getPixel(10, 10))); in testLinearGradient() 42 assertTrue(Color.green(b.getPixel(10, 0)) < Color.green(b.getPixel(10, 5))); in testLinearGradient() 43 assertTrue(Color.green(b.getPixel(10, 5)) < Color.green(b.getPixel(10, 10))); in testLinearGradient() 44 // GREEN -> RED, G sub-value decreasing while R sub-value increasing in testLinearGradient() 45 assertTrue(Color.green(b.getPixel(10, 15)) > Color.green(b.getPixel(10, 20))); in testLinearGradient() [all …]
|
/aosp_15_r20/cts/tests/tests/graphics/src/android/graphics/cts/ |
H A D | LinearGradientTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 25 import android.graphics.Color; 49 int[] color = { Color.BLUE, Color.GREEN, Color.RED }; in testLinearGradient() local 52 lg = new LinearGradient(0, 0, 0, 40, color, position, TileMode.CLAMP); in testLinearGradient() 57 // BLUE -> GREEN, B sub-value decreasing while G sub-value increasing in testLinearGradient() 58 assertTrue(Color.blue(b.getPixel(10, 0)) > Color.blue(b.getPixel(10, 5))); in testLinearGradient() 59 assertTrue(Color.blue(b.getPixel(10, 5)) > Color.blue(b.getPixel(10, 10))); in testLinearGradient() 60 assertTrue(Color.green(b.getPixel(10, 0)) < Color.green(b.getPixel(10, 5))); in testLinearGradient() 61 assertTrue(Color.green(b.getPixel(10, 5)) < Color.green(b.getPixel(10, 10))); in testLinearGradient() 62 // GREEN -> RED, G sub-value decreasing while R sub-value increasing in testLinearGradient() [all …]
|
H A D | Color_ColorLongTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 18 import static android.graphics.Color.alpha; 19 import static android.graphics.Color.blue; 20 import static android.graphics.Color.colorSpace; 21 import static android.graphics.Color.convert; 22 import static android.graphics.Color.green; 23 import static android.graphics.Color.luminance; 24 import static android.graphics.Color.pack; 25 import static android.graphics.Color.red; 26 import static android.graphics.Color.toArgb; [all …]
|
/aosp_15_r20/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/ui/src/test/java/com/google/android/exoplayer2/ui/ |
H A D | SpannedToHtmlConverterTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 import android.graphics.Color; 58 new ForegroundColorSpan(Color.argb(51, 64, 32, 16)), in convert_supportsForegroundColorSpan() 64 SpannedToHtmlConverter.convert(spanned, displayDensity); in convert_supportsForegroundColorSpan() 68 .isEqualTo("String with <span style='color:rgba(64,32,16,0.200);'>colored</span> section"); in convert_supportsForegroundColorSpan() 74 int color = Color.argb(51, 64, 32, 16); in convert_supportsBackgroundColorSpan() local 76 new BackgroundColorSpan(color), in convert_supportsBackgroundColorSpan() 82 SpannedToHtmlConverter.convert(spanned, displayDensity); in convert_supportsBackgroundColorSpan() 84 // Double check the color int is being used for the class name as we expect. in convert_supportsBackgroundColorSpan() 85 assertThat(color).isEqualTo(859840528); in convert_supportsBackgroundColorSpan() [all …]
|
/aosp_15_r20/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/ui/src/test/java/com/google/android/exoplayer2/ui/ |
H A D | SpannedToHtmlConverterTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 21 import android.graphics.Color; 58 new ForegroundColorSpan(Color.argb(51, 64, 32, 16)), in convert_supportsForegroundColorSpan() 64 SpannedToHtmlConverter.convert(spanned, displayDensity); in convert_supportsForegroundColorSpan() 68 .isEqualTo("String with <span style='color:rgba(64,32,16,0.200);'>colored</span> section"); in convert_supportsForegroundColorSpan() 74 int color = Color.argb(51, 64, 32, 16); in convert_supportsBackgroundColorSpan() local 76 new BackgroundColorSpan(color), in convert_supportsBackgroundColorSpan() 82 SpannedToHtmlConverter.convert(spanned, displayDensity); in convert_supportsBackgroundColorSpan() 84 // Double check the color int is being used for the class name as we expect. in convert_supportsBackgroundColorSpan() 85 assertThat(color).isEqualTo(859840528); in convert_supportsBackgroundColorSpan() [all …]
|
/aosp_15_r20/external/python/cpython2/Doc/library/ |
D | colorsys.rst | 1 :mod:`colorsys` --- Conversions between color systems 5 :synopsis: Conversion functions between RGB and other color systems. 10 -------------- 12 The :mod:`colorsys` module defines bidirectional conversions of color values 13 between colors expressed in the RGB (Red Green Blue) color space used in 15 Saturation) and HSV (Hue Saturation Value). Coordinates in all of these color 22 More information about color spaces can be found at 24 https://www.cambridgeincolour.com/tutorials/color-spaces.htm. 31 Convert the color from RGB coordinates to YIQ coordinates. 36 Convert the color from YIQ coordinates to RGB coordinates. [all …]
|
/aosp_15_r20/external/python/cpython3/Doc/library/ |
D | colorsys.rst | 1 :mod:`colorsys` --- Conversions between color systems 5 :synopsis: Conversion functions between RGB and other color systems. 11 -------------- 13 The :mod:`colorsys` module defines bidirectional conversions of color values 14 between colors expressed in the RGB (Red Green Blue) color space used in 16 Saturation) and HSV (Hue Saturation Value). Coordinates in all of these color 23 More information about color spaces can be found at 25 https://www.cambridgeincolour.com/tutorials/color-spaces.htm. 32 Convert the color from RGB coordinates to YIQ coordinates. 37 Convert the color from YIQ coordinates to RGB coordinates. [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/image/color/ |
D | color.go | 2 // Use of this source code is governed by a BSD-style 5 // Package color implements a basic color library. 6 package color package 8 // Color can convert itself to alpha-premultiplied 16-bits per channel RGBA. 10 type Color interface { interface 11 // RGBA returns the alpha-premultiplied red, green, blue and alpha values 12 // for the color. Each value ranges within [0, 0xffff], but is represented 16 // An alpha-premultiplied color component c has been scaled by alpha (a), 21 // RGBA represents a traditional 32-bit alpha-premultiplied color, having 8 24 // An alpha-premultiplied color component C has been scaled by alpha (A), so [all …]
|
/aosp_15_r20/frameworks/base/core/java/com/android/internal/util/ |
H A D | ContrastColorUtil.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 28 import android.graphics.Color; 87 * @return True if the bitmap is grayscale; false if it is color or too large to examine. 125 * @return True if the bitmap is grayscale; false if it is color or too large to examine. 164 * @return True if the bitmap is grayscale; false if it is color or too large to examine. 184 * @return The color inverted text. 232 // Allocate a new array so we don't change the colors in the old color state in processTextAppearanceSpan() 252 * Clears all color spans of a text 254 * @return the same text but without color spans 295 * Ensures contrast on color spans against a background color. [all …]
|
/aosp_15_r20/external/libpng/contrib/libtests/ |
H A D | pngstest.c | 5 * Copyright (c) 2013-2017 John Cunningham Bowler 92 /* There are thirty three bits, the next bit in the sequence is bit-33 XOR in make_random_bytes() 93 * bit-20. The top 1 bit is in u1, the bottom 32 are in u0. in make_random_bytes() 99 png_uint_32 u = ((u0 >> (20-8)) ^ ((u1 << 7) | (u0 >> (32-7)))) & 0xff; in make_random_bytes() 121 random_color(png_colorp color) in random_color() argument 123 make_random_bytes(color_seed, color, sizeof *color); in random_color() 126 /* Math support - neither Cygwin nor Visual Studio have C99 support and we need 151 * fesetround() call in main(). sRGB_to_d optimizes the 8 to 16-bit conversion. 236 * sRGB transform, given an 8-bit value which might be either sRGB or power-law. 245 pow(sRGB_to_d[value], 1/2.2) - sRGB_from_linear(pow(vd, 2.2))); [all …]
|
/aosp_15_r20/external/flatbuffers/samples/ |
H A D | SampleBinary.cs | 8 * http://www.apache.org/licenses/LICENSE-2.0 53 Monster.AddColor(builder, Color.Red); in Main() 76 Assert(monster.Mana == 150, "monster.Mana", Convert.ToString(monster.Mana), in Main() 77 Convert.ToString(150)); in Main() 78 Assert(monster.Hp == 300, "monster.Hp", Convert.ToString(monster.Hp), Convert.ToString(30)); in Main() 81 Assert(monster.Color == Color.Red, "monster.Color", Convert.ToString(monster.Color), in Main() 82 Convert.ToString(Color.Red)); in Main() 86 Convert.ToString(vec.X), Convert.ToString(1.0f)); in Main() 88 Convert.ToString(vec.Y), Convert.ToString(2.0f)); in Main() 90 Convert.ToString(vec.Z), Convert.ToString(3.0f)); in Main() [all …]
|