Home
last modified time | relevance | path

Searched refs:sRGB (Results 1 – 12 of 12) sorted by relevance

/frameworks/native/libs/ui/tests/
Dcolorspace_test.cpp41 ColorSpace sRGB("sRGB", sRGBToXYZ); in TEST_F() local
43 EXPECT_EQ(sRGBToXYZ, sRGB.getRGBtoXYZ()); in TEST_F()
44 EXPECT_EQ(XYZtoSRGB, sRGB.getXYZtoRGB()); in TEST_F()
54 ColorSpace sRGB("sRGB", sRGBToXYZ); in TEST_F() local
56 EXPECT_NEAR(0.640f, sRGB.getPrimaries()[0].x, 1e-5f); in TEST_F()
57 EXPECT_NEAR(0.330f, sRGB.getPrimaries()[0].y, 1e-5f); in TEST_F()
59 EXPECT_NEAR(0.300f, sRGB.getPrimaries()[1].x, 1e-5f); in TEST_F()
60 EXPECT_NEAR(0.600f, sRGB.getPrimaries()[1].y, 1e-5f); in TEST_F()
62 EXPECT_NEAR(0.150f, sRGB.getPrimaries()[2].x, 1e-5f); in TEST_F()
63 EXPECT_NEAR(0.060f, sRGB.getPrimaries()[2].y, 1e-5f); in TEST_F()
[all …]
/frameworks/base/libs/hwui/
DTexture.cpp247 sk_sp<SkColorSpace> sRGB) { in uploadToN32() argument
251 hasLinearBlending ? sRGB : nullptr)); in uploadToN32()
331 mConnector.reset(new ColorSpaceConnector(src, ColorSpace::sRGB())); in upload()
355 sk_sp<SkColorSpace> sRGB = SkColorSpace::MakeSRGB(); in upload() local
356 SkBitmap rgbaBitmap = uploadToN32(skBitmap, hasLinearBlending, std::move(sRGB)); in upload()
DTexture.h52 sk_sp<SkColorSpace> sRGB);
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/
DColorTest.kt109 val sRGB = ColorSpace.get(ColorSpace.Named.SRGB) in getColorSpace() constant
110 assertEquals(sRGB, 0x337f3010.toColorLong().colorSpace) in getColorSpace()
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp462 auto sRGB = SkColorSpace::MakeSRGB(); in SetPixels() local
463 auto xform = SkColorSpaceXform::New(sRGB.get(), colorSpace); in SetPixels()
1343 auto sRGB = SkColorSpace::MakeSRGB(); in Bitmap_getPixel() local
1344 auto xform = SkColorSpaceXform::New(colorSpace, sRGB.get()); in Bitmap_getPixel()
1380 auto sRGB = SkColorSpace::MakeSRGB(); in Bitmap_getPixels() local
1381 auto xform = SkColorSpaceXform::New(colorSpace, sRGB.get()); in Bitmap_getPixels()
1417 auto sRGB = SkColorSpace::MakeSRGB(); in Bitmap_setPixel() local
1418 auto xform = SkColorSpaceXform::New(sRGB.get(), colorSpace); in Bitmap_setPixel()
DGraphics.cpp558 jobject sRGB = env->GetStaticObjectField( in getColorSpace() local
561 gColorSpace_getMethodID, sRGB); in getColorSpace()
/frameworks/base/libs/hwui/renderthread/
DOpenGLPipeline.cpp438 sk_sp<SkColorSpace> sRGB = SkColorSpace::MakeSRGB(); in allocateHardwareBitmap() local
439 bitmap = uirenderer::Texture::uploadToN32(skBitmap, hasLinearBlending, std::move(sRGB)); in allocateHardwareBitmap()
/frameworks/native/libs/ui/tools/
Dlutgen.cpp82 return ColorSpace::sRGB(); in findColorSpace()
/frameworks/native/libs/ui/include/ui/
DColorSpace.h233 static const ColorSpace sRGB();
/frameworks/native/libs/ui/include_vndk/ui/
DColorSpace.h233 static const ColorSpace sRGB();
/frameworks/native/services/surfaceflinger/RenderEngine/
DGLES20RenderEngine.cpp137 ColorSpace srgb(ColorSpace::sRGB()); in GLES20RenderEngine()
/frameworks/native/libs/ui/
DColorSpace.cpp233 const ColorSpace ColorSpace::sRGB() { in sRGB() function in android::ColorSpace