Searched refs:alphaType (Results 1 - 25 of 72) sorted by relevance

123

/external/skia/bench/
H A DCodecBenchPriv.h30 inline const char* alpha_type_to_str(SkAlphaType alphaType) { argument
31 switch (alphaType) {
H A DCodecBench.cpp19 SkAlphaType alphaType)
21 , fAlphaType(alphaType)
26 alpha_type_to_str(alphaType));
18 CodecBench(SkString baseName, SkData* encoded, SkColorType colorType, SkAlphaType alphaType) argument
H A DCodecBench.h23 CodecBench(SkString basename, SkData* encoded, SkColorType colorType, SkAlphaType alphaType);
H A DAndroidCodecBench.cpp37 if (kUnpremul_SkAlphaType == fInfo.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;
65 if (kUnknown_SkAlphaType == alphaType) {
71 alphaType = kOpaque_SkAlphaType;
77 *canonical = alphaType;
[all...]
H A DSkConfig8888.cpp195 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 DSkBitmap.cpp117 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 DSkWbmpCodec.cpp33 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 DSkCodecPriv.h129 if (!valid_alpha(dst.alphaType(), src.alphaType())) {
138 return kOpaque_SkAlphaType == dst.alphaType();
140 if (kOpaque_SkAlphaType != dst.alphaType()) {
H A DSkBmpCodec.cpp395 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 DSkPngCodec.cpp245 // 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 DSkBmpStandardCodec.h73 bool createColorTable(SkAlphaType alphaType, int* colorCount);
H A DSkWebpCodec.cpp92 if (!valid_alpha(dst.alphaType(), src.alphaType())) {
102 return src.alphaType() == kOpaque_SkAlphaType;
222 dstInfo.alphaType() == kPremul_SkAlphaType);
H A DSkMaskSwizzler.cpp238 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 DSkAndroidCodec.cpp94 if (kOpaque_SkAlphaType == this->getInfo().alphaType()) {
113 if (kOpaque_SkAlphaType == this->getInfo().alphaType()) {
H A DSkCodecImageGenerator.cpp20 if (kUnpremul_SkAlphaType == info.alphaType()) {
/external/skia/src/gpu/
H A DGrSurfacePriv.h39 SkImageInfo info(SkAlphaType alphaType) const { return fSurface->info(alphaType); }
/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.cpp74 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 DSkBitmapRegionCanvas.cpp33 SkAlphaType dstAlphaType = fDecoder->getInfo().alphaType();
136 SkImageInfo info = SkImageInfo::Make(0, 0, colorType, fDecoder->getInfo().alphaType(),
/external/skia/src/utils/mac/
H A DSkCreateCGImageRef.cpp82 *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 Dsk_types.h78 sk_alphatype_t alphaType; member in struct:__anon15889
/external/skia/include/gpu/
H A DSkGr.h76 return SkImageInfo2GrPixelConfig(info.colorType(), info.alphaType(), info.profileType());
/external/skia/experimental/c-api-example/
H A Dskia-c-example.c21 info.alphaType = PREMUL_SK_ALPHATYPE;
/external/skia/include/core/
H A DSkImageInfo.h131 * 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

Completed in 398 milliseconds

123