/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | RawConverter.java | 384 static float[/*3*/] gammaCorrectPixel(float[/*3*/] rgb) { in gammaCorrectPixel() argument 385 rgb[0] = gammaEncode(rgb[0]); in gammaCorrectPixel() 386 rgb[1] = gammaEncode(rgb[1]); in gammaCorrectPixel() 387 rgb[2] = gammaEncode(rgb[2]); in gammaCorrectPixel() 388 return rgb; in gammaCorrectPixel() 436 private float[/*3*/] tonemap(float[/*3*/] rgb) { in tonemap() argument 437 rgb[0] = clamp(rgb[0], 0.f, 1.f); in tonemap() 438 rgb[1] = clamp(rgb[1], 0.f, 1.f); in tonemap() 439 rgb[2] = clamp(rgb[2], 0.f, 1.f); in tonemap() 445 if (rgb[2] < rgb[1]) { in tonemap() [all …]
|
/cts/apps/CameraITS/tests/scene1_2/ |
D | test_yuv_jpeg_all.py | 104 rgb = image_processing_utils.compute_image_means(patch) 106 img_type, cap['width'], cap['height'], str(rgb), index) 107 return rgb, img 180 pylab.plot(yuv_index, [rgb[0] for rgb in yuv_rgbs], 182 pylab.plot(yuv_index, [rgb[1] for rgb in yuv_rgbs], 184 pylab.plot(yuv_index, [rgb[2] for rgb in yuv_rgbs], 186 pylab.plot(jpg_index, [rgb[0] for rgb in jpg_rgbs], 188 pylab.plot(jpg_index, [rgb[1] for rgb in jpg_rgbs], 190 pylab.plot(jpg_index, [rgb[2] for rgb in jpg_rgbs],
|
D | test_reprocess_noise_reduction.py | 168 r_snrs = [rgb[0] for rgb in rgb_snr_list] 169 g_snrs = [rgb[1] for rgb in rgb_snr_list] 170 b_snrs = [rgb[2] for rgb in rgb_snr_list]
|
D | test_param_noise_reduction.py | 124 r_snrs = [rgb[0] for rgb in rgb_snr_list] 125 g_snrs = [rgb[1] for rgb in rgb_snr_list] 126 b_snrs = [rgb[2] for rgb in rgb_snr_list]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | LightingColorFilterTest.java | 81 new LightingColorFilter(Color.rgb(0x80, 0xFF, 0x80), Color.rgb(0, 10, 10))); in testLightingColorFilter() 89 new LightingColorFilter(Color.rgb(0x80, 0xFF, 0x80), Color.rgb(0, 10, 10))); in testLightingColorFilter()
|
D | ColorSpaceTest.java | 872 ColorSpace.Rgb rgb = (ColorSpace.Rgb) cs; in testMatch() local 874 if (rgb != ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB) in testMatch() 875 && rgb != ColorSpace.get(ColorSpace.Named.LINEAR_EXTENDED_SRGB) in testMatch() 876 && rgb != ColorSpace.get(ColorSpace.Named.BT2020_HLG) in testMatch() 877 && rgb != ColorSpace.get(ColorSpace.Named.BT2020_PQ)) { in testMatch() 880 rgb = (ColorSpace.Rgb) ColorSpace.adapt(rgb, ColorSpace.ILLUMINANT_D50); in testMatch() 882 ColorSpace.match(rgb.getTransform(), rgb.getTransferParameters())); in testMatch()
|
D | ColorTest.java | 444 assertEquals(Color.RED, Color.rgb(0xff, 0x00, 0x00)); in testRgb() 445 assertEquals(Color.YELLOW, Color.rgb(0xff, 0xff, 0x00)); in testRgb() 446 assertEquals(Color.RED, Color.rgb(1.0f, 0.0f, 0.0f)); in testRgb() 447 assertEquals(Color.YELLOW, Color.rgb(1.0f, 1.0f, 0.0f)); in testRgb()
|
D | BitmapColorSpaceTest.java | 181 for (ColorSpace rgb : BitmapTest.getRgbColorSpaces()) { in createFromSourceWithColorSpace() 191 Bitmap orig = Bitmap.createBitmap(32, 32, config, false, rgb); in createFromSourceWithColorSpace()
|
D | BitmapFactoryTest.java | 1006 argb.setPixel(x, y, Color.rgb(grayByte, grayByte, grayByte)); in grayToARGB()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | yuv.rscript | 89 uchar4 rgb = yuvToRGBA4(py, pu, pv); 90 //rsDebug(" ", rgb); 92 rsSetElementAt_uchar4(aout, rgb, x, y); 113 float4 rgb = yuvToRGBA_f4(py, pu, pv); 114 //rsDebug(" ", rgb); 116 rsSetElementAt_float4(aout, rgb, x, y);
|
/cts/apps/CtsVerifier/include/colorchecker/ |
D | whitebalancetest.h | 49 Vec3f initializeFromRGB(const Vec3f &rgb);
|
/cts/tests/tests/graphics/src/android/graphics/cts/utils/ |
D | ColorUtils.java | 54 return Color.rgb( in xyzToColor()
|
/cts/apps/CameraITS/utils/ |
D | image_processing_utils.py | 468 rgb = numpy.empty([h, w, 3], dtype=numpy.uint8) 469 rgb.reshape(w * h * 3)[:] = flt.reshape(w * h * 3)[:] 470 return rgb.astype(numpy.float32) / 255.0 641 rgb = decompress_jpeg_to_rgb_image(cap['data']).reshape(w * h * 3) 642 return (rgb[::3].reshape(h, w, 1), rgb[1::3].reshape(h, w, 1), 643 rgb[2::3].reshape(h, w, 1)) 845 rgb = numpy.empty([h, w, 3], dtype=numpy.uint8) 846 rgb.reshape(w * h * 3)[:] = y3.reshape(w * h * 3)[:] 847 return rgb.astype(numpy.float32) / 255.0 1503 colour.models.rgb.datasets.display_p3.RGB_COLOURSPACE_DISPLAY_P3.whitepoint, [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | LayerTests.java | 65 final int expectedColor = Color.rgb(255, 191, 191); in testLayerPaintAlpha() 82 final int expectedColor = Color.rgb(255, 128, 128); in testLayerPaintSimpleAlphaWithHardware() 96 final int expectedColor = Color.rgb(255, 128, 128); in testLayerPaintSimpleAlphaWithSoftware() 157 final int expectedColor = Color.rgb(54, 54, 54); in testLayerPaintColorFilter() 538 .runWithVerifier(new ColorVerifier(Color.rgb(128, 128, 255))); in testWebViewWithAlpha() 563 .runWithVerifier(new ColorVerifier(Color.rgb(191, 191, 255))); in testWebViewWithAlphaLayer()
|
D | ForceDarkTests.java | 143 int[] color = {Color.BLACK, Color.rgb(254, 254, 254)}; in testLinearGradient()
|
D | SurfaceViewTests.java | 358 Color.rgb(191, 191, 191), 1 /* blending tolerance */)); 378 Color.rgb(191, 191, 191), 1 /* blending tolerance */));
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | CodecUtils.java | 158 int rgb = bitmap.getPixel(i * 16 + 8, 8); in readBinaryCounterFromBitmap() local 159 if (Color.red(rgb) > 128) { in readBinaryCounterFromBitmap()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/ |
D | CameraFormatsActivity.java | 791 rgbData[rgbIndex] = Color.rgb(r,g,b); in convertFromUnknown() 827 Color.rgb(yv, uv, vv); in convertFromNV21() 884 Color.rgb(yv, uv, vv); in convertFromYV12() 912 rgbData[rgbIndex] = Color.rgb(yv,uv,vv); in convertFromYUY2()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 86 private static final int LIGHT_BG_COLOR = Color.rgb(255, 128, 128);
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | TextAppearanceSpanTest.java | 58 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; in setup()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | NinePatchDrawableTest.java | 122 int ocean = Color.rgb(0, 0xFF, 0x80); in testDraw()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/ |
D | CameraBokehActivity.java | 538 imgArray[j] = Color.rgb(yval, uval, vval); in onImageAvailable()
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | DecodeAccuracyTestBase.java | 2052 outputPixels[yIndex * width + xIndex] = Color.rgb( in shrinkAndScaleBilinear()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | ImageReaderTest.java | 1480 output[outputPos++] = Color.rgb(r, g, b); in convertPixelYuvToRgba()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | TextUtilsTest.java | 2129 new int[] {Color.rgb(0, 255, 0), Color.BLACK}); in testWriteToParcel()
|