/dports/www/firefox-legacy/firefox-52.8.0esr/gfx/skia/skia/src/core/ |
H A D | SkImageInfo.cpp | 12 static bool alpha_type_is_valid(SkAlphaType alphaType) { in alpha_type_is_valid() argument 13 return (alphaType >= 0) && (alphaType <= kLastEnum_SkAlphaType); in alpha_type_is_valid() 63 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType() argument 67 alphaType = kUnknown_SkAlphaType; in SkColorTypeValidateAlphaType() 70 if (kUnpremul_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 71 alphaType = kPremul_SkAlphaType; in SkColorTypeValidateAlphaType() 79 if (kUnknown_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 85 alphaType = kOpaque_SkAlphaType; in SkColorTypeValidateAlphaType() 91 *canonical = alphaType; in SkColorTypeValidateAlphaType()
|
/dports/www/firefox-esr/firefox-91.8.0/gfx/skia/skia/src/gpu/effects/ |
H A D | GrBicubicEffect.h | 42 SkAlphaType alphaType() const { return fAlphaType; } in alphaType() function 51 SkAlphaType alphaType) { in Make() argument 56 alphaType); in Make() 67 SkAlphaType alphaType) { in Make() argument 72 alphaType); in Make() 87 SkAlphaType alphaType, 93 wrapModes, modeX, modeY, direction, alphaType)); 104 SkAlphaType alphaType) { in Make() argument 109 alphaType, &domain); in Make() 126 SkAlphaType alphaType);
|
/dports/www/firefox/firefox-99.0/gfx/skia/skia/src/gpu/effects/ |
H A D | GrBicubicEffect.h | 42 SkAlphaType alphaType() const { return fAlphaType; } in alphaType() function 51 SkAlphaType alphaType) { in Make() argument 56 alphaType); in Make() 67 SkAlphaType alphaType) { in Make() argument 72 alphaType); in Make() 87 SkAlphaType alphaType, 93 wrapModes, modeX, modeY, direction, alphaType)); 104 SkAlphaType alphaType) { in Make() argument 109 alphaType, &domain); in Make() 126 SkAlphaType alphaType);
|
/dports/mail/thunderbird/thunderbird-91.8.0/gfx/skia/skia/src/gpu/effects/ |
H A D | GrBicubicEffect.h | 42 SkAlphaType alphaType() const { return fAlphaType; } in alphaType() function 51 SkAlphaType alphaType) { in Make() argument 56 alphaType); in Make() 67 SkAlphaType alphaType) { in Make() argument 72 alphaType); in Make() 87 SkAlphaType alphaType, 93 wrapModes, modeX, modeY, direction, alphaType)); 104 SkAlphaType alphaType) { in Make() argument 109 alphaType, &domain); in Make() 126 SkAlphaType alphaType);
|
/dports/lang/spidermonkey78/firefox-78.9.0/gfx/skia/skia/src/gpu/effects/ |
H A D | GrBicubicEffect.h | 42 SkAlphaType alphaType() const { return fAlphaType; } in alphaType() function 51 SkAlphaType alphaType) { in Make() argument 56 alphaType); in Make() 67 SkAlphaType alphaType) { in Make() argument 72 alphaType); in Make() 87 SkAlphaType alphaType, 93 wrapModes, modeX, modeY, direction, alphaType)); 104 SkAlphaType alphaType) { in Make() argument 109 alphaType, &domain); in Make() 126 SkAlphaType alphaType);
|
/dports/lang/spidermonkey60/firefox-60.9.0/gfx/skia/skia/src/core/ |
H A D | SkConvertPixels.cpp | 32 if (dstInfo.alphaType() != srcInfo.alphaType() && in can_memcpy() 33 kOpaque_SkAlphaType != dstInfo.alphaType() && in can_memcpy() 34 kOpaque_SkAlphaType != srcInfo.alphaType()) in can_memcpy() 61 if (kPremul_SkAlphaType == dstInfo.alphaType() && in swizzle_and_multiply() 62 kUnpremul_SkAlphaType == srcInfo.alphaType()) in swizzle_and_multiply() 66 kPremul_SkAlphaType == srcInfo.alphaType()) { in swizzle_and_multiply() 96 if (kPremul_SkAlphaType == srcInfo.alphaType() && in optimized_color_xform() 128 switch (srcInfo.alphaType()) { in apply_color_xform() 143 xformAlpha = dstInfo.alphaType(); in apply_color_xform() 248 SkAlphaType premulState = srcInfo.alphaType(); in convert_with_pipeline() [all …]
|
H A D | SkImageInfo.cpp | 117 static bool alpha_type_is_valid(SkAlphaType alphaType) { in alpha_type_is_valid() argument 118 return (alphaType >= kUnknown_SkAlphaType) && (alphaType <= kLastEnum_SkAlphaType); in alpha_type_is_valid() 168 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType() argument 172 alphaType = kUnknown_SkAlphaType; in SkColorTypeValidateAlphaType() 175 if (kUnpremul_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 176 alphaType = kPremul_SkAlphaType; in SkColorTypeValidateAlphaType() 184 if (kUnknown_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 192 alphaType = kOpaque_SkAlphaType; in SkColorTypeValidateAlphaType() 198 *canonical = alphaType; in SkColorTypeValidateAlphaType()
|
/dports/www/firefox-legacy/firefox-52.8.0esr/gfx/skia/skia/src/images/ |
H A D | SkPNGImageEncoder.cpp | 61 static transform_scanline_proc choose_proc(SkColorType ct, SkAlphaType alphaType) { in choose_proc() argument 83 if (entry.fColorType == ct && entry.fAlphaType == alphaType) { in choose_proc() 115 if (kOpaque_SkAlphaType != alphaType) { in pack_palette() 116 auto getUnpremulColor = [alphaType](uint8_t color, uint8_t alpha) { in pack_palette() 117 if (kPremul_SkAlphaType == alphaType) { in pack_palette() 173 SkAlphaType alphaType, int colorType, 196 const SkAlphaType alphaType = bitmap.alphaType(); in onEncode() local 197 switch (alphaType) { in onEncode() 211 const bool isOpaque = (kOpaque_SkAlphaType == alphaType); in onEncode() 276 SkAlphaType alphaType, int colorType, in doEncode() argument [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/gfx/skia/skia/src/core/ |
H A D | SkImageInfo.cpp | 75 SkASSERT(SkAlphaTypeIsValid(this->alphaType())); in validate() 79 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType() argument 83 alphaType = kUnknown_SkAlphaType; in SkColorTypeValidateAlphaType() 88 if (kUnpremul_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 89 alphaType = kPremul_SkAlphaType; in SkColorTypeValidateAlphaType() 100 if (kUnknown_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 111 alphaType = kOpaque_SkAlphaType; in SkColorTypeValidateAlphaType() 117 *canonical = alphaType; in SkColorTypeValidateAlphaType()
|
/dports/lang/spidermonkey78/firefox-78.9.0/gfx/skia/skia/src/core/ |
H A D | SkImageInfo.cpp | 75 SkASSERT(SkAlphaTypeIsValid(this->alphaType())); in validate() 79 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType() argument 83 alphaType = kUnknown_SkAlphaType; in SkColorTypeValidateAlphaType() 88 if (kUnpremul_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 89 alphaType = kPremul_SkAlphaType; in SkColorTypeValidateAlphaType() 100 if (kUnknown_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 111 alphaType = kOpaque_SkAlphaType; in SkColorTypeValidateAlphaType() 117 *canonical = alphaType; in SkColorTypeValidateAlphaType()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/skia/src/core/ |
H A D | SkImageInfo.cpp | 77 SkASSERT(SkAlphaTypeIsValid(this->alphaType())); in validate() 81 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType() argument 85 alphaType = kUnknown_SkAlphaType; in SkColorTypeValidateAlphaType() 90 if (kUnpremul_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 91 alphaType = kPremul_SkAlphaType; in SkColorTypeValidateAlphaType() 103 if (kUnknown_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 115 alphaType = kOpaque_SkAlphaType; in SkColorTypeValidateAlphaType() 119 *canonical = alphaType; in SkColorTypeValidateAlphaType()
|
/dports/www/firefox/firefox-99.0/gfx/skia/skia/src/core/ |
H A D | SkImageInfo.cpp | 75 SkASSERT(SkAlphaTypeIsValid(this->alphaType())); in validate() 79 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType() argument 83 alphaType = kUnknown_SkAlphaType; in SkColorTypeValidateAlphaType() 88 if (kUnpremul_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 89 alphaType = kPremul_SkAlphaType; in SkColorTypeValidateAlphaType() 100 if (kUnknown_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 111 alphaType = kOpaque_SkAlphaType; in SkColorTypeValidateAlphaType() 117 *canonical = alphaType; in SkColorTypeValidateAlphaType()
|
/dports/mail/thunderbird/thunderbird-91.8.0/gfx/skia/skia/src/core/ |
H A D | SkImageInfo.cpp | 75 SkASSERT(SkAlphaTypeIsValid(this->alphaType())); in validate() 79 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType() argument 83 alphaType = kUnknown_SkAlphaType; in SkColorTypeValidateAlphaType() 88 if (kUnpremul_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 89 alphaType = kPremul_SkAlphaType; in SkColorTypeValidateAlphaType() 100 if (kUnknown_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 111 alphaType = kOpaque_SkAlphaType; in SkColorTypeValidateAlphaType() 117 *canonical = alphaType; in SkColorTypeValidateAlphaType()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/src/core/ |
H A D | SkImageInfo.cpp | 77 SkASSERT(SkAlphaTypeIsValid(this->alphaType())); in validate() 81 bool SkColorTypeValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, in SkColorTypeValidateAlphaType() argument 85 alphaType = kUnknown_SkAlphaType; in SkColorTypeValidateAlphaType() 90 if (kUnpremul_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 91 alphaType = kPremul_SkAlphaType; in SkColorTypeValidateAlphaType() 103 if (kUnknown_SkAlphaType == alphaType) { in SkColorTypeValidateAlphaType() 115 alphaType = kOpaque_SkAlphaType; in SkColorTypeValidateAlphaType() 119 *canonical = alphaType; in SkColorTypeValidateAlphaType()
|
/dports/www/firefox-legacy/firefox-52.8.0esr/gfx/skia/skia/src/codec/ |
H A D | SkCodecPriv.h | 124 if (!valid_alpha(dst.alphaType(), src.alphaType())) { in conversion_possible_ignore_color_space() 134 return kOpaque_SkAlphaType == src.alphaType(); in conversion_possible_ignore_color_space() 164 static inline uint64_t get_color_table_fill_value(SkColorType dstColorType, SkAlphaType alphaType, in get_color_table_fill_value() argument 180 SkColorSpaceXform::kRGBA_8888_ColorFormat, alphaType); in get_color_table_fill_value() 341 return kPremul_SkAlphaType == dstInfo.alphaType() && in needs_premul() 342 kUnpremul_SkAlphaType == srcInfo.alphaType(); in needs_premul() 379 if (!valid_alpha(dst.alphaType(), src.alphaType())) { in conversion_possible() 393 return kOpaque_SkAlphaType == src.alphaType() && !needs_color_xform(dst, src); in conversion_possible() 396 kOpaque_SkAlphaType == src.alphaType() && !needs_color_xform(dst, src); in conversion_possible()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/skia/gm/ |
H A D | encode_srgb.cpp | 35 static void make(SkBitmap* bitmap, SkColorType colorType, SkAlphaType alphaType, in make() argument 41 alphaType = kOpaque_SkAlphaType; in make() 45 alphaType = kOpaque_SkAlphaType; in make() 48 resource = (kOpaque_SkAlphaType == alphaType) ? "images/color_wheel.jpg" in make() 59 .makeAlphaType(alphaType) in make() 130 for (SkAlphaType alphaType : alphaTypes) { in onDraw() local 133 make(&bitmap, colorType, alphaType, colorSpace); in onDraw()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/gm/ |
H A D | encode_srgb.cpp | 35 static void make(SkBitmap* bitmap, SkColorType colorType, SkAlphaType alphaType, in make() argument 41 alphaType = kOpaque_SkAlphaType; in make() 45 alphaType = kOpaque_SkAlphaType; in make() 48 resource = (kOpaque_SkAlphaType == alphaType) ? "images/color_wheel.jpg" in make() 59 .makeAlphaType(alphaType) in make() 130 for (SkAlphaType alphaType : alphaTypes) { in onDraw() local 133 make(&bitmap, colorType, alphaType, colorSpace); in onDraw()
|
H A D | encode_color_types.cpp | 24 static sk_sp<SkImage> make_image(SkColorType colorType, SkAlphaType alphaType) { in make_image() argument 28 if (alphaType != kOpaque_SkAlphaType) { in make_image() 37 if (alphaType != kOpaque_SkAlphaType) { in make_image() 43 resource = (kOpaque_SkAlphaType == alphaType) ? "images/color_wheel.jpg" in make_image() 54 colorType, alphaType, image->refColorSpace())); in make_image() 130 for (SkAlphaType alphaType : alphaTypes) { in onDraw() local 131 auto src = make_image(colorType, alphaType); in onDraw()
|
/dports/lang/spidermonkey60/firefox-60.9.0/gfx/skia/skia/include/core/ |
H A D | SkImage.h | 168 SkAlphaType alphaType, in MakeFromTexture() argument 170 return MakeFromTexture(context, backendTexture, origin, alphaType, colorSpace, nullptr, in MakeFromTexture() 179 SkAlphaType alphaType, 206 SkAlphaType alphaType, in MakeFromTexture() argument 208 return MakeFromTexture(context, backendTexture, origin, colorType, alphaType, colorSpace, in MakeFromTexture() 237 SkAlphaType alphaType, 301 SkAlphaType alphaType = kPremul_SkAlphaType, 326 SkAlphaType alphaType = kPremul_SkAlphaType, 457 SkAlphaType alphaType = kPremul_SkAlphaType, 501 SkAlphaType alphaType() const; [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/src/gpu/effects/ |
H A D | GrBicubicEffect.cpp | 118 SkAlphaType alphaType, in Make() argument 122 auto fp = GrTextureEffect::Make(std::move(view), alphaType, SkMatrix::I()); in Make() 123 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in Make() 129 SkAlphaType alphaType, in Make() argument 139 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in Make() 146 SkAlphaType alphaType, in MakeSubset() argument 157 std::move(view), alphaType, SkMatrix::I(), sampler, subset, caps); in MakeSubset() 158 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in MakeSubset() 165 SkAlphaType alphaType, in MakeSubset() argument 186 auto clamp = kPremul_SkAlphaType == alphaType ? Clamp::kPremul : Clamp::kUnpremul; in MakeSubset() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/src/gpu/ |
H A D | GrTextureProducer.cpp | 42 return GrTextureEffect::MakeSubset(std::move(view), this->alphaType(), textureMatrix, in createFragmentProcessorForView() 45 return GrTextureEffect::MakeSubset(std::move(view), this->alphaType(), textureMatrix, in createFragmentProcessorForView() 49 return GrTextureEffect::Make(std::move(view), this->alphaType(), textureMatrix, in createFragmentProcessorForView() 76 return GrBicubicEffect::MakeSubset(std::move(view), this->alphaType(), textureMatrix, in createBicubicFragmentProcessorForView() 79 return GrBicubicEffect::MakeSubset(std::move(view), this->alphaType(), textureMatrix, in createBicubicFragmentProcessorForView() 83 return GrBicubicEffect::Make(std::move(view), this->alphaType(), textureMatrix, wrapX, in createBicubicFragmentProcessorForView()
|
/dports/www/firefox-esr/firefox-91.8.0/gfx/skia/skia/src/gpu/ |
H A D | GrSurfaceContext.cpp | 37 SkAlphaType alphaType, in GrSurfaceContext() argument 104 dstInfo.alphaType() == kPremul_SkAlphaType; in readPixels() 106 dstInfo.alphaType() == kUnpremul_SkAlphaType; in readPixels() 265 srcInfo.alphaType() == kPremul_SkAlphaType; in writePixels() 293 SkAlphaType alphaType; in writePixels() local 298 alphaType = kUnpremul_SkAlphaType; in writePixels() 306 alphaType = this->colorInfo().alphaType(); in writePixels() 447 if (info.alphaType() == kUnpremul_SkAlphaType) { in rescale() 540 auto prevAlphaType = input->colorInfo().alphaType(); in rescale() 547 info.alphaType()); in rescale() [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/gfx/skia/skia/src/gpu/ |
H A D | GrSurfaceContext.cpp | 37 SkAlphaType alphaType, in GrSurfaceContext() argument 104 dstInfo.alphaType() == kPremul_SkAlphaType; in readPixels() 106 dstInfo.alphaType() == kUnpremul_SkAlphaType; in readPixels() 265 srcInfo.alphaType() == kPremul_SkAlphaType; in writePixels() 293 SkAlphaType alphaType; in writePixels() local 298 alphaType = kUnpremul_SkAlphaType; in writePixels() 306 alphaType = this->colorInfo().alphaType(); in writePixels() 447 if (info.alphaType() == kUnpremul_SkAlphaType) { in rescale() 540 auto prevAlphaType = input->colorInfo().alphaType(); in rescale() 547 info.alphaType()); in rescale() [all …]
|
/dports/www/firefox/firefox-99.0/gfx/skia/skia/src/gpu/ |
H A D | GrSurfaceContext.cpp | 37 SkAlphaType alphaType, in GrSurfaceContext() argument 104 dstInfo.alphaType() == kPremul_SkAlphaType; in readPixels() 106 dstInfo.alphaType() == kUnpremul_SkAlphaType; in readPixels() 265 srcInfo.alphaType() == kPremul_SkAlphaType; in writePixels() 293 SkAlphaType alphaType; in writePixels() local 298 alphaType = kUnpremul_SkAlphaType; in writePixels() 306 alphaType = this->colorInfo().alphaType(); in writePixels() 447 if (info.alphaType() == kUnpremul_SkAlphaType) { in rescale() 540 auto prevAlphaType = input->colorInfo().alphaType(); in rescale() 547 info.alphaType()); in rescale() [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/gfx/skia/skia/src/gpu/ |
H A D | GrSurfaceContext.cpp | 37 SkAlphaType alphaType, in GrSurfaceContext() argument 104 dstInfo.alphaType() == kPremul_SkAlphaType; in readPixels() 106 dstInfo.alphaType() == kUnpremul_SkAlphaType; in readPixels() 265 srcInfo.alphaType() == kPremul_SkAlphaType; in writePixels() 293 SkAlphaType alphaType; in writePixels() local 298 alphaType = kUnpremul_SkAlphaType; in writePixels() 306 alphaType = this->colorInfo().alphaType(); in writePixels() 447 if (info.alphaType() == kUnpremul_SkAlphaType) { in rescale() 540 auto prevAlphaType = input->colorInfo().alphaType(); in rescale() 547 info.alphaType()); in rescale() [all …]
|