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

1 2

  /external/skia/src/effects/gradients/
Sk4fGradientPriv.h 54 // - store() Store one Sk4f to dest. Optionally handles premul, color space
61 template <DstType, ApplyPremul premul>
64 template <ApplyPremul premul>
65 struct DstTraits<DstType::L32, premul> {
66 using PM = PremulTraits<premul>;
69 // For L32, prescaling by 255 saves a per-pixel multiplication when premul is not needed.
71 return premul == ApplyPremul::False
77 if (premul == ApplyPremul::False) {
94 if (premul == ApplyPremul::False) {
105 template <ApplyPremul premul>
    [all...]
Sk4fLinearGradient.h 33 template <DstType dstType, ApplyPremul premul>
34 void shadePremulSpan(int x, int y, typename DstTraits<dstType, premul>::Type[],
37 template <DstType dstType, ApplyPremul premul, SkShader::TileMode tileMode>
38 void shadeSpanInternal(int x, int y, typename DstTraits<dstType, premul>::Type[],
Sk4fGradientBase.h 86 template <DstType dstType, ApplyPremul premul>
87 void shadePremulSpan(int x, int y, typename DstTraits<dstType, premul>::Type[],
90 template <DstType dstType, ApplyPremul premul, SkShader::TileMode tileMode>
91 void shadeSpanInternal(int x, int y, typename DstTraits<dstType, premul>::Type[],
Sk4fGradientBase.cpp 14 Sk4f pack_color(SkColor c, bool premul, const Sk4f& component_scale) {
16 const Sk4f pm4f = premul
17 ? c4f.premul().to4f()
328 template<DstType dstType, ApplyPremul premul>
331 typename DstTraits<dstType, premul>::Type dst[],
339 premul,
344 premul,
349 premul,
355 template<DstType dstType, ApplyPremul premul, SkShader::TileMode tileMode>
358 typename DstTraits<dstType, premul>::Type dst[]
    [all...]
Sk4fLinearGradient.cpp 15 template<DstType dstType, ApplyPremul premul>
16 void ramp(const Sk4f& c, const Sk4f& dc, typename DstTraits<dstType, premul>::Type dst[], int n) {
28 DstTraits<dstType, premul>::store4x(c0, c1, c2, c3, dst);
38 DstTraits<dstType, premul>::store(c0, dst++);
39 DstTraits<dstType, premul>::store(c1, dst++);
43 DstTraits<dstType, premul>::store(c0, dst);
47 // Planar version of ramp (S32 no-premul only).
217 template<DstType dstType, ApplyPremul premul>
220 typename DstTraits<dstType, premul>::Type dst[],
227 premul,
    [all...]
  /external/skia/tests/
SkColor4fTest.cpp 49 // First just test opaque colors, so that the premul should be exact
53 SkPM4f pm4 = c4.premul();
59 // We compare with a tolerance, in case our premul multiply is implemented at slightly
62 pm4 = c4.premul();
Float16Test.cpp 51 SkPM4f origpm4 = c4.premul();
WritePixelsTest.cpp 134 static uint32_t premul(uint32_t color) { function
148 color = premul(color);
228 "Write performed premul: %d", cx, cy, bmpPMColor, canvasPixel, mul);
  /external/skia/src/core/
SkColorMatrixFilterRowMajor255.cpp 70 static Sk4f premul(const Sk4f& x) { function
97 T matrix_translate_pmcolor = Adaptor::From4f(premul(clamp_0_1(c4)));
118 dst[i] = Adaptor::From4f(premul(clamp_0_1(dst4)));
254 if (!willStayOpaque) { p->append(SkRasterPipeline::premul); }
SkColorShader.cpp 58 fPM4f = c4.premul();
176 fPM4f = c4.premul();
222 return GrConstColorProcessor::Make(color.premul(), GrConstColorProcessor::kModulateA_InputMode);
331 auto color = scratch->make<SkPM4f>(fColor4.premul());
SkRasterPipeline.h 62 M(unpremul) M(premul) \
SkConvertPixels.cpp 327 pipeline.append(SkRasterPipeline::premul);
339 pipeline.append(SkRasterPipeline::premul);
343 // The final premul state must equal the dst alpha type. Note that if we are "converting"
SkColor.cpp 179 SkPM4f SkColor4f::premul() const { function in class:SkColor4f
SkColorFilter.cpp 77 SkPM4f dst, src = c.premul();
SkModeColorFilter.cpp 68 auto pm4f = SkColor4f::FromColor(fColor).premul();
SkPM4fPriv.h 169 return SkColor4f_from_SkColor(color, dst).premul();
SkColorSpaceXform_A2B.cpp 45 pipeline.append(SkRasterPipeline::premul);
  /external/skia/gm/
SkLinearBitmapPipelineGM.cpp 21 static void fill_in_bits(SkBitmap& bm, SkIRect ir, SkColor c, bool premul) {
28 if (premul) {
encode-srgb.cpp 54 Sk4f pmFloat = SkColor4f::FromColor(color).premul().to4f_pmorder();
  /external/skia/include/core/
SkColor.h 196 SkPM4f premul() const;
  /external/skia/src/gpu/
SkGr.cpp 309 return SkColorToUnpremulGrColor4f(c, dstColorSpace).premul();
325 return SkColorToUnpremulGrColor4f(c, dstColorSpace, gamutXform).premul();
545 grPaint->setColor4f(origColor.premul());
557 colorFilter->filterColor4f(origColor.toSkColor4f())).premul());
  /frameworks/base/core/tests/coretests/src/android/graphics/
BitmapTest.java 174 int premul = Math.round(alpha * comp / 255.f); local
175 int unpre = Math.round(255.0f * premul / alpha);
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapFactoryTest.java 547 Bitmap premul = BitmapFactory.decodeResource(mRes, R.drawable.premul_data, options); local
550 assertEquals(premul.getConfig(), Bitmap.Config.ARGB_8888);
552 assertTrue(premul.getHeight() == 1 && unpremul.getHeight() == 1);
553 assertTrue(premul.getWidth() == unpremul.getWidth() &&
555 premul.getWidth() == DEPREMUL_COLORS.length);
557 // verify pixel data - unpremul should have raw values, premul will have rounding errors
558 for (int i = 0; i < premul.getWidth(); i++) {
559 assertEquals(premul.getPixel(i, 0), DEPREMUL_COLORS[i]);
    [all...]
  /external/skia/include/gpu/
GrColor.h 258 GrColor4f premul() const { function in struct:GrColor4f
  /external/skia/src/jumper/
SkJumper.cpp 58 M(premul) \

Completed in 710 milliseconds

1 2