Home
last modified time | relevance | path

Searched refs:getAlpha (Results 1 – 25 of 85) sorted by relevance

1234

/third_party/vk-gl-cts/framework/common/
DtcuRGBA.hpp82 int getAlpha (void) const { return (int)((m_value >> (deUint32)ALPHA_SHIFT) & 0xFFu); } in getAlpha() function in tcu::RGBA
85 …(getGreen() <= thr.getGreen()) && (getBlue() <= thr.getBlue()) && (getAlpha() <= thr.getAlpha()); } in isBelowThreshold()
88 …); bytes[1] = (deUint8)getGreen(); bytes[2] = (deUint8)getBlue(); bytes[3] = (deUint8)getAlpha(); } in toBytes()
122 deAbs32(a.getAlpha() - b.getAlpha())); in computeAbsDiff()
134 (int)(it*(float)a.getAlpha() + t*(float)b.getAlpha() + 0.5f)); in blend()
148 deMax32(a.getAlpha(), b.getAlpha())); in max()
161 deClamp32(a.getAlpha() + b.getAlpha(), 0, 255)); in operator +()
169 deClamp32(a.getAlpha() - b.getAlpha(), 0, 255)); in operator -()
177 deClamp32(a.getAlpha() * b, 0, 255)); in operator *()
182 …RGBA(" << c.getRed() << ", " << c.getGreen() << ", " << c.getBlue() << ", " << c.getAlpha() << ")"; in operator <<()
DtcuRGBA.cpp45 float(getAlpha()) / 255.0f); in toVec()
50 return IVec4(getRed(), getGreen(), getBlue(), getAlpha()); in toIVec()
DtcuPixelFormat.hpp122 alphaBits ? convertChannel(col.getAlpha(), alphaBits) : 0xff); in convertColor()
/third_party/flutter/skia/src/codec/
DSkMaskSwizzler.cpp58 uint8_t alpha = masks->getAlpha(p); in swizzle_mask16_to_rgba_unpremul()
76 uint8_t alpha = masks->getAlpha(p); in swizzle_mask16_to_bgra_unpremul()
94 uint8_t alpha = masks->getAlpha(p); in swizzle_mask16_to_rgba_premul()
112 uint8_t alpha = masks->getAlpha(p); in swizzle_mask16_to_bgra_premul()
183 uint8_t alpha = masks->getAlpha(p); in swizzle_mask24_to_rgba_unpremul()
201 uint8_t alpha = masks->getAlpha(p); in swizzle_mask24_to_bgra_unpremul()
219 uint8_t alpha = masks->getAlpha(p); in swizzle_mask24_to_rgba_premul()
237 uint8_t alpha = masks->getAlpha(p); in swizzle_mask24_to_bgra_premul()
306 uint8_t alpha = masks->getAlpha(p); in swizzle_mask32_to_rgba_unpremul()
324 uint8_t alpha = masks->getAlpha(p); in swizzle_mask32_to_bgra_unpremul()
[all …]
DSkMasks.h58 uint8_t getAlpha(uint32_t pixel) const;
/third_party/skia/src/codec/
DSkMaskSwizzler.cpp58 uint8_t alpha = masks->getAlpha(p); in swizzle_mask16_to_rgba_unpremul()
76 uint8_t alpha = masks->getAlpha(p); in swizzle_mask16_to_bgra_unpremul()
94 uint8_t alpha = masks->getAlpha(p); in swizzle_mask16_to_rgba_premul()
112 uint8_t alpha = masks->getAlpha(p); in swizzle_mask16_to_bgra_premul()
183 uint8_t alpha = masks->getAlpha(p); in swizzle_mask24_to_rgba_unpremul()
201 uint8_t alpha = masks->getAlpha(p); in swizzle_mask24_to_bgra_unpremul()
219 uint8_t alpha = masks->getAlpha(p); in swizzle_mask24_to_rgba_premul()
237 uint8_t alpha = masks->getAlpha(p); in swizzle_mask24_to_bgra_premul()
306 uint8_t alpha = masks->getAlpha(p); in swizzle_mask32_to_rgba_unpremul()
324 uint8_t alpha = masks->getAlpha(p); in swizzle_mask32_to_bgra_unpremul()
[all …]
DSkMasks.h44 uint8_t getAlpha(uint32_t pixel) const;
/third_party/skia/gm/
Daaxfermodes.cpp148 SkASSERT(colorIdx == 0 || 255 == paint.getAlpha()); in draw_pass()
227 if (255 != paint->getAlpha()) { in setupShapePaint()
230 paint->setAlpha(255 * paint->getAlpha() / maxSum); in setupShapePaint()
/third_party/flutter/skia/gm/
Daaxfermodes.cpp146 SkASSERT(colorIdx == 0 || 255 == paint.getAlpha()); in draw_pass()
225 if (255 != paint->getAlpha()) { in setupShapePaint()
228 paint->setAlpha(255 * paint->getAlpha() / maxSum); in setupShapePaint()
/third_party/flutter/skia/docs/examples/
DPaint_getAlpha.cpp8 SkDebugf("255 %c= paint.getAlpha()\n", 255 == paint.getAlpha() ? '=' : '!'); in draw()
/third_party/skia/docs/examples/
DPaint_getAlpha.cpp8 SkDebugf("255 %c= paint.getAlpha()\n", 255 == paint.getAlpha() ? '=' : '!'); in draw()
/third_party/flutter/skia/src/core/
DSkSpriteBlitter_RGB565.cpp77 U8CPU alpha = paint.getAlpha(); in ChooseL565()
165 U8CPU alpha = paint.getAlpha(); in ChooseLA8()
DSkXfermodeInterpretation.cpp12 return SK_AlphaOPAQUE == p.getAlpha() && !p.getColorFilter() && !p.getShader(); in just_solid_color()
DSkRecordOpts.cpp138 paint->setAlpha(SkMulDiv255Round(paint->getAlpha(), SkColorGetA(layerColor))); in fold_opacity_layer_color_to_paint()
179 0xFF == paint->getAlpha() && paint->getBlendMode() == SkBlendMode::kSrc; in effectively_srcover()
DSkPaintPriv.cpp29 const unsigned paintAlpha = paint->getAlpha(); in Overwrites()
/third_party/skia/src/core/
DSkSpriteBlitter_RGB565.cpp76 U8CPU alpha = paint.getAlpha(); in ChooseL565()
165 U8CPU alpha = paint.getAlpha(); in ChooseLA8()
DSkRecordOpts.cpp138 paint->setAlpha(SkMulDiv255Round(paint->getAlpha(), SkColorGetA(layerColor))); in fold_opacity_layer_color_to_paint()
179 0xFF == paint->getAlpha() && paint->asBlendMode() == SkBlendMode::kSrc; in effectively_srcover()
DSkXfermodeInterpretation.cpp12 return SK_AlphaOPAQUE == p.getAlpha() && !p.getColorFilter() && !p.getShader(); in just_solid_color()
/third_party/flutter/skia/src/shaders/
DSkShader.cpp108 fPaintAlpha = rec.fPaint->getAlpha(); in Context()
158 if (rec.fPaint.getAlpha() != SK_AlphaOPAQUE) { in onAppendStages()
/third_party/skia/src/gpu/
DGrSWMaskHelper.cpp86 SkASSERT(0xFF == paint.getAlpha()); in drawShape()
124 SkASSERT(0xFF == paint.getAlpha()); in drawShape()
/third_party/flutter/skia/experimental/svg/model/
DSkSVGRenderContext.cpp109 p->setColor(SkColorSetA(svgPaint.color(), p->getAlpha())); in applySvgPaint()
380 SkScalarRoundToInt(opacity * pctx->fFillPaint.getAlpha())); in applyOpacity()
383 SkScalarRoundToInt(opacity * pctx->fStrokePaint.getAlpha())); in applyOpacity()
/third_party/flutter/skia/modules/sksg/src/
DSkSGDraw.cpp48 if (!paint.getAlpha()) { in onNodeAt()
DSkSGPaint.cpp33 paint.setAlpha(SkScalarRoundToInt(paint.getAlpha() * SkTPin<SkScalar>(fOpacity, 0, 1))); in makePaint()
/third_party/skia/modules/sksg/src/
DSkSGDraw.cpp48 if (!paint.getAlpha()) { in onNodeAt()
DSkSGPaint.cpp34 paint.setAlpha(SkScalarRoundToInt(paint.getAlpha() * SkTPin<SkScalar>(fOpacity, 0, 1))); in makePaint()

1234