Home
last modified time | relevance | path

Searched refs:rgb (Results 1 – 23 of 23) sorted by relevance

/cts/apps/CameraITS/tests/scene1/
Dtest_post_raw_sensitivity_boost.py114 pylab.plot(xs, [rgb[0] for rgb in raw_rgb_means], 'r')
115 pylab.plot(xs, [rgb[1] for rgb in raw_rgb_means], 'g')
116 pylab.plot(xs, [rgb[2] for rgb in raw_rgb_means], 'b')
120 pylab.plot(xs, [rgb[0] for rgb in yuv_rgb_means], 'r')
121 pylab.plot(xs, [rgb[1] for rgb in yuv_rgb_means], 'g')
122 pylab.plot(xs, [rgb[2] for rgb in yuv_rgb_means], 'b')
134 for rgb in range(3):
135 ratio = raw_rgb_means[step - 1][rgb] / raw_rgb_means[step][rgb]
138 step-1, step, rgb_str[rgb],
139 raw_rgb_means[step - 1][rgb],
[all …]
Dtest_param_noise_reduction.py98 r_snrs = [rgb[0] for rgb in rgb_snr_list]
99 g_snrs = [rgb[1] for rgb in rgb_snr_list]
100 b_snrs = [rgb[2] for rgb in rgb_snr_list]
Dtest_yuv_jpeg_all.py53 rgb = its.image.compute_image_means(tile)
54 rgbs.append(rgb)
70 rgb = its.image.compute_image_means(tile)
71 rgbs.append(rgb)
Dtest_reprocess_noise_reduction.py117 r_snrs = [rgb[0] for rgb in rgb_snr_list]
118 g_snrs = [rgb[1] for rgb in rgb_snr_list]
119 b_snrs = [rgb[2] for rgb in rgb_snr_list]
Dtest_ev_compensation_basic.py80 rgb = its.image.convert_capture_to_rgb_image(cap)
81 rgb_tile = its.image.get_image_patch(rgb,
/cts/tests/tests/graphics/src/android/graphics/cts/
DLightingColorFilterTest.java80 new LightingColorFilter(Color.rgb(0x80, 0xFF, 0x80), Color.rgb(0, 10, 10))); in testLightingColorFilter()
88 new LightingColorFilter(Color.rgb(0x80, 0xFF, 0x80), Color.rgb(0, 10, 10))); in testLightingColorFilter()
DColorTest.java209 assertEquals(Color.RED, Color.rgb(0xff, 0x00, 0x00)); in testRgb()
210 assertEquals(Color.YELLOW, Color.rgb(0xff, 0xff, 0x00)); in testRgb()
211 assertEquals(Color.RED, Color.rgb(1.0f, 0.0f, 0.0f)); in testRgb()
212 assertEquals(Color.YELLOW, Color.rgb(1.0f, 1.0f, 0.0f)); in testRgb()
DColorSpaceTest.java768 ColorSpace.Rgb rgb = (ColorSpace.Rgb) cs; in testMatch() local
770 if (rgb != ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB) && in testMatch()
771 rgb != ColorSpace.get(ColorSpace.Named.LINEAR_EXTENDED_SRGB)) { in testMatch()
774 rgb = (ColorSpace.Rgb) ColorSpace.adapt(rgb, ColorSpace.ILLUMINANT_D50); in testMatch()
776 ColorSpace.match(rgb.getTransform(), rgb.getTransferParameters())); in testMatch()
DBitmapFactoryTest.java867 argb.setPixel(x, y, Color.rgb(grayByte, grayByte, grayByte)); in grayToARGB()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dyuv.rs89 uchar4 rgb = yuvToRGBA4(py, pu, pv);
92 rsSetElementAt_uchar4(aout, rgb, x, y);
113 float4 rgb = yuvToRGBA_f4(py, pu, pv);
116 rsSetElementAt_float4(aout, rgb, x, y);
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
Draw_converter.rs72 static float3 gammaCorrectPixel(float3 rgb) {
74 ret.x = gammaEncode(rgb.x);
75 ret.y = gammaEncode(rgb.y);
76 ret.z = gammaEncode(rgb.z);
94 static float3 tonemap(float3 rgb) {
95 float3 sorted = clamp(rgb, 0.f, 1.f);
/cts/apps/CtsVerifier/include/colorchecker/
Dwhitebalancetest.h49 Vec3f initializeFromRGB(const Vec3f &rgb);
/cts/tests/camera/src/android/hardware/camera2/cts/
DAllocationTest.java314 float[] rgb = new float[CHANNELS]; in convertPixelYuvToRgb() local
326 rgb[0] = r / COLOR_RANGE; in convertPixelYuvToRgb()
327 rgb[1] = g / COLOR_RANGE; in convertPixelYuvToRgb()
328 rgb[2] = b / COLOR_RANGE; in convertPixelYuvToRgb()
332 rgb[i] = Math.max(0.0f, Math.min(1.0f, rgb[i])); in convertPixelYuvToRgb()
336 Log.v(TAG, String.format("RGB calculated (r,g,b) = (%f, %f, %f)", rgb[0], rgb[1], in convertPixelYuvToRgb()
337 rgb[2])); in convertPixelYuvToRgb()
340 return rgb; in convertPixelYuvToRgb()
DImageReaderTest.java655 output[outputPos++] = Color.rgb(r, g, b); in convertPixelYuvToRgba()
/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java161 int rgb = bitmap.getPixel(i * 16 + 8, 8); in readBinaryCounterFromBitmap() local
162 if (Color.red(rgb) > 128) { in readBinaryCounterFromBitmap()
DDecodeAccuracyTestBase.java1996 outputPixels[yIndex * width + xIndex] = Color.rgb( in shrinkAndScaleBilinear()
/cts/apps/CameraITS/pymodules/its/
Dimage.py259 rgb = decompress_jpeg_to_rgb_image(cap["data"]).reshape(w*h*3)
260 return (rgb[::3].reshape(h,w,1),
261 rgb[1::3].reshape(h,w,1),
262 rgb[2::3].reshape(h,w,1))
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
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DLayerTests.java66 final int expectedColor = Color.rgb(255, 191, 191); in testLayerPaintAlpha()
83 final int expectedColor = Color.rgb(255, 128, 128); in testLayerPaintSimpleAlphaWithHardware()
97 final int expectedColor = Color.rgb(255, 128, 128); in testLayerPaintSimpleAlphaWithSoftware()
158 final int expectedColor = Color.rgb(54, 54, 54); in testLayerPaintColorFilter()
511 .runWithVerifier(new ColorVerifier(Color.rgb(128, 128, 255))); in testWebViewWithAlpha()
536 .runWithVerifier(new ColorVerifier(Color.rgb(191, 191, 255))); in testWebViewWithAlphaLayer()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java684 rgbData[rgbIndex] = Color.rgb(r,g,b); in convertFromUnknown()
720 Color.rgb(yv, uv, vv); in convertFromNV21()
777 Color.rgb(yv, uv, vv); in convertFromYV12()
805 rgbData[rgbIndex] = Color.rgb(yv,uv,vv); in convertFromYUY2()
/cts/tests/tests/text/src/android/text/style/cts/
DTextAppearanceSpanTest.java50 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; in setup()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java120 int ocean = Color.rgb(0, 0xFF, 0x80); in testDraw()
/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java2072 new int[] {Color.rgb(0, 255, 0), Color.BLACK}); in testWriteToParcel()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java628 new int[] { Color.rgb(0, 255, 0), Color.BLACK }); in testAccessTextColor()
853 new int[] { Color.rgb(0, 255, 0), Color.BLACK }); in testAccessHintTextColor()
883 new int[] { Color.rgb(0, 255, 0), Color.BLACK }); in testAccessLinkTextColor()