/external/skia/bench/ |
H A D | CodecBenchPriv.h | 30 inline const char* alpha_type_to_str(SkAlphaType alphaType) { argument 31 switch (alphaType) {
|
H A D | CodecBench.cpp | 19 SkAlphaType alphaType) 21 , fAlphaType(alphaType) 26 alpha_type_to_str(alphaType)); 18 CodecBench(SkString baseName, SkData* encoded, SkColorType colorType, SkAlphaType alphaType) argument
|
H A D | CodecBench.h | 23 CodecBench(SkString basename, SkData* encoded, SkColorType colorType, SkAlphaType alphaType);
|
H A D | AndroidCodecBench.cpp | 37 if (kUnpremul_SkAlphaType == fInfo.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; 65 if (kUnknown_SkAlphaType == alphaType) { 71 alphaType = kOpaque_SkAlphaType; 77 *canonical = alphaType; [all...] |
H A D | SkConfig8888.cpp | 195 dstPI.fAlphaType = dstInfo.alphaType(); 201 srcPI.fAlphaType = srcInfo.alphaType(); 218 if (srcInfo.alphaType() != dstInfo.alphaType()) { 246 if (srcInfo.alphaType() == kUnpremul_SkAlphaType) { 279 if (dstInfo.alphaType() == kUnpremul_SkAlphaType) {
|
H A D | SkBitmap.cpp | 117 SkAlphaType newAT = info.alphaType(); 118 if (!SkColorTypeValidateAlphaType(info.colorType(), info.alphaType(), &newAT)) { 121 // don't look at info.alphaType(), since newAT is the real value... 155 if (fInfo.alphaType() != newAlphaType) { 193 switch (prInfo.alphaType()) { 195 SkASSERT(fInfo.alphaType() == kUnknown_SkAlphaType); 199 SkASSERT(fInfo.alphaType() == kOpaque_SkAlphaType || 200 fInfo.alphaType() == kPremul_SkAlphaType); 203 SkASSERT(fInfo.alphaType() == kOpaque_SkAlphaType || 204 fInfo.alphaType() [all...] |
/external/skia/src/codec/ |
H A D | SkWbmpCodec.cpp | 33 static inline bool valid_color_type(SkColorType colorType, SkAlphaType alphaType) { argument 40 return kOpaque_SkAlphaType == alphaType; 130 if (!valid_color_type(info.colorType(), info.alphaType()) || 131 !valid_alpha(info.alphaType(), this->getInfo().alphaType())) { 198 if (!valid_color_type(dstInfo.colorType(), dstInfo.alphaType()) || 199 !valid_alpha(dstInfo.alphaType(), this->getInfo().alphaType())) {
|
H A D | SkCodecPriv.h | 129 if (!valid_alpha(dst.alphaType(), src.alphaType())) { 138 return kOpaque_SkAlphaType == dst.alphaType(); 140 if (kOpaque_SkAlphaType != dst.alphaType()) {
|
H A D | SkBmpCodec.cpp | 395 SkAlphaType alphaType = kOpaque_SkAlphaType; local 404 alphaType = kUnpremul_SkAlphaType; 414 alphaType = kUnpremul_SkAlphaType; 499 bool isOpaque = kOpaque_SkAlphaType == alphaType; 501 alphaType = kUnpremul_SkAlphaType; 506 colorType, alphaType);
|
H A D | SkPngCodec.cpp | 245 // Now determine the default colorType and alphaType and set the required transforms. 249 SkAlphaType alphaType = kUnknown_SkAlphaType; local 261 alphaType = png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) ? 268 alphaType = kUnpremul_SkAlphaType; 270 alphaType = kOpaque_SkAlphaType; 287 alphaType = kUnpremul_SkAlphaType; 290 alphaType = kOpaque_SkAlphaType; 297 alphaType = kUnpremul_SkAlphaType; 301 alphaType = kUnpremul_SkAlphaType; 319 *imageInfo = SkImageInfo::Make(origWidth, origHeight, colorType, alphaType, profileTyp [all...] |
H A D | SkBmpStandardCodec.h | 73 bool createColorTable(SkAlphaType alphaType, int* colorCount);
|
H A D | SkWebpCodec.cpp | 92 if (!valid_alpha(dst.alphaType(), src.alphaType())) { 102 return src.alphaType() == kOpaque_SkAlphaType; 222 dstInfo.alphaType() == kPremul_SkAlphaType);
|
H A D | SkMaskSwizzler.cpp | 238 if (kOpaque_SkAlphaType == srcInfo.alphaType()) { 241 switch (dstInfo.alphaType()) { 263 if (kOpaque_SkAlphaType == srcInfo.alphaType()) { 266 switch (dstInfo.alphaType()) { 288 if (kOpaque_SkAlphaType == srcInfo.alphaType()) { 291 switch (dstInfo.alphaType()) {
|
H A D | SkAndroidCodec.cpp | 94 if (kOpaque_SkAlphaType == this->getInfo().alphaType()) { 113 if (kOpaque_SkAlphaType == this->getInfo().alphaType()) {
|
H A D | SkCodecImageGenerator.cpp | 20 if (kUnpremul_SkAlphaType == info.alphaType()) {
|
/external/skia/src/gpu/ |
H A D | GrSurfacePriv.h | 39 SkImageInfo info(SkAlphaType alphaType) const { return fSurface->info(alphaType); }
|
/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 | 74 SkAlphaType alphaType = kOpaque_SkAlphaType; local 77 alphaType = kUnpremul_SkAlphaType; 84 alphaType = kPremul_SkAlphaType; 114 bm->setInfo(SkImageInfo::MakeN32(w, h, alphaType)); 214 SkASSERT(bm->alphaType() == kPremul_SkAlphaType);
|
/external/skia/src/android/ |
H A D | SkBitmapRegionCanvas.cpp | 33 SkAlphaType dstAlphaType = fDecoder->getInfo().alphaType(); 136 SkImageInfo info = SkImageInfo::Make(0, 0, colorType, fDecoder->getInfo().alphaType(),
|
/external/skia/src/utils/mac/ |
H A D | SkCreateCGImageRef.cpp | 82 *info = ComputeCGAlphaInfo_RGBA(bm.alphaType()); 86 *info = ComputeCGAlphaInfo_BGRA(bm.alphaType()); 254 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(info.alphaType()); 258 cg_bitmap_info = ComputeCGAlphaInfo_BGRA(info.alphaType());
|
/external/skia/include/c/ |
H A D | sk_types.h | 78 sk_alphatype_t alphaType; member in struct:__anon15889
|
/external/skia/include/gpu/ |
H A D | SkGr.h | 76 return SkImageInfo2GrPixelConfig(info.colorType(), info.alphaType(), info.profileType());
|
/external/skia/experimental/c-api-example/ |
H A D | skia-c-example.c | 21 info.alphaType = PREMUL_SK_ALPHATYPE;
|
/external/skia/include/core/ |
H A D | SkImageInfo.h | 131 * Return true if alphaType is supported by colorType. If there is a canonical 132 * alphaType for this colorType, return it in canonical. 134 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, 224 SkAlphaType alphaType() const { return fAlphaType; } function in struct:SkImageInfo
|