/frameworks/native/libs/ui/tests/ |
colorspace_test.cpp | 41 ColorSpace sRGB("sRGB", sRGBToXYZ); 43 EXPECT_EQ(sRGBToXYZ, sRGB.getRGBtoXYZ()); 44 EXPECT_EQ(XYZtoSRGB, sRGB.getXYZtoRGB()); 54 ColorSpace sRGB("sRGB", sRGBToXYZ); 56 EXPECT_NEAR(0.640f, sRGB.getPrimaries()[0].x, 1e-5f); 57 EXPECT_NEAR(0.330f, sRGB.getPrimaries()[0].y, 1e-5f); 59 EXPECT_NEAR(0.300f, sRGB.getPrimaries()[1].x, 1e-5f); 60 EXPECT_NEAR(0.600f, sRGB.getPrimaries()[1].y, 1e-5f) [all...] |
/frameworks/base/libs/hwui/ |
Texture.cpp | 251 sk_sp<SkColorSpace> sRGB) { 254 bitmap.info().alphaType(), hasLinearBlending ? sRGB : nullptr)); 309 // RGBA16F is always linear extended sRGB 317 // If an RGBA16F bitmap needs conversion, we know the target will be sRGB 320 // If the bitmap is sRGB we don't need conversion 336 mConnector.reset(new ColorSpaceConnector(src, ColorSpace::sRGB())); 338 // A non-sRGB color space might have a transfer function close enough to sRGB 339 // that we can save shader instructions by using an sRGB sampler 340 // This is only possible if we have hardware support for sRGB texture [all...] |
/external/libpng/contrib/tools/ |
makesRGB.c | 1 /* makesRGB.c -- build sRGB-to-linear and linear-to-sRGB conversion tables 10 * Make a table to convert 8-bit sRGB encoding values into the closest 16-bit 14 * approximation to the 8-bit sRGB encoded value. Calculate the error in these 27 #include "sRGB.h" 49 sRGB(unsigned int i) 127 double lo = 255 * sRGB(i << 15); 128 double hi = 255 * sRGB((i+1) << 15); 155 unsigned int iexact = nearbyint(255*sRGB(i)); 227 unsigned int iexact = nearbyint(255*sRGB(i)) [all...] |
/frameworks/native/libs/ui/ |
ColorSpace.cpp | 233 const ColorSpace ColorSpace::sRGB() { 235 "sRGB IEC61966-2.1", 244 "sRGB IEC61966-2.1 (Linear)",
|
/frameworks/base/libs/hwui/renderthread/ |
OpenGLPipeline.cpp | 373 // TODO: handle SRGB sanely 425 sk_sp<SkColorSpace> sRGB = SkColorSpace::MakeSRGB(); 426 bitmap = uirenderer::Texture::uploadToN32(skBitmap, hasLinearBlending, std::move(sRGB));
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapColorSpaceTest.java | 66 ColorSpace sRGB = ColorSpace.get(ColorSpace.Named.SRGB); 70 b = Bitmap.createBitmap(32, 32, Bitmap.Config.ARGB_8888, true, sRGB); 73 assertSame(sRGB, cs); 81 b = Bitmap.createBitmap(32, 32, Bitmap.Config.RGBA_F16, true, sRGB); 92 b = Bitmap.createBitmap(32, 32, Bitmap.Config.RGB_565, true, sRGB); 95 assertSame(sRGB, cs); 101 assertSame(sRGB, cs); 103 b = Bitmap.createBitmap(32, 32, Bitmap.Config.ALPHA_8, true, sRGB); 106 assertSame(sRGB, cs) 299 int srgb = b.getPixel(15, 15); local [all...] |
/external/swiftshader/src/Renderer/ |
Sampler.hpp | 139 bool sRGB : 1; 165 void setReadSRGB(bool sRGB); 206 bool sRGB;
|
/external/pdfium/core/fpdfapi/page/ |
cpdf_colorspace.cpp | 294 // sRGB value {Rx,Ry}={0.64, 0.33}, {Gx,Gy}={0.30, 0.60}, {Bx,By}={0.15, 0.06} 423 bool CPDF_ColorSpace::sRGB() const { 843 if (!m_pProfile->m_pTransform) { // No valid ICC profile or using sRGB 862 } else { // Using sRGB [all...] |
/external/swiftshader/src/Shader/ |
PixelProgram.cpp | [all...] |
/frameworks/base/core/jni/android/graphics/ |
Graphics.cpp | 558 jobject sRGB = env->GetStaticObjectField( 561 gColorSpace_getMethodID, sRGB); 807 gColorSpace_Named_class, "SRGB", "Landroid/graphics/ColorSpace$Named;");
|
Bitmap.cpp | 462 auto sRGB = SkColorSpace::MakeSRGB(); 463 auto xform = SkColorSpaceXform::New(sRGB.get(), colorSpace); 715 // they want linear sRGB. 719 // Skia needs a color space to convert to F16. nullptr should be treated as sRGB. 772 // Skia needs a color space to convert from F16. nullptr should be treated as sRGB. [all...] |
/external/deqp/framework/common/ |
tcuTexture.hpp | 60 sRGB, [all...] |
/external/mesa3d/src/gallium/state_trackers/nine/ |
nine_state.c | 696 const int sRGB = context->rs[D3DRS_SRGBWRITEENABLE] ? 1 : 0; 725 fb->cbufs[i] = NineSurface9_GetSurface(rt, sRGB); 956 /* TODO: add sRGB override to pipe_sampler_state ? */ 974 int sRGB; 982 sRGB = context->samp[s][D3DSAMP_SRGBTEXTURE] ? 1 : 0; 984 view[i] = context->texture[s].view[sRGB]; [all...] |
/external/libpng/contrib/libtests/ |
pngstest.c | 48 #include "../tools/sRGB.h" 61 * misbehavior, such as using a simple power law to correct sRGB to linear. 150 /* sRGB support: use exact calculations rounded to the nearest int, see the 173 sRGB(double linear /*range 0.0 .. 1.0*/) 181 return sRGB(fixed_linear / 65535.); 195 return sRGB((double)component / alpha); 236 * sRGB transform, given an 8-bit value which might be either sRGB or power-law. 360 printf(" --sRGB-16bit"); 378 "sRGB-gray" [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
xpsobjectmodel.h | 749 } sRGB; [all...] |
/prebuilts/tools/common/m2/repository/com/google/android/apps/common/testing/accessibility/framework/accessibility-test-framework/2.0/ |
accessibility-test-framework-2.0.jar | |
/prebuilts/misc/common/robolectric/lib/ |
accessibility-test-framework-2.1.jar | |
/prebuilts/tools/common/m2/repository/com/google/android/apps/common/testing/accessibility/framework/accessibility-test-framework/2.1/ |
accessibility-test-framework-2.1.jar | |
/prebuilts/devtools/tools/lib/ |
hierarchyviewer2lib.jar | |
/prebuilts/gradle-plugin/com/android/tools/hierarchyviewer2lib/24.4.0-beta6/ |
hierarchyviewer2lib-24.4.0-beta6.jar | |
/prebuilts/gradle-plugin/com/android/tools/hierarchyviewer2lib/24.5.0/ |
hierarchyviewer2lib-24.5.0.jar | |
/prebuilts/gradle-plugin/com/android/tools/hierarchyviewer2lib/25.0.0-alpha1/ |
hierarchyviewer2lib-25.0.0-alpha1.jar | |
/prebuilts/gradle-plugin/com/android/tools/hierarchyviewer2lib/25.3.0/ |
hierarchyviewer2lib-25.3.0.jar | |
/prebuilts/gradle-plugin/com/android/tools/hierarchyviewer2lib/25.3.0-alpha1/ |
hierarchyviewer2lib-25.3.0-alpha1.jar | |
/prebuilts/gradle-plugin/com/android/tools/hierarchyviewer2lib/25.3.0-beta1/ |
hierarchyviewer2lib-25.3.0-beta1.jar | |