/external/skia/bench/ |
CodecBenchPriv.h | 28 inline const char* alpha_type_to_str(SkAlphaType alphaType) { 29 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 | 27 if (kUnknown_SkColorType == info.colorType() || kUnknown_SkAlphaType == info.alphaType()) { 31 if (kOpaque_SkAlphaType != info.alphaType() && 45 * Returns true if |info| contains a valid combination of width, height, colorType, alphaType, 62 * Returns true if |info| contains a valid combination of width, height, colorType, alphaType, 79 * Returns true if |info| contains a valid combination of width, height, colorType, alphaType, 128 if (kOpaque_SkAlphaType == dst.alphaType() && kOpaque_SkAlphaType != src.alphaType()) {
|
SkImageInfo.cpp | 73 static bool alpha_type_is_valid(SkAlphaType alphaType) { 74 return (alphaType >= 0) && (alphaType <= kLastEnum_SkAlphaType); 124 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, 128 alphaType = kUnknown_SkAlphaType; 131 if (kUnpremul_SkAlphaType == alphaType) { 132 alphaType = kPremul_SkAlphaType; 139 if (kUnknown_SkAlphaType == alphaType) { 145 alphaType = kOpaque_SkAlphaType; 151 *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 | 31 if (dstInfo.alphaType() != srcInfo.alphaType() && 32 kOpaque_SkAlphaType != dstInfo.alphaType() && 33 kOpaque_SkAlphaType != srcInfo.alphaType()) 60 if (kPremul_SkAlphaType == dstInfo.alphaType() && 61 kUnpremul_SkAlphaType == srcInfo.alphaType()) 64 } else if (kUnpremul_SkAlphaType == dstInfo.alphaType() && 65 kPremul_SkAlphaType == srcInfo.alphaType()) { 95 if (kPremul_SkAlphaType == srcInfo.alphaType() && 96 (kUnpremul_SkAlphaType == dstInfo.alphaType() || [all...] |
SkColorSpaceXform_A2B.h | 27 int count, SkAlphaType alphaType) const override;
|
/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(SkBitmap* bitmap, SkColorType colorType, SkAlphaType alphaType, 46 alphaType = kOpaque_SkAlphaType; 50 alphaType = kOpaque_SkAlphaType; 53 resource = (kOpaque_SkAlphaType == alphaType) ? "color_wheel.jpg" 61 .makeAlphaType(alphaType) 139 for (SkAlphaType alphaType : alphaTypes) { 142 make(&bitmap, colorType, alphaType, colorSpace);
|
all_bitmap_configs.cpp | 177 static uint32_t make_pixel(int x, int y, SkAlphaType alphaType) { 190 switch (alphaType) { 206 SkAlphaType alphaType, 211 SkASSERT(alphaType == kPremul_SkAlphaType || alphaType == kUnpremul_SkAlphaType); 213 SkImageInfo::Make(SCALE, SCALE, colorType, alphaType, colorSpace)); 218 *pm.writable_addr32(x, y) = make_pixel(x, y, alphaType); 232 for (auto alphaType : {kPremul_SkAlphaType, kUnpremul_SkAlphaType}) { 236 make_color_test_bitmap_variant(colorType, alphaType, colorSpace, &bm);
|
/external/skia/include/core/ |
SkColorSpaceXform.h | 52 * @param alphaType Describes alpha properties of the |dst| (and |src|) 59 SkAlphaType alphaType) const;
|
/external/skia/src/gpu/ |
GrBitmapTextureMaker.h | 30 SkAlphaType alphaType() const override;
|
GrImageTextureMaker.h | 34 SkAlphaType alphaType() const override;
|
GrImageTextureMaker.cpp | 50 SkAlphaType GrImageTextureMaker::alphaType() const { 51 return fClient->alphaType();
|
GrBitmapTextureMaker.cpp | 72 SkAlphaType GrBitmapTextureMaker::alphaType() const { 73 return fBitmap.alphaType();
|
GrSurfaceContext.cpp | 55 if (kUnpremul_SkAlphaType == dstInfo.alphaType()) { 77 if (kUnpremul_SkAlphaType == srcInfo.alphaType()) {
|
/external/skia/src/codec/ |
SkCodecPriv.h | 122 static inline uint64_t get_color_table_fill_value(SkColorType dstColorType, SkAlphaType alphaType, 139 srcFormat, &srcColor, 1, alphaType)); 286 return kPremul_SkAlphaType == dstInfo.alphaType() && 323 if (!valid_alpha(dst.alphaType(), src.alphaType())) { 335 return kOpaque_SkAlphaType == src.alphaType(); 338 kOpaque_SkAlphaType == src.alphaType() && !needs_color_xform(dst, src, false);
|
/external/skia/samplecode/ |
DecodeFile.h | 26 if (requireUnpremul && kPremul_SkAlphaType == info.alphaType()) {
|
/external/skia/src/images/ |
SkWebpEncoder.cpp | 51 switch (info.alphaType()) { 63 switch (info.alphaType()) { 81 switch (info.alphaType()) { 96 switch (info.alphaType()) {
|
/external/skia/tools/flags/ |
SkCommonFlagsConfig.cpp | 202 bool useInstanced, bool useDIText, int samples, SkColorType colorType, SkAlphaType alphaType, 210 , fAlphaType(alphaType) 328 SkAlphaType* alphaType, 331 *alphaType = kPremul_SkAlphaType; 343 *alphaType = kOpaque_SkAlphaType; 418 SkAlphaType alphaType = kPremul_SkAlphaType; 450 valueOk = parse_option_gpu_color(value, &colorType, &alphaType, &colorSpace); 464 samples, colorType, alphaType, colorSpace, useStencils);
|
/external/skia/src/utils/mac/ |
SkCreateCGImageRef.cpp | 81 *info = ComputeCGAlphaInfo_RGBA(bm.alphaType()); 85 *info = ComputeCGAlphaInfo_BGRA(bm.alphaType()); 185 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(pmap.alphaType()); 189 cg_bitmap_info = ComputeCGAlphaInfo_BGRA(pmap.alphaType()); 210 cg_bitmap_info = ComputeCGAlphaInfo_RGBA(info.alphaType()); 214 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,
|
/frameworks/base/libs/hwui/hwui/ |
Bitmap.cpp | 156 SkAlphaType alphaType; 158 info.colorType(), info.alphaType(), &alphaType), 160 return info.makeAlphaType(alphaType); 215 mInfo.alphaType(), nullptr); 286 void Bitmap::setAlphaType(SkAlphaType alphaType) { 287 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) { 291 mInfo = mInfo.makeAlphaType(alphaType); 299 info().colorType(), info().alphaType(), nullptr)) [all...] |