Home
last modified time | relevance | path

Searched refs:unpremul (Results 1 - 25 of 31) sorted by relevance

12

/third_party/skia/tests/
H A DSkColorSpaceXformStepsTest.cpp21 unpremul = kUnpremul_SkAlphaType; in DEF_TEST() local
27 bool unpremul; in DEF_TEST() member
38 true, // src is encoded as f(s)*a,a, so we unpremul to f(s),a before linearizing. in DEF_TEST()
47 // If the src alpha type is unpremul, we'll not need that initial unpremul step. in DEF_TEST()
48 { adobe, srgb, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
49 { srgb, adobe, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
51 // If opaque, we need neither the initial unpremul, nor the premul later. in DEF_TEST()
58 true, // we need to linearize, so we need to unpremul in DEF_TEST()
67 // As in the general case, when we change the alpha type unpremul an in DEF_TEST()
[all...]
H A DColorFilterTest.cpp107 SkAlphaType unpremul = kUnpremul_SkAlphaType; in DEF_TEST() local
111 &unpremul); in DEF_TEST()
123 SkAlphaType unpremul = kUnpremul_SkAlphaType; in DEF_TEST() local
127 &unpremul); in DEF_TEST()
H A DNonlinearBlendingTest.cpp31 auto unpremul = skcms_AlphaFormat_Unpremul, in DEF_TEST() local
35 skcms_Transform(&color, bgra, unpremul, &srgb_profile, in DEF_TEST()
H A DImageTest.cpp526 ERRORF(reporter, "Failed to make unpremul texture image."); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
529 SkBitmap unpremul; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
530 unpremul.allocPixels(SkImageInfo::Make(256, 256, kRGBA_8888_SkColorType, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
532 if (!texImage->readPixels(dContext, unpremul.info(), unpremul.getPixels(), unpremul.rowBytes(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
539 if (*bmp.getAddr32(x, y) != *unpremul.getAddr32(x, y)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
540 ERRORF(reporter, "unpremul(0x%08x)->unpremul(0x%08x) at %d, %d.", in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
541 *bmp.getAddr32(x, y), *unpremul in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all...]
/third_party/skia/src/core/
H A DSkColorSpaceXformSteps.cpp34 this->flags.unpremul = srcAT == kPremul_SkAlphaType; in SkColorSpaceXformSteps()
85 // Skip unpremul...premul if there are no non-linear operations between. in SkColorSpaceXformSteps()
86 if ( this->flags.unpremul && in SkColorSpaceXformSteps()
91 this->flags.unpremul = false; in SkColorSpaceXformSteps()
97 if (flags.unpremul) { in apply()
133 if (flags.unpremul) { p->append(SkRasterPipeline::unpremul); } in apply()
201 if (flags.unpremul) { in program()
202 c = unpremul(c); in program()
H A DSkColorSpaceXformSteps.h21 bool unpremul = false; member
28 return (unpremul ? 1 : 0) in mask()
H A DSkColorFilter_Matrix.cpp90 if (!shaderIsOpaque) { p->append(SkRasterPipeline::unpremul); } in onAppendStages()
135 c = unpremul(c); in onProgram()
155 // Convert RGBA -> HSLA (including unpremul).
167 // An additional trick we employ is deferring premul->unpremul conversion until the very end: the
168 // alpha factor gets naturally simplified for H and S, and only L requires a dedicated unpremul
H A DSkColorFilter.cpp100 return as_CFB(this)->onFilterColor4f(color, dstCS).unpremul(); in filterColor4f()
238 // We handle premul/unpremul separately, so here just always upm->upm. in SkSRGBGammaColorFilter()
272 rec.fPipeline->append(SkRasterPipeline::unpremul);
285 return premul(fSteps.program(p, uniforms, unpremul(c)));
H A DSkConvertPixels.cpp44 steps.flags.unpremul || in swizzle_or_premul()
H A DSkRasterPipeline.h43 M(unpremul) M(premul) M(premul_dst) \
H A DSkVM.h935 void unpremul(F32* r, F32* g, F32* b, F32 a); in abs()
938 Color unpremul(Color c) { this->unpremul(&c.r, &c.g, &c.b, c.a); return c; } in abs() function in skvm::Builder
1319 SI void unpremul(F32* r, F32* g, F32* b, F32 a) { a->unpremul(r,g,b,a); } in unpremul() function
1322 SI Color unpremul(Color c) { return c->unpremul(c); } in unpremul() function
/third_party/skia/src/effects/
H A DSkHighContrastFilter.cpp30 half4 c = inColor; // linear unpremul RGBA in dst gamut. in Make()
63 SkAlphaType unpremul = kUnpremul_SkAlphaType; in Make() local
66 &linear, nullptr/*use dst gamut*/, &unpremul); in Make()
H A DSkTableColorFilter.cpp47 p->append(SkRasterPipeline::unpremul);
75 c = unpremul(c);
171 "half4 coord = 255 * unpremul(%s) + 0.5;\n" in onMakeProgramImpl()
H A DSkLayerDrawLooper.cpp61 return SkBlendMode_Apply(mode, pmS, pmD).unpremul(); in xferColor()
/third_party/skia/tools/gdb/
H A Dbitmap.py41 unpremul = 3 variable in AlphaType
71 if alpha_type == AlphaType.unpremul.value:
/third_party/skia/gm/
H A Dlumafilter.cpp196 SkAlphaType unpremul = kUnpremul_SkAlphaType; in DEF_SIMPLE_GM() local
200 &unpremul)); in DEF_SIMPLE_GM() local
H A Dunpremul.cpp20 DEF_SIMPLE_GM(unpremul, canvas, 200, 200) { in DEF_SIMPLE_GM()
/third_party/skia/src/gpu/glsl/
H A DGrGLSLColorSpaceXformHelper.h61 bool applyUnpremul() const { return fFlags.unpremul; } in applyUnpremul()
/third_party/skia/src/sksl/
H A DSkSLIntrinsicList.h106 SKSL_INTRINSIC(unpremul)
/third_party/skia/src/gpu/
H A DSurfaceContext.cpp108 bool unpremul = flags.unpremul, in readPixels() local
117 // unpremul step to writeSurfacePixels's premul step (which is determined empirically in in readPixels()
122 bool canvas2DFastPath = unpremul && !needColorConversion && in readPixels()
223 bool convert = unpremul || premul || needColorConversion || flip || makeTight || in readPixels()
367 bool unpremul = flags.unpremul, in internalWritePixels() local
377 // For canvas2D putImageData performance we have a special code path for unpremul RGBA_8888 srcs in internalWritePixels()
486 unpremul || in internalWritePixels()
H A DSurfaceFillContext.h134 return color.unpremul().array(); in ConvertColor()
H A DGrColorSpaceXform.cpp138 return this->fColorXform->apply(c0.unpremul()).premul(); in constantOutputForConstantInput()
H A DGrDataUtils.cpp629 bool unpremul = src.alphaType() == kPremul_SkAlphaType && in GrConvertPixels() local
632 premul || unpremul || !SkColorSpace::Equals(src.colorSpace(), dst.colorSpace()); in GrConvertPixels()
/third_party/skia/include/core/
H A DSkColor.h393 SkRGBA4f<kUnpremul_SkAlphaType> unpremul() const { in unpremul() function
/third_party/skia/src/codec/
H A DSkWebpCodec.cpp339 p.append(SkRasterPipeline::unpremul); in blend_line()
452 // the colorXform and blend_line expect unpremul. in onGetPixels()

Completed in 20 milliseconds

12