Home
last modified time | relevance | path

Searched refs:luma (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DRotationAnimationUtilsTest.java135 private Bitmap createBitmap(float luma) { in createBitmap() argument
136 return createBitmap(luma, BITMAP_WIDTH, BITMAP_HEIGHT); in createBitmap()
139 private Bitmap createBitmap(float luma, int width, int height) { in createBitmap() argument
143 bitmap.setPixel(i, j, Color.argb(1, luma, luma, luma)); in createBitmap()
154 private void setBorderLuma(Bitmap swBitmap, float luma) { in setBorderLuma() argument
159 swBitmap.setPixel(i, 0, Color.argb(1, luma, luma, luma)); in setBorderLuma()
160 swBitmap.setPixel(i, height - 1, Color.argb(1, luma, luma, luma)); in setBorderLuma()
163 swBitmap.setPixel(0, i, Color.argb(1, luma, luma, luma)); in setBorderLuma()
164 swBitmap.setPixel(width - 1, i, Color.argb(1, luma, luma, luma)); in setBorderLuma()
/frameworks/native/libs/gui/tests/
DRegionSampling_test.cpp150 float luma() { in luma() function
265 EXPECT_NEAR(listener->luma(), luma_green, error_margin); in TEST_F()
279 EXPECT_NEAR(listener->luma(), luma_green, error_margin); in TEST_F()
286 EXPECT_NEAR(listener->luma(), luma_blue, error_margin); in TEST_F()
304 EXPECT_NEAR(grayListener->luma(), luma_gray, error_margin); in TEST_F()
307 EXPECT_NEAR(greenListener->luma(), luma_green, error_margin); in TEST_F()
341 EXPECT_NEAR(listener->luma(), luma_green, error_margin); in TEST_F()
359 EXPECT_NEAR(listener->luma(), luma_blue, error_margin); in TEST_F()
363 EXPECT_NEAR(listener->luma(), luma_gray, error_margin); in TEST_F()
371 EXPECT_NEAR(listener->luma(), luma_gray, error_margin); in TEST_F()
[all …]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DImageCompare.java30 private static double luma(int pixel) { in luma() method in ImageCompare
70 final double Y1 = luma(pixel1); in psnr()
71 final double Y2 = luma(pixel2); in psnr()
/frameworks/native/services/surfaceflinger/
DRegionSamplingThread.cpp231 const uint32_t luma = (r * 7 + b * 2 + g * 23) >> 5; in sampleArea() local
232 accumulatedLuma += luma; in sampleArea()
/frameworks/av/media/libstagefright/omx/
DSoftVideoEncoderOMXComponent.cpp493 unsigned luma = in ConvertRGB32ToPlanar() local
496 dstY[x] = luma; in ConvertRGB32ToPlanar()
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2BufferUtils.cpp560 unsigned luma = ((r * weights[0][0] + g * weights[0][1] + b * weights[0][2]) >> 8) + in ConvertRGBToPlanarYUV() local
563 dstY[x] = CLIP3(zeroLvl, luma, maxLvlLuma); in ConvertRGBToPlanarYUV()
/frameworks/base/packages/SystemUI/src/com/android/systemui/egg/
DMLand.java299 private static float luma(int bgcolor) { in luma() method in MLand
1072 mScoreField.setTextColor(luma(color) > 0.7f ? 0xFF000000 : 0xFFFFFFFF);