/external/skia/src/core/ |
D | SkImageInfo.cpp | 16 static bool alpha_type_is_valid(SkAlphaType alphaType) { in alpha_type_is_valid() argument 17 return (alphaType >= 0) && (alphaType <= kLastEnum_SkAlphaType); in alpha_type_is_valid() 49 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType() argument 53 alphaType = kUnknown_SkAlphaType; in SkColorTypeValidateAlphaType() 56 if (kUnpremul_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 57 alphaType = kPremul_SkAlphaType; in SkColorTypeValidateAlphaType() 65 if (kUnknown_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 71 alphaType = kOpaque_SkAlphaType; in SkColorTypeValidateAlphaType() 77 *canonical = alphaType; in SkColorTypeValidateAlphaType()
|
D | SkConfig8888.cpp | 195 dstPI.fAlphaType = dstInfo.alphaType(); in CopyPixels() 201 srcPI.fAlphaType = srcInfo.alphaType(); in CopyPixels() 218 if (srcInfo.alphaType() != dstInfo.alphaType()) { in CopyPixels() 246 if (srcInfo.alphaType() == kUnpremul_SkAlphaType) { in CopyPixels() 279 if (dstInfo.alphaType() == kUnpremul_SkAlphaType) { in CopyPixels()
|
D | SkBitmap.cpp | 117 SkAlphaType newAT = info.alphaType(); in setInfo() 118 if (!SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &newAT)) { in setInfo() 155 if (fInfo.alphaType() != newAlphaType) { in setAlphaType() 193 switch (prInfo.alphaType()) { in setPixelRef() 195 SkASSERT(fInfo.alphaType() == kUnknown_SkAlphaType); in setPixelRef() 199 SkASSERT(fInfo.alphaType() == kOpaque_SkAlphaType || in setPixelRef() 200 fInfo.alphaType() == kPremul_SkAlphaType); in setPixelRef() 203 SkASSERT(fInfo.alphaType() == kOpaque_SkAlphaType || in setPixelRef() 204 fInfo.alphaType() == kUnpremul_SkAlphaType); in setPixelRef() 751 this->colorType(), this->alphaType())); in extractSubset() [all …]
|
D | SkBitmapDevice.cpp | 40 switch (info.alphaType()) { in valid_for_bitmap_device() 48 SkAlphaType canonicalAlphaType = info.alphaType(); in valid_for_bitmap_device() 88 SkAlphaType newAT = origInfo.alphaType(); in Create()
|
/external/skia/src/codec/ |
D | SkWbmpCodec.cpp | 33 static inline bool valid_color_type(SkColorType colorType, SkAlphaType alphaType) { in valid_color_type() argument 40 return kOpaque_SkAlphaType == alphaType; in valid_color_type() 130 if (!valid_color_type(info.colorType(), info.alphaType()) || in onGetPixels() 131 !valid_alpha(info.alphaType(), this->getInfo().alphaType())) { in onGetPixels() 198 if (!valid_color_type(dstInfo.colorType(), dstInfo.alphaType()) || in onStartScanlineDecode() 199 !valid_alpha(dstInfo.alphaType(), this->getInfo().alphaType())) { in onStartScanlineDecode()
|
D | SkPngCodec.cpp | 249 SkAlphaType alphaType = kUnknown_SkAlphaType; in read_header() local 261 alphaType = png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) ? in read_header() 268 alphaType = kUnpremul_SkAlphaType; in read_header() 270 alphaType = kOpaque_SkAlphaType; in read_header() 287 alphaType = kUnpremul_SkAlphaType; in read_header() 290 alphaType = kOpaque_SkAlphaType; in read_header() 297 alphaType = kUnpremul_SkAlphaType; in read_header() 301 alphaType = kUnpremul_SkAlphaType; in read_header() 319 *imageInfo = SkImageInfo::Make(origWidth, origHeight, colorType, alphaType, profileType); in read_header() 380 if (!this->decodePalette(kPremul_SkAlphaType == requestedInfo.alphaType(), in initializeSwizzler() [all …]
|
D | SkCodecPriv.h | 129 if (!valid_alpha(dst.alphaType(), src.alphaType())) { in conversion_possible() 138 return kOpaque_SkAlphaType == dst.alphaType(); in conversion_possible() 140 if (kOpaque_SkAlphaType != dst.alphaType()) { in conversion_possible()
|
D | SkBmpCodec.cpp | 383 SkAlphaType alphaType = kOpaque_SkAlphaType; in ReadHeader() local 392 alphaType = kUnpremul_SkAlphaType; in ReadHeader() 402 alphaType = kUnpremul_SkAlphaType; in ReadHeader() 488 bool isOpaque = kOpaque_SkAlphaType == alphaType; in ReadHeader() 490 alphaType = kUnpremul_SkAlphaType; in ReadHeader() 495 colorType, alphaType); in ReadHeader()
|
D | SkWebpCodec.cpp | 92 if (!valid_alpha(dst.alphaType(), src.alphaType())) { in webp_conversion_possible() 102 return src.alphaType() == kOpaque_SkAlphaType; in webp_conversion_possible() 222 dstInfo.alphaType() == kPremul_SkAlphaType); in onGetPixels()
|
D | SkMaskSwizzler.cpp | 238 if (kOpaque_SkAlphaType == srcInfo.alphaType()) { in CreateMaskSwizzler() 241 switch (dstInfo.alphaType()) { in CreateMaskSwizzler() 263 if (kOpaque_SkAlphaType == srcInfo.alphaType()) { in CreateMaskSwizzler() 266 switch (dstInfo.alphaType()) { in CreateMaskSwizzler() 288 if (kOpaque_SkAlphaType == srcInfo.alphaType()) { in CreateMaskSwizzler() 291 switch (dstInfo.alphaType()) { in CreateMaskSwizzler()
|
D | SkAndroidCodec.cpp | 94 if (kOpaque_SkAlphaType == this->getInfo().alphaType()) { in computeOutputColorType() 113 if (kOpaque_SkAlphaType == this->getInfo().alphaType()) { in computeOutputAlphaType()
|
/external/skia/bench/ |
D | CodecBench.cpp | 19 SkAlphaType alphaType) in CodecBench() argument 21 , fAlphaType(alphaType) in CodecBench() 26 alpha_type_to_str(alphaType)); in CodecBench()
|
D | CodecBenchPriv.h | 30 inline const char* alpha_type_to_str(SkAlphaType alphaType) { in alpha_type_to_str() argument 31 switch (alphaType) { in alpha_type_to_str()
|
D | CodecBench.h | 23 CodecBench(SkString basename, SkData* encoded, SkColorType colorType, SkAlphaType alphaType);
|
D | nanobench.cpp | 748 SkAlphaType alphaType = codec->getInfo().alphaType(); in rawNext() local 749 switch (alphaType) { in rawNext() 758 alphaType = kUnpremul_SkAlphaType; in rawNext() 762 alphaType = kPremul_SkAlphaType; in rawNext() 775 codec->getInfo().makeColorType(colorType).makeAlphaType(alphaType); in rawNext() 790 encoded, colorType, alphaType); in rawNext()
|
/external/skia/src/images/ |
D | SkImageDecoder_astc.cpp | 124 SkAlphaType alphaType = kOpaque_SkAlphaType; in onDecode() local 126 alphaType = kUnpremul_SkAlphaType; in onDecode() 128 alphaType = kPremul_SkAlphaType; in onDecode() 132 bm->setInfo(SkImageInfo::MakeN32(sampler.scaledWidth(), sampler.scaledHeight(), alphaType)); in onDecode()
|
D | SkImageDecoder_ktx.cpp | 74 SkAlphaType alphaType = kOpaque_SkAlphaType; in onDecode() local 77 alphaType = kUnpremul_SkAlphaType; in onDecode() 84 alphaType = kPremul_SkAlphaType; in onDecode() 114 bm->setInfo(SkImageInfo::MakeN32(w, h, alphaType)); in onDecode() 214 SkASSERT(bm->alphaType() == kPremul_SkAlphaType); in onDecode()
|
D | SkImageDecoder_libwebp.cpp | 275 SkAlphaType alphaType = kOpaque_SkAlphaType; in setDecodeConfig() local 278 alphaType = kUnpremul_SkAlphaType; in setDecodeConfig() 280 alphaType = kPremul_SkAlphaType; in setDecodeConfig() 283 return decodedBitmap->setInfo(SkImageInfo::Make(width, height, colorType, alphaType)); in setDecodeConfig()
|
/external/skia/src/gpu/ |
D | GrSurfacePriv.h | 39 SkImageInfo info(SkAlphaType alphaType) const { return fSurface->info(alphaType); } in info() argument
|
D | GrSurface.cpp | 119 SkImageInfo GrSurface::info(SkAlphaType alphaType) const { in info() 125 return SkImageInfo::Make(this->width(), this->height(), colorType, alphaType, in info()
|
/external/skia/src/utils/mac/ |
D | SkCreateCGImageRef.cpp | 82 *info = ComputeCGAlphaInfo_RGBA(bm.alphaType()); in getBitmapInfo() 86 *info = ComputeCGAlphaInfo_BGRA(bm.alphaType()); in getBitmapInfo() 254 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(info.alphaType()); in SkCopyPixelsFromCGImage() 258 cg_bitmap_info = ComputeCGAlphaInfo_BGRA(info.alphaType()); in SkCopyPixelsFromCGImage()
|
/external/skia/src/android/ |
D | SkBitmapRegionCanvas.cpp | 33 SkAlphaType dstAlphaType = fDecoder->getInfo().alphaType(); in decodeRegion() 136 SkImageInfo info = SkImageInfo::Make(0, 0, colorType, fDecoder->getInfo().alphaType(), in conversionSupported()
|
/external/skia/dm/ |
D | DM.cpp | 408 if (codec->getInfo().alphaType() == kOpaque_SkAlphaType) { in push_codec_srcs() 421 codec->getInfo().alphaType(), 1.0f); in push_codec_srcs() 428 for (SkAlphaType alphaType : alphaModes) { in push_codec_srcs() local 432 kOpaque_SkAlphaType != alphaType) { in push_codec_srcs() 436 push_codec_src(path, mode, colorType, alphaType, scale); in push_codec_srcs() 465 for (SkAlphaType alphaType : alphaModes) { in push_codec_srcs() local 467 alphaType, sampleSize); in push_codec_srcs() 470 alphaType, sampleSize); in push_codec_srcs()
|
/external/skia/include/core/ |
D | SkBitmap.h | 87 SkAlphaType alphaType() const { return fInfo.alphaType(); } in alphaType() function 189 return SkAlphaTypeIsOpaque(this->alphaType()); in isOpaque()
|
D | SkImageInfo.h | 134 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, 224 SkAlphaType alphaType() const { return fAlphaType; } in alphaType() function
|