Home
last modified time | relevance | path

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

/cts/apps/CameraITS/tests/scene1/
Dtest_post_raw_sensitivity_boost.py117 pylab.plot(xs, [rgb[0] for rgb in raw_rgb_means], '-ro')
118 pylab.plot(xs, [rgb[1] for rgb in raw_rgb_means], '-go')
119 pylab.plot(xs, [rgb[2] for rgb in raw_rgb_means], '-bo')
127 pylab.plot(xs, [rgb[0] for rgb in yuv_rgb_means], '-ro')
128 pylab.plot(xs, [rgb[1] for rgb in yuv_rgb_means], '-go')
129 pylab.plot(xs, [rgb[2] for rgb in yuv_rgb_means], '-bo')
145 for rgb in range(3):
146 ratio = raw_rgb_means[step - 1][rgb] / raw_rgb_means[step][rgb]
148 step-1, step, rgb_str[rgb],
149 raw_rgb_means[step - 1][rgb],
[all …]
Dtest_yuv_jpeg_all.py58 rgb = its.image.compute_image_means(tile)
59 print "rgb =", rgb
60 rgbs.append(rgb)
76 rgb = its.image.compute_image_means(tile)
77 print "rgb =", rgb
78 rgbs.append(rgb)
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_reprocess_noise_reduction.py116 r_snrs = [rgb[0] for rgb in rgb_snr_list]
117 g_snrs = [rgb[1] for rgb in rgb_snr_list]
118 b_snrs = [rgb[2] for rgb in rgb_snr_list]
/cts/tests/tests/graphics/src/android/graphics/cts/
DLightingColorFilterTest.java81 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()
DColorTest.java228 assertEquals(Color.RED, Color.rgb(0xff, 0x00, 0x00)); in testRgb()
229 assertEquals(Color.YELLOW, Color.rgb(0xff, 0xff, 0x00)); in testRgb()
230 assertEquals(Color.RED, Color.rgb(1.0f, 0.0f, 0.0f)); in testRgb()
231 assertEquals(Color.YELLOW, Color.rgb(1.0f, 1.0f, 0.0f)); in testRgb()
DColorSpaceTest.java775 ColorSpace.Rgb rgb = (ColorSpace.Rgb) cs; in testMatch() local
777 if (rgb != ColorSpace.get(ColorSpace.Named.EXTENDED_SRGB) && in testMatch()
778 rgb != ColorSpace.get(ColorSpace.Named.LINEAR_EXTENDED_SRGB)) { in testMatch()
781 rgb = (ColorSpace.Rgb) ColorSpace.adapt(rgb, ColorSpace.ILLUMINANT_D50); in testMatch()
783 ColorSpace.match(rgb.getTransform(), rgb.getTransferParameters())); in testMatch()
DBitmapColorSpaceTest.java178 for (ColorSpace rgb : BitmapTest.getRgbColorSpaces()) { in createFromSourceWithColorSpace()
187 Bitmap orig = Bitmap.createBitmap(32, 32, config, false, rgb); in createFromSourceWithColorSpace()
DBitmapFactoryTest.java963 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.rs73 static float3 gammaCorrectPixel(float3 rgb) {
75 ret.x = gammaEncode(rgb.x);
76 ret.y = gammaEncode(rgb.y);
77 ret.z = gammaEncode(rgb.z);
95 static float3 tonemap(float3 rgb) {
96 float3 sorted = clamp(rgb, 0.f, 1.f);
/cts/tests/camera/src/android/hardware/camera2/cts/
DAllocationTest.java312 float[] rgb = new float[CHANNELS]; in convertPixelYuvToRgb() local
324 rgb[0] = r / COLOR_RANGE; in convertPixelYuvToRgb()
325 rgb[1] = g / COLOR_RANGE; in convertPixelYuvToRgb()
326 rgb[2] = b / COLOR_RANGE; in convertPixelYuvToRgb()
330 rgb[i] = Math.max(0.0f, Math.min(1.0f, rgb[i])); in convertPixelYuvToRgb()
334 Log.v(TAG, String.format("RGB calculated (r,g,b) = (%f, %f, %f)", rgb[0], rgb[1], in convertPixelYuvToRgb()
335 rgb[2])); in convertPixelYuvToRgb()
338 return rgb; in convertPixelYuvToRgb()
DImageReaderTest.java805 output[outputPos++] = Color.rgb(r, g, b); in convertPixelYuvToRgba()
/cts/apps/CameraITS/pymodules/its/
Dimage.py262 rgb = decompress_jpeg_to_rgb_image(cap["data"]).reshape(w*h*3)
263 return (rgb[::3].reshape(h,w,1),
264 rgb[1::3].reshape(h,w,1),
265 rgb[2::3].reshape(h,w,1))
471 rgb = numpy.empty([h, w, 3], dtype=numpy.uint8)
472 rgb.reshape(w*h*3)[:] = flt.reshape(w*h*3)[:]
473 return rgb.astype(numpy.float32) / 255.0
487 rgb = numpy.empty([h, w, 3], dtype=numpy.uint8)
488 rgb.reshape(w*h*3)[:] = y3.reshape(w*h*3)[:]
489 return rgb.astype(numpy.float32) / 255.0
/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java163 int rgb = bitmap.getPixel(i * 16 + 8, 8); in readBinaryCounterFromBitmap() local
164 if (Color.red(rgb) > 128) { in readBinaryCounterFromBitmap()
DDecodeAccuracyTestBase.java1995 outputPixels[yIndex * width + xIndex] = Color.rgb( in shrinkAndScaleBilinear()
/cts/apps/CtsVerifier/include/colorchecker/
Dwhitebalancetest.h49 Vec3f initializeFromRGB(const Vec3f &rgb);
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DLayerTests.java65 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()
510 .runWithVerifier(new ColorVerifier(Color.rgb(128, 128, 255))); in testWebViewWithAlpha()
535 .runWithVerifier(new ColorVerifier(Color.rgb(191, 191, 255))); in testWebViewWithAlphaLayer()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java752 rgbData[rgbIndex] = Color.rgb(r,g,b); in convertFromUnknown()
788 Color.rgb(yv, uv, vv); in convertFromNV21()
845 Color.rgb(yv, uv, vv); in convertFromYV12()
873 rgbData[rgbIndex] = Color.rgb(yv,uv,vv); in convertFromYUY2()
/cts/tests/tests/text/src/android/text/style/cts/
DTextAppearanceSpanTest.java58 int[] colors = new int[] { Color.rgb(0, 0, 255), Color.BLACK }; in setup()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java122 int ocean = Color.rgb(0, 0xFF, 0x80); in testDraw()
/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java2084 new int[] {Color.rgb(0, 255, 0), Color.BLACK}); in testWriteToParcel()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java632 new int[] { Color.rgb(0, 255, 0), Color.BLACK }); in testAccessTextColor()
857 new int[] { Color.rgb(0, 255, 0), Color.BLACK }); in testAccessHintTextColor()
887 new int[] { Color.rgb(0, 255, 0), Color.BLACK }); in testAccessLinkTextColor()
/cts/tests/tests/media/res/raw/
Dfootball_qvga.yuv231 …Q<39ERV^inrwz|~�zzvqjb]_cdeiiijklorssmf]QF@ACEJJIIHDDFCDHNU]bfhklnsw�����}rgb^\\Z[\^ekljhhfdbcfik…
279 …ooqrstuuvuttttuaaacccbccbcddccccddddddglnprstvy}����������~}{zwtsy�{rgb]UME<7:BII@3)%)*#!#)…