/external/skia/bench/ |
CodecBenchPriv.h | 30 inline const char* alpha_type_to_str(SkAlphaType alphaType) { 31 switch (alphaType) {
|
CodecBench.h | 24 CodecBench(SkString basename, SkData* encoded, SkColorType colorType, SkAlphaType alphaType);
|
CodecBench.cpp | 19 SkAlphaType alphaType) 21 , fAlphaType(alphaType) 26 alpha_type_to_str(alphaType));
|
/external/skia/src/core/ |
SkImageInfoPriv.h | 14 * Returns true if |info| contains a valid combination of width, height, colorType, alphaType, 27 if (kUnknown_SkColorType == info.colorType() || kUnknown_SkAlphaType == info.alphaType()) { 31 if (kOpaque_SkAlphaType != info.alphaType() && 77 if ((kPremul_SkAlphaType == dst.alphaType() && kUnpremul_SkAlphaType == src.alphaType()) || 78 (kUnpremul_SkAlphaType == dst.alphaType() && kPremul_SkAlphaType == src.alphaType())) 102 if (kOpaque_SkAlphaType == dst.alphaType() && kOpaque_SkAlphaType != src.alphaType()) {
|
SkImageInfo.cpp | 12 static bool alpha_type_is_valid(SkAlphaType alphaType) { 13 return (alphaType >= 0) && (alphaType <= kLastEnum_SkAlphaType); 63 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, 67 alphaType = kUnknown_SkAlphaType; 70 if (kUnpremul_SkAlphaType == alphaType) { 71 alphaType = kPremul_SkAlphaType; 79 if (kUnknown_SkAlphaType == alphaType) { 85 alphaType = kOpaque_SkAlphaType; 91 *canonical = alphaType; [all...] |
SkColorSpaceXform_Base.h | 27 int count, SkAlphaType alphaType) const = 0; 60 int count, SkAlphaType alphaType) const override; 64 int count, SkAlphaType alphaType) const;
|
SkConvertPixels.cpp | 30 if (dstInfo.alphaType() != srcInfo.alphaType() && 31 kOpaque_SkAlphaType != dstInfo.alphaType() && 32 kOpaque_SkAlphaType != srcInfo.alphaType()) 59 if (kPremul_SkAlphaType == dstInfo.alphaType() && 60 kUnpremul_SkAlphaType == srcInfo.alphaType()) 63 } else if (kUnpremul_SkAlphaType == dstInfo.alphaType() && 64 kPremul_SkAlphaType == srcInfo.alphaType()) { 94 if (kPremul_SkAlphaType == srcInfo.alphaType() && 95 (kUnpremul_SkAlphaType == dstInfo.alphaType() || [all...] |
SkColorSpaceXform_A2B.h | 30 int count, SkAlphaType alphaType) const override;
|
/external/skia/include/core/ |
SkCrossContextImageData.h | 43 SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) 44 : fAlphaType(alphaType)
|
SkColorSpaceXform.h | 52 * @param alphaType Describes alpha properties of the |dst| (and |src|) 59 SkAlphaType alphaType) const;
|
/external/skia/src/ports/ |
SkImageGeneratorCG.cpp | 62 SkAlphaType alphaType = hasAlpha ? kPremul_SkAlphaType : kOpaque_SkAlphaType; 63 SkImageInfo info = SkImageInfo::MakeS32(width, height, alphaType); 89 switch (info.alphaType()) { 91 if (kOpaque_SkAlphaType != this->getInfo().alphaType()) {
|
SkImageGeneratorWIC.cpp | 80 SkAlphaType alphaType = kPremul_SkAlphaType; 118 alphaType = kOpaque_SkAlphaType; 123 SkImageInfo info = SkImageInfo::MakeS32(width, height, alphaType); 153 if (kUnpremul_SkAlphaType == info.alphaType()) {
|
/external/skia/gm/ |
encode-srgb.cpp | 40 static void make_index8(SkBitmap* bitmap, SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) { 45 auto toPMColor = [alphaType, colorSpace](SkColor color) { 47 if (kPremul_SkAlphaType != alphaType) { 72 alphaType, colorSpace); 82 static void make(SkBitmap* bitmap, SkColorType colorType, SkAlphaType alphaType, 87 make_index8(bitmap, alphaType, colorSpace); 91 alphaType = kOpaque_SkAlphaType; 95 alphaType = kOpaque_SkAlphaType; 98 resource = (kOpaque_SkAlphaType == alphaType) ? "color_wheel.jpg" 106 .makeAlphaType(alphaType) [all...] |
all_bitmap_configs.cpp | 219 static uint32_t make_pixel(int x, int y, SkAlphaType alphaType) { 232 switch (alphaType) { 248 SkAlphaType alphaType, 253 SkASSERT(alphaType == kPremul_SkAlphaType || alphaType == kUnpremul_SkAlphaType); 255 SkImageInfo::Make(SCALE, SCALE, colorType, alphaType, colorSpace)); 260 *pm.writable_addr32(x, y) = make_pixel(x, y, alphaType); 274 for (auto alphaType : {kPremul_SkAlphaType, kUnpremul_SkAlphaType}) { 278 make_color_test_bitmap_variant(colorType, alphaType, colorSpace, &bm);
|
/external/skia/src/gpu/ |
GrBitmapTextureMaker.h | 29 SkAlphaType alphaType() const override;
|
GrImageTextureMaker.h | 34 SkAlphaType alphaType() const override;
|
GrBitmapTextureMaker.cpp | 66 SkAlphaType GrBitmapTextureMaker::alphaType() const { 67 return fBitmap.alphaType();
|
GrImageTextureMaker.cpp | 57 SkAlphaType GrImageTextureMaker::alphaType() const { 58 return fCacher->info().alphaType();
|
/external/skia/src/images/ |
SkPNGImageEncoder.cpp | 60 switch (info.alphaType()) { 73 switch (info.alphaType()) { 88 switch (info.alphaType()) { 102 switch (info.alphaType()) { 128 if (kPremul_SkAlphaType == info.alphaType()) { 137 if (kOpaque_SkAlphaType != info.alphaType()) { 196 const SkAlphaType alphaType = pixmap.alphaType(); 197 switch (alphaType) { 211 const bool isOpaque = (kOpaque_SkAlphaType == alphaType); [all...] |
SkWEBPImageEncoder.cpp | 49 switch (info.alphaType()) { 61 switch (info.alphaType()) { 79 switch (info.alphaType()) { 88 switch (info.alphaType()) { 106 switch (info.alphaType()) { 159 if (kPremul_SkAlphaType == pixmap.alphaType()) {
|
/external/skia/src/codec/ |
SkCodecPriv.h | 122 static inline uint64_t get_color_table_fill_value(SkColorType dstColorType, SkAlphaType alphaType, 141 srcFormat, &srcColor, 1, alphaType)); 302 return kPremul_SkAlphaType == dstInfo.alphaType() && 345 if (!valid_alpha(dst.alphaType(), src.alphaType())) { 359 return kOpaque_SkAlphaType == src.alphaType(); 362 kOpaque_SkAlphaType == src.alphaType() && !needs_color_xform(dst, src, false);
|
/external/skia/samplecode/ |
DecodeFile.h | 27 if (requireUnpremul && kPremul_SkAlphaType == info.alphaType()) {
|
/external/skia/src/utils/mac/ |
SkCreateCGImageRef.cpp | 81 *info = ComputeCGAlphaInfo_RGBA(bm.alphaType()); 85 *info = ComputeCGAlphaInfo_BGRA(bm.alphaType()); 187 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(pmap.alphaType()); 191 cg_bitmap_info = ComputeCGAlphaInfo_BGRA(pmap.alphaType()); 212 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(info.alphaType()); 216 cg_bitmap_info = ComputeCGAlphaInfo_BGRA(info.alphaType());
|
/frameworks/base/core/jni/ |
android_view_TextureView.cpp | 76 SkAlphaType alphaType = kOpaque_SkAlphaType; 80 alphaType = kPremul_SkAlphaType; 84 alphaType = kOpaque_SkAlphaType; 88 alphaType = kPremul_SkAlphaType; 92 alphaType = kOpaque_SkAlphaType; 97 return SkImageInfo::Make(buffer.width, buffer.height, colorType, alphaType,
|
/external/skia/include/codec/ |
SkEncodedInfo.h | 131 SkAlphaType alphaType = (kOpaque_Alpha == fAlpha) ? kOpaque_SkAlphaType : 134 alphaType, colorSpace);
|