/external/skia/src/core/ |
SkColorSpaceXformSteps.h | 18 bool unpremul = false; member in struct:SkColorSpaceXformSteps::Flags 25 return (unpremul ? 1 : 0)
|
/external/skia/tests/ |
NonlinearBlendingTest.cpp | 31 auto unpremul = skcms_AlphaFormat_Unpremul, local 35 skcms_Transform(&color, bgra, unpremul, &srgb_profile,
|
SkColorSpaceXformStepsTest.cpp | 21 unpremul = kUnpremul_SkAlphaType; local 27 bool unpremul; member in struct:__anon38385 37 true, // src is encoded as f(s)*a,a, so we unpremul to f(s),a before linearizing. 46 // If the src alpha type is unpremul, we'll not need that initial unpremul step. 47 { adobe, srgb, unpremul, premul, false,true,true,true,true }, 48 { srgb, adobe, unpremul, premul, false,true,true,true,true }, 50 // If opaque, we need neither the initial unpremul, nor the premul later. 57 true, // we need to linearize, so we need to unpremul 66 // As in the general case, when we change the alpha type unpremul and premul steps drop out [all...] |
ImageTest.cpp | 520 ERRORF(reporter, "Failed to make unpremul texture image."); 526 SkBitmap unpremul; local 527 unpremul.allocPixels(SkImageInfo::Make(256, 256, kRGBA_8888_SkColorType, 529 if (!texImage->readPixels(unpremul.info(), unpremul.getPixels(), unpremul.rowBytes(), 0, 531 ERRORF(reporter, "Unpremul readback failed."); 536 if (*bmp.getAddr32(x, y) != *unpremul.getAddr32(x, y)) { 537 ERRORF(reporter, "unpremul(0x%08x)->unpremul(0x%08x) at %d, %d." [all...] |
/external/skqp/src/core/ |
SkColorSpaceXformSteps.h | 18 bool unpremul = false; member in struct:SkColorSpaceXformSteps::Flags 25 return (unpremul ? 1 : 0)
|
/external/skqp/tests/ |
NonlinearBlendingTest.cpp | 31 auto unpremul = skcms_AlphaFormat_Unpremul, local 35 skcms_Transform(&color, bgra, unpremul, &srgb_profile,
|
SkColorSpaceXformStepsTest.cpp | 21 unpremul = kUnpremul_SkAlphaType; local 27 bool unpremul; member in struct:__anon39181 37 true, // src is encoded as f(s)*a,a, so we unpremul to f(s),a before linearizing. 46 // If the src alpha type is unpremul, we'll not need that initial unpremul step. 47 { adobe, srgb, unpremul, premul, false,true,true,true,true }, 48 { srgb, adobe, unpremul, premul, false,true,true,true,true }, 50 // If opaque, we need neither the initial unpremul, nor the premul later. 57 true, // we need to linearize, so we need to unpremul 66 // As in the general case, when we change the alpha type unpremul and premul steps drop out [all...] |
ImageTest.cpp | 520 ERRORF(reporter, "Failed to make unpremul texture image."); 526 SkBitmap unpremul; local 527 unpremul.allocPixels(SkImageInfo::Make(256, 256, kRGBA_8888_SkColorType, 529 if (!texImage->readPixels(unpremul.info(), unpremul.getPixels(), unpremul.rowBytes(), 0, 531 ERRORF(reporter, "Unpremul readback failed."); 536 if (*bmp.getAddr32(x, y) != *unpremul.getAddr32(x, y)) { 537 ERRORF(reporter, "unpremul(0x%08x)->unpremul(0x%08x) at %d, %d." [all...] |
/external/skia/tools/gdb/ |
bitmap.py | 41 unpremul = 3 variable in class:AlphaType 71 if alpha_type == AlphaType.unpremul.value:
|
/external/skqp/tools/gdb/ |
bitmap.py | 41 unpremul = 3 variable in class:AlphaType 71 if alpha_type == AlphaType.unpremul.value:
|
/external/skia/include/core/ |
SkColor.h | 367 SkRGBA4f<kUnpremul_SkAlphaType> unpremul() const { function in struct:SkRGBA4f
|
/external/skqp/include/core/ |
SkColor.h | 359 SkRGBA4f<kUnpremul_SkAlphaType> unpremul() const { function in struct:SkRGBA4f
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapFactoryTest.java | 599 Bitmap unpremul = BitmapFactory.decodeResource(mRes, R.drawable.premul_data, options); local 601 assertEquals(unpremul.getConfig(), Bitmap.Config.ARGB_8888); 602 assertTrue(premul.getHeight() == 1 && unpremul.getHeight() == 1); 603 assertTrue(premul.getWidth() == unpremul.getWidth() && 607 // verify pixel data - unpremul should have raw values, premul will have rounding errors 610 assertEquals(unpremul.getPixel(i, 0), RAW_COLORS[i]); [all...] |
ImageDecoderTest.java | 464 // Require unpremul 468 Bitmap unpremul = ImageDecoder.decodeBitmap(src, local 470 assertNotNull(unpremul); 471 assertEquals(unpremul.hasAlpha(), hasAlpha[i]); 472 assertFalse(unpremul.isPremultiplied()); [all...] |
/external/skia/src/gpu/ |
GrContextPriv.cpp | 289 // We only allow premul <-> unpremul conversions for some formats 328 bool unpremul = SkToBool(kUnpremul_PixelOpsFlag & pixelOpsFlags); local 330 if (!valid_pixel_conversion(dstColorType, srcProxy->config(), unpremul)) { 337 // unpremul step to writeSurfacePixels's premul step (which is determined empirically in 340 unpremul && 415 bool convert = unpremul; 445 SkASSERT(!unpremul || !dstAlwaysOpaque); 448 : unpremul ? kUnpremul_SkAlphaType : kPremul_SkAlphaType; 523 // For canvas2D putImageData performance we have a special code path for unpremul RGBA_8888 srcs [all...] |
/external/skqp/src/gpu/ |
GrContext.cpp | 389 // We only allow premul <-> unpremul conversions for some formats 428 // For canvas2D putImageData performance we have a special code path for unpremul RGBA_8888 srcs 614 bool unpremul = SkToBool(kUnpremul_PixelOpsFlag & pixelOpsFlags); local 616 if (!valid_pixel_conversion(dstColorType, srcProxy->config(), unpremul)) { 623 // unpremul step to writeSurfacePixels's premul step (which is determined empirically in 626 unpremul && 701 bool convert = unpremul; 731 SkASSERT(!unpremul || !dstAlwaysOpaque); 734 : unpremul ? kUnpremul_SkAlphaType : kPremul_SkAlphaType; [all...] |