Searched defs:alphaType (Results 1 - 14 of 14) sorted by relevance

/external/skia/bench/
H A DCodecBench.cpp53 SkAlphaType alphaType; local
56 SkAssertResult(SkColorTypeValidateAlphaType(fColorType, fInfo.alphaType(),
57 &alphaType));
58 if (alphaType != fInfo.alphaType()) {
59 fInfo = fInfo.makeAlphaType(alphaType);
H A Dnanobench.cpp683 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 DSkImageInfo.cpp16 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 DSkImageDecoder_astc.cpp124 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 DSkImageDecoder_ktx.cpp73 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 DSkImageDecoder_libwebp.cpp300 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 DSkImageDecoder_libpng.cpp336 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 DSkImageDecoder_libjpeg.cpp601 const SkAlphaType alphaType = kAlpha_8_SkColorType == colorType ? local
612 colorType, alphaType));
638 colorType, alphaType));
652 colorType, alphaType));
/external/skia/tools/
H A Dsk_tool_utils.cpp55 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 Dsk_types.h62 sk_alphatype_t alphaType; member in struct:__anon13788
/external/skia/dm/
H A DDMSrcSink.cpp119 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 DSkImageInfo.h117 * 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 DSkBitmap.h74 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 DSkCodec_libbmp.cpp27 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...]

Completed in 278 milliseconds