Home
last modified time | relevance | path

Searched refs:unpremul (Results 1 – 25 of 64) sorted by relevance

123

/external/skia/tests/
DSkColorSpaceXformStepsTest.cpp21 unpremul = kUnpremul_SkAlphaType; in DEF_TEST() local
27 bool unpremul; in DEF_TEST() member
47 { adobe, srgb, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
48 { srgb, adobe, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
67 { srgb, srgb22, unpremul, premul, false,true,false,true,true }, in DEF_TEST()
68 { srgb22, srgb, unpremul, premul, false,true,false,true,true }, in DEF_TEST()
75 { srgb, srgb, unpremul, premul, false,false,false,false,true }, in DEF_TEST()
88 { adobe1, srgb1, unpremul, premul, false,false,true,false, true }, in DEF_TEST()
93 { srgb, srgb1, unpremul, premul, false, true,false,false, true }, in DEF_TEST()
95 { srgb, adobe1, unpremul, premul, false, true, true,false, true }, in DEF_TEST()
[all …]
DNonlinearBlendingTest.cpp31 auto unpremul = skcms_AlphaFormat_Unpremul, in DEF_TEST() local
35 skcms_Transform(&color, bgra, unpremul, &srgb_profile, in DEF_TEST()
/external/skqp/tests/
DSkColorSpaceXformStepsTest.cpp21 unpremul = kUnpremul_SkAlphaType; in DEF_TEST() local
27 bool unpremul; in DEF_TEST() member
47 { adobe, srgb, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
48 { srgb, adobe, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
67 { srgb, srgb22, unpremul, premul, false,true,false,true,true }, in DEF_TEST()
68 { srgb22, srgb, unpremul, premul, false,true,false,true,true }, in DEF_TEST()
75 { srgb, srgb, unpremul, premul, false,false,false,false,true }, in DEF_TEST()
88 { adobe1, srgb1, unpremul, premul, false,false,true,false, true }, in DEF_TEST()
93 { srgb, srgb1, unpremul, premul, false, true,false,false, true }, in DEF_TEST()
95 { srgb, adobe1, unpremul, premul, false, true, true,false, true }, in DEF_TEST()
[all …]
DNonlinearBlendingTest.cpp31 auto unpremul = skcms_AlphaFormat_Unpremul, in DEF_TEST() local
35 skcms_Transform(&color, bgra, unpremul, &srgb_profile, in DEF_TEST()
/external/skia/src/core/
DSkColorSpaceXformSteps.cpp33 this->flags.unpremul = srcAT == kPremul_SkAlphaType; in SkColorSpaceXformSteps()
88 if ( this->flags.unpremul && in SkColorSpaceXformSteps()
93 this->flags.unpremul = false; in SkColorSpaceXformSteps()
99 if (flags.unpremul) { in apply()
137 if (flags.unpremul) { p->append(SkRasterPipeline::unpremul); } in apply()
DSkColorSpaceXformSteps.h20 bool unpremul = false; member
27 return (unpremul ? 1 : 0) in mask()
DSkColorFilter_Matrix.cpp73 if (!shaderIsOpaque) { p->append(SkRasterPipeline::unpremul); } in onAppendStages()
89 p->unpremul(r,g,b,*a); in onProgram()
DSkColorFilter.cpp98 return dst.unpremul(); in filterColor4f()
233 rec.fPipeline->append(SkRasterPipeline::unpremul); in onAppendStages()
/external/skqp/src/core/
DSkColorSpaceXformSteps.cpp33 this->flags.unpremul = srcAT == kPremul_SkAlphaType; in SkColorSpaceXformSteps()
88 if ( this->flags.unpremul && in SkColorSpaceXformSteps()
93 this->flags.unpremul = false; in SkColorSpaceXformSteps()
99 if (flags.unpremul) { in apply()
143 if (flags.unpremul) { p->append(SkRasterPipeline::unpremul); } in apply()
DSkColorSpaceXformSteps.h18 bool unpremul = false; member
25 return (unpremul ? 1 : 0) in mask()
DSkColorFilter.cpp79 return dst.unpremul(); in filterColor4f()
231 p->append(SkRasterPipeline::unpremul); in onAppendStages()
/external/skia/src/gpu/effects/
DGrColorMatrixFragmentProcessor.fp21 // The max() is to guard against 0 / 0 during unpremul when the incoming color is
41 color = input.unpremul();
82 bool unpremul = d->fRandom->nextBool();
85 return Make(m, unpremul, clampRGB, premul);
DGrRGBToHSLFilterEffect.fp8 // Convert RGBA -> HSLA (including unpremul).
20 // An additional trick we employ is deferring premul->unpremul conversion until the very end: the
21 // alpha factor gets naturally simplified for H and S, and only L requires a dedicated unpremul
DGrSRGBEffect.cpp101 SkColor4f color = inColor.unpremul(); in constantOutputForConstantInput()
/external/skqp/tools/gdb/
Dbitmap.py41 unpremul = 3 variable in AlphaType
71 if alpha_type == AlphaType.unpremul.value:
/external/skia/tools/gdb/
Dbitmap.py41 unpremul = 3 variable in AlphaType
71 if alpha_type == AlphaType.unpremul.value:
/external/skia/src/gpu/effects/generated/
DGrColorMatrixFragmentProcessor.cpp113 bool unpremul = d->fRandom->nextBool(); in TestCreate() local
116 return Make(m, unpremul, clampRGB, premul); in TestCreate()
DGrColorMatrixFragmentProcessor.h23 color = input.unpremul(); in constantOutputForConstantInput()
/external/skia/src/gpu/
DGrSurfaceContext.cpp173 bool unpremul = flags.unpremul, in readPixels() local
187 bool canvas2DFastPath = unpremul && !needColorConversion && in readPixels()
250 bool convert = unpremul || premul || needColorConversion || flip || makeTight || in readPixels()
334 bool unpremul = flags.unpremul, in writePixels() local
441 bool convert = premul || unpremul || needColorConversion || makeTight || in writePixels()
/external/skqp/gm/
Dunpremul.cpp11 DEF_SIMPLE_GM(unpremul, canvas, 200, 200) {
/external/skia/gm/
Dunpremul.cpp19 DEF_SIMPLE_GM(unpremul, canvas, 200, 200) {
/external/skqp/src/gpu/glsl/
DGrGLSLColorSpaceXformHelper.h60 bool applyUnpremul() const { return fFlags.unpremul; } in applyUnpremul()
/external/skia/src/gpu/glsl/
DGrGLSLColorSpaceXformHelper.h61 bool applyUnpremul() const { return fFlags.unpremul; } in applyUnpremul()
/external/skqp/src/gpu/
DGrContext.cpp614 bool unpremul = SkToBool(kUnpremul_PixelOpsFlag & pixelOpsFlags); in readSurfacePixels() local
616 if (!valid_pixel_conversion(dstColorType, srcProxy->config(), unpremul)) { in readSurfacePixels()
626 unpremul && in readSurfacePixels()
701 bool convert = unpremul; in readSurfacePixels()
731 SkASSERT(!unpremul || !dstAlwaysOpaque); in readSurfacePixels()
734 : unpremul ? kUnpremul_SkAlphaType : kPremul_SkAlphaType; in readSurfacePixels()
/external/skqp/src/gpu/effects/
DGrSRGBEffect.cpp100 SkColor4f color = inColor.unpremul(); in constantOutputForConstantInput()

123