Searched defs:alphaType (Results 1 - 25 of 35) sorted by relevance

12

/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
/external/skia/include/core/
H A DSkCrossContextImageData.h43 SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace)
44 : fAlphaType(alphaType)
41 SkCrossContextImageData(const GrBackendTextureDesc& desc, std::unique_ptr<GrExternalTextureData> textureData, SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) argument
H A DSkPixmap.h72 SkAlphaType alphaType() const { return fInfo.alphaType(); } function in class:SkPixmap
H A DSkBitmap.h87 SkAlphaType alphaType() const { return fInfo.alphaType(); } function in class:SkBitmap
132 * Set the bitmap's alphaType, returning true on success. If false is
133 * returned, then the specified new alphaType is incompatible with the
134 * colortype, and the current alphaType is unchanged.
190 return SkAlphaTypeIsOpaque(this->alphaType());
H A DSkImageInfo.h146 * Return true if alphaType is supported by colorType. If there is a canonical
147 * alphaType for this colorType, return it in canonical.
149 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType,
235 SkAlphaType alphaType() const { return fAlphaType; } function in struct:SkImageInfo
/external/skia/src/gpu/
H A DGrBitmapTextureMaker.cpp66 SkAlphaType GrBitmapTextureMaker::alphaType() const { function in class:GrBitmapTextureMaker
67 return fBitmap.alphaType();
H A DGrImageTextureMaker.cpp57 SkAlphaType GrImageTextureMaker::alphaType() const { function in class:GrImageTextureMaker
58 return fCacher->info().alphaType();
H A DGrTextureAdjuster.cpp18 SkAlphaType alphaType,
25 , fAlphaType(alphaType)
17 GrTextureAdjuster(GrContext* context, sk_sp<GrTextureProxy> original, SkAlphaType alphaType, const SkIRect& contentArea, uint32_t uniqueID, SkColorSpace* cs) argument
/external/skia/gm/
H A Dimagealphathreshold.cpp89 SkAlphaType alphaType) {
100 SkImageInfo info = SkImageInfo::Make(width, height, ct, alphaType, std::move(cs));
88 make_color_matching_surface(SkCanvas* canvas, int width, int height, SkAlphaType alphaType) argument
H A Dencode-srgb.cpp40 static void make_index8(SkBitmap* bitmap, SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) { argument
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, argument
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...]
H A Dall_bitmap_configs.cpp219 static uint32_t make_pixel(int x, int y, SkAlphaType alphaType) { argument
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);
246 make_color_test_bitmap_variant( SkColorType colorType, SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace, SkBitmap* bm) argument
/external/skia/src/core/
H A DSkImageInfo.cpp12 static bool alpha_type_is_valid(SkAlphaType alphaType) { argument
13 return (alphaType >= 0) && (alphaType <= kLastEnum_SkAlphaType);
63 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, argument
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...]
H A DSkSpecialImage.cpp123 this->alphaType());
228 SkAlphaType alphaType() const override { return fBitmap.alphaType(); }
350 SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) {
351 return sk_make_sp<SkImage_Gpu>(context, kNeedNewImageUniqueID, alphaType,
374 SkAlphaType alphaType() const override { return fAlphaType; }
413 this->alphaType(), fColorSpace);
349 wrap_proxy_in_image(GrContext* context, sk_sp<GrTextureProxy> proxy, SkAlphaType alphaType, sk_sp<SkColorSpace> colorSpace) argument
H A DSkLinearBitmapPipeline.cpp295 template <SkAlphaType alphaType>
326 if (alphaType == kUnpremul_SkAlphaType) {
374 SkAlphaType alphaType = srcImageInfo.alphaType(); local
376 alphaType = kUnpremul_SkAlphaType;
382 auto blenderStage = this->chooseBlenderForShading(alphaType, postAlpha, allocator);
430 if (blendMode == SkBlendMode::kSrcOver && srcPixmap.info().alphaType() == kOpaque_SkAlphaType) {
708 SkAlphaType alphaType,
712 if (alphaType == kUnpremul_SkAlphaType) {
707 chooseBlenderForShading( SkAlphaType alphaType, float postAlpha, SkArenaAlloc* allocator) argument
/external/skia/src/ports/
H A DSkImageGeneratorCG.cpp62 SkAlphaType alphaType = hasAlpha ? kPremul_SkAlphaType : kOpaque_SkAlphaType; local
63 SkImageInfo info = SkImageInfo::MakeS32(width, height, alphaType);
89 switch (info.alphaType()) {
91 if (kOpaque_SkAlphaType != this->getInfo().alphaType()) {
H A DSkImageGeneratorWIC.cpp80 SkAlphaType alphaType = kPremul_SkAlphaType; local
118 alphaType = kOpaque_SkAlphaType;
123 SkImageInfo info = SkImageInfo::MakeS32(width, height, alphaType);
153 if (kUnpremul_SkAlphaType == info.alphaType()) {
/external/skia/include/codec/
H A DSkEncodedInfo.h131 SkAlphaType alphaType = (kOpaque_Alpha == fAlpha) ? kOpaque_SkAlphaType : local
134 alphaType, colorSpace);
/external/skia/src/images/
H A DSkPNGImageEncoder.cpp60 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(); local
197 switch (alphaType) {
211 const bool isOpaque = (kOpaque_SkAlphaType == alphaType);
[all...]
/external/skia/src/codec/
H A DSkCodecPriv.h122 static inline uint64_t get_color_table_fill_value(SkColorType dstColorType, SkAlphaType alphaType, argument
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);
H A DSkBmpCodec.cpp654 const SkAlphaType alphaType = select_xform_alpha(dstInfo.alphaType(), local
655 this->getInfo().alphaType());
657 alphaType));
H A DSkGifCodec.cpp104 const auto alphaType = reader->firstFrameHasAlpha() ? kUnpremul_SkAlphaType local
108 colorType, alphaType,
172 const SkAlphaType xformAlphaType = select_xform_alpha(dstInfo.alphaType(),
173 this->getInfo().alphaType());
283 if (kPremul_SkAlphaType == dstInfo.alphaType()) {
513 const SkAlphaType xformAlphaType = select_xform_alpha(dstInfo.alphaType(),
514 this->getInfo().alphaType());
/external/skia/src/pdf/
H A DSkPDFBitmap.cpp36 dst->setInfo(SkImageInfo::MakeN32(image->width(), image->height(), image->alphaType()));
186 SkAlphaType alphaType = bm.alphaType(); local
196 if (alphaType == kPremul_SkAlphaType) {
310 SkAlphaType alphaType) {
332 if (alphaType == kPremul_SkAlphaType) {
376 bitmap.alphaType()));
308 make_indexed_color_space( const SkColorTable* table, SkAlphaType alphaType) argument
/external/skia/include/c/
H A Dsk_types.h90 sk_alphatype_t alphaType; member in struct:__anon16833
/external/skia/src/image/
H A DSkImage.cpp83 SkAlphaType SkImage::alphaType() const { function in class:SkImage

Completed in 460 milliseconds

12