/external/skia/bench/ |
H A D | CodecBench.cpp | 53 SkAlphaType alphaType; local 56 SkAssertResult(SkColorTypeValidateAlphaType(fColorType, fInfo.alphaType(), 57 &alphaType)); 58 if (alphaType != fInfo.alphaType()) { 59 fInfo = fInfo.makeAlphaType(alphaType);
|
H A D | nanobench.cpp | 683 SkAlphaType alphaType; local 684 if (!SkColorTypeValidateAlphaType(colorType, info.alphaType(), 685 &alphaType)) { 688 if (alphaType != info.alphaType()) { 689 info = info.makeAlphaType(alphaType);
|
/external/skia/src/core/ |
H A D | SkImageInfo.cpp | 16 static bool alpha_type_is_valid(SkAlphaType alphaType) { argument 17 return (alphaType >= 0) && (alphaType <= kLastEnum_SkAlphaType); 49 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, argument 53 alphaType = kUnknown_SkAlphaType; 56 if (kUnpremul_SkAlphaType == alphaType) { 57 alphaType = kPremul_SkAlphaType; 64 if (kUnknown_SkAlphaType == alphaType) { 70 alphaType = kOpaque_SkAlphaType; 76 *canonical = alphaType; [all...] |
/external/skia/src/images/ |
H A D | SkImageDecoder_astc.cpp | 124 SkAlphaType alphaType = kOpaque_SkAlphaType; local 126 alphaType = kUnpremul_SkAlphaType; 128 alphaType = kPremul_SkAlphaType; 132 bm->setInfo(SkImageInfo::MakeN32(sampler.scaledWidth(), sampler.scaledHeight(), alphaType));
|
H A D | SkImageDecoder_ktx.cpp | 73 SkAlphaType alphaType = kOpaque_SkAlphaType; local 76 alphaType = kUnpremul_SkAlphaType; 83 alphaType = kPremul_SkAlphaType; 113 bm->setInfo(SkImageInfo::MakeN32(w, h, alphaType)); 213 SkASSERT(bm->alphaType() == kPremul_SkAlphaType);
|
H A D | SkImageDecoder_libwebp.cpp | 300 SkAlphaType alphaType = kOpaque_SkAlphaType; local 303 alphaType = kUnpremul_SkAlphaType; 305 alphaType = kPremul_SkAlphaType; 308 return decodedBitmap->setInfo(SkImageInfo::Make(width, height, colorType, alphaType));
|
H A D | SkImageDecoder_libpng.cpp | 336 SkAlphaType alphaType = this->getRequireUnpremultipliedColors() ? local 341 colorType, alphaType)); 973 SkAlphaType alphaType = kOpaque_SkAlphaType; local 976 alphaType = kUnpremul_SkAlphaType; 978 alphaType = kPremul_SkAlphaType; 981 decodedBitmap.setAlphaType(alphaType);
|
H A D | SkImageDecoder_libjpeg.cpp | 601 const SkAlphaType alphaType = kAlpha_8_SkColorType == colorType ? local 612 colorType, alphaType)); 638 colorType, alphaType)); 652 colorType, alphaType));
|
/external/skia/tools/ |
H A D | sk_tool_utils.cpp | 55 SkColorType colorType, SkAlphaType alphaType) { 59 const SkImageInfo info = SkImageInfo::Make(tmp.width(), tmp.height(), colorType, alphaType); 54 write_pixels(SkCanvas* canvas, const SkBitmap& bitmap, int x, int y, SkColorType colorType, SkAlphaType alphaType) argument
|
/external/skia/include/c/ |
H A D | sk_types.h | 62 sk_alphatype_t alphaType; member in struct:__anon13783
|
/external/skia/dm/ |
H A D | DMSrcSink.cpp | 119 if (decodeInfo.alphaType() == kUnpremul_SkAlphaType) { 485 SkAlphaType alphaType = kPremul_SkAlphaType; local 486 (void)SkColorTypeValidateAlphaType(fColorType, alphaType, &alphaType); 488 dst->allocPixels(SkImageInfo::Make(size.width(), size.height(), fColorType, alphaType));
|
/external/skia/include/core/ |
H A D | SkImageInfo.h | 117 * Return true if alphaType is supported by colorType. If there is a canonical 118 * alphaType for this colorType, return it in canonical. 120 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, 207 SkAlphaType alphaType() const { return fAlphaType; } function in struct:SkImageInfo
|
H A D | SkBitmap.h | 74 SkAlphaType alphaType() const { return fInfo.alphaType(); } function in class:SkBitmap 118 * Set the bitmap's alphaType, returning true on success. If false is 119 * returned, then the specified new alphaType is incompatible with the 120 * colortype, and the current alphaType is unchanged. 176 return SkAlphaTypeIsOpaque(this->alphaType());
|
/external/skia/src/codec/ |
H A D | SkCodec_libbmp.cpp | 27 if (src.alphaType() != dst.alphaType()) { 28 if (kOpaque_SkAlphaType == src.alphaType()) { 34 switch (dst.alphaType()) { 429 SkAlphaType alphaType = kOpaque_SkAlphaType; local 438 alphaType = kUnpremul_SkAlphaType; 447 alphaType = kUnpremul_SkAlphaType; 515 colorType, alphaType); 599 if (!createColorTable(dstInfo.alphaType(), inputColorCount)) { 626 bool SkBmpCodec::createColorTable(SkAlphaType alphaType, in argument [all...] |