HomeSort by relevance Sort by last modified time
    Searched refs:alphaType (Results 1 - 25 of 80) sorted by null

1 2 3 4

  /external/skia/bench/
CodecBenchPriv.h 30 inline const char* alpha_type_to_str(SkAlphaType alphaType) {
31 switch (alphaType) {
CodecBench.h 23 CodecBench(SkString basename, SkData* encoded, SkColorType colorType, SkAlphaType alphaType);
CodecBench.cpp 19 SkAlphaType alphaType)
21 , fAlphaType(alphaType)
26 alpha_type_to_str(alphaType));
AndroidCodecBench.cpp 37 if (kUnpremul_SkAlphaType == fInfo.alphaType()) {
  /external/skia/src/core/
SkImageInfo.cpp 16 static bool alpha_type_is_valid(SkAlphaType alphaType) {
17 return (alphaType >= 0) && (alphaType <= kLastEnum_SkAlphaType);
49 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType,
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...]
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) {
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() == kUnpremul_SkAlphaType)
    [all...]
  /external/skia/src/gpu/
GrSurfacePriv.h 39 SkImageInfo info(SkAlphaType alphaType) const { return fSurface->info(alphaType); }
  /external/skia/src/codec/
SkWbmpCodec.cpp 33 static inline bool valid_color_type(SkColorType colorType, SkAlphaType alphaType) {
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())) {
SkCodecPriv.h 129 if (!valid_alpha(dst.alphaType(), src.alphaType())) {
138 return kOpaque_SkAlphaType == dst.alphaType();
140 if (kOpaque_SkAlphaType != dst.alphaType()) {
SkBmpCodec.cpp 383 SkAlphaType alphaType = kOpaque_SkAlphaType;
392 alphaType = kUnpremul_SkAlphaType;
402 alphaType = kUnpremul_SkAlphaType;
488 bool isOpaque = kOpaque_SkAlphaType == alphaType;
490 alphaType = kUnpremul_SkAlphaType;
495 colorType, alphaType);
SkPngCodec.cpp 245 // Now determine the default colorType and alphaType and set the required transforms.
249 SkAlphaType alphaType = kUnknown_SkAlphaType;
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, profileType)
    [all...]
SkBmpStandardCodec.h 73 bool createColorTable(SkAlphaType alphaType, int* colorCount);
SkWebpCodec.cpp 92 if (!valid_alpha(dst.alphaType(), src.alphaType())) {
102 return src.alphaType() == kOpaque_SkAlphaType;
222 dstInfo.alphaType() == kPremul_SkAlphaType);
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()) {
SkAndroidCodec.cpp 94 if (kOpaque_SkAlphaType == this->getInfo().alphaType()) {
113 if (kOpaque_SkAlphaType == this->getInfo().alphaType()) {
  /external/skia/src/images/
SkImageDecoder_astc.cpp 124 SkAlphaType alphaType = kOpaque_SkAlphaType;
126 alphaType = kUnpremul_SkAlphaType;
128 alphaType = kPremul_SkAlphaType;
132 bm->setInfo(SkImageInfo::MakeN32(sampler.scaledWidth(), sampler.scaledHeight(), alphaType));
SkImageDecoder_ktx.cpp 74 SkAlphaType alphaType = kOpaque_SkAlphaType;
77 alphaType = kUnpremul_SkAlphaType;
84 alphaType = kPremul_SkAlphaType;
114 bm->setInfo(SkImageInfo::MakeN32(w, h, alphaType));
214 SkASSERT(bm->alphaType() == kPremul_SkAlphaType);
  /frameworks/base/core/jni/
android_view_TextureView.cpp 76 SkAlphaType alphaType = kOpaque_SkAlphaType;
80 alphaType = kPremul_SkAlphaType;
84 alphaType = kOpaque_SkAlphaType;
88 alphaType = kOpaque_SkAlphaType;
93 return SkImageInfo::Make(buffer.width, buffer.height, colorType, alphaType);
  /external/skia/src/android/
SkBitmapRegionCanvas.cpp 33 SkAlphaType dstAlphaType = fDecoder->getInfo().alphaType();
136 SkImageInfo info = SkImageInfo::Make(0, 0, colorType, fDecoder->getInfo().alphaType(),
  /frameworks/base/core/jni/android/graphics/
Bitmap.cpp 65 SkAlphaType alphaType;
67 newInfo.colorType(), newInfo.alphaType(), &alphaType),
77 changeAlphaType(alphaType);
261 void Bitmap::setAlphaType(SkAlphaType alphaType) {
262 if (!SkColorTypeValidateAlphaType(info().colorType(), alphaType, &alphaType)) {
266 mPixelRef->changeAlphaType(alphaType);
483 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D32 : FromColor_D32_Raw;
485 return bitmap.alphaType() == kPremul_SkAlphaType ? FromColor_D4444
    [all...]
Bitmap.h 74 void setAlphaType(SkAlphaType alphaType);
  /external/skia/src/utils/mac/
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/
sk_types.h 78 sk_alphatype_t alphaType;
  /external/skia/include/gpu/
SkGr.h 76 return SkImageInfo2GrPixelConfig(info.colorType(), info.alphaType(), info.profileType());

Completed in 203 milliseconds

1 2 3 4