Home
last modified time | relevance | path

Searched refs:invScale (Results 1 – 14 of 14) sorted by relevance

/external/eigen/Eigen/src/Core/
DStableNorm.h18 …ine void stable_norm_kernel(const ExpressionType& bl, Scalar& ssq, Scalar& scale, Scalar& invScale) in stable_norm_kernel() argument
28 invScale = NumTraits<Scalar>::highest(); in stable_norm_kernel()
29 scale = Scalar(1)/invScale; in stable_norm_kernel()
33 invScale = Scalar(1); in stable_norm_kernel()
39 invScale = tmp; in stable_norm_kernel()
50 ssq += (bl*invScale).squaredNorm(); in stable_norm_kernel()
163 RealScalar invScale(1); in stableNorm()
185 internal::stable_norm_kernel(copy.head(bi), ssq, scale, invScale); in stableNorm()
187 …orm_kernel(SegmentWrapper(copy.segment(bi,numext::mini(blockSize, n - bi))), ssq, scale, invScale); in stableNorm()
/external/skia/tests/
DApplyGammaTest.cpp63 float invScale = 0; in check_gamma() local
66 invScale = 255.0f / alpha; in check_gamma()
70 float srcComponent = ((src & (0xff << (c * 8))) >> (c * 8)) * invScale; in check_gamma()
/external/skqp/tests/
DApplyGammaTest.cpp48 float invScale = 0; in check_gamma() local
51 invScale = 255.0f / alpha; in check_gamma()
55 float srcComponent = ((src & (0xff << (c * 8))) >> (c * 8)) * invScale; in check_gamma()
/external/skia/src/core/
DSkMatrix.cpp1319 float invScale = 1 / scale.fY; in Poly2Proc() local
1321 dst->fMat[kMScaleX] = (srcPt[1].fY - srcPt[0].fY) * invScale; in Poly2Proc()
1322 dst->fMat[kMSkewY] = (srcPt[0].fX - srcPt[1].fX) * invScale; in Poly2Proc()
1324 dst->fMat[kMSkewX] = (srcPt[1].fX - srcPt[0].fX) * invScale; in Poly2Proc()
1325 dst->fMat[kMScaleY] = (srcPt[1].fY - srcPt[0].fY) * invScale; in Poly2Proc()
1336 float invScale = 1 / scale.fX; in Poly3Proc() local
1337 dst->fMat[kMScaleX] = (srcPt[2].fX - srcPt[0].fX) * invScale; in Poly3Proc()
1338 dst->fMat[kMSkewY] = (srcPt[2].fY - srcPt[0].fY) * invScale; in Poly3Proc()
1341 invScale = 1 / scale.fY; in Poly3Proc()
1342 dst->fMat[kMSkewX] = (srcPt[1].fX - srcPt[0].fX) * invScale; in Poly3Proc()
[all …]
/external/skqp/src/core/
DSkMatrix.cpp1318 float invScale = 1 / scale.fY; in Poly2Proc() local
1320 dst->fMat[kMScaleX] = (srcPt[1].fY - srcPt[0].fY) * invScale; in Poly2Proc()
1321 dst->fMat[kMSkewY] = (srcPt[0].fX - srcPt[1].fX) * invScale; in Poly2Proc()
1323 dst->fMat[kMSkewX] = (srcPt[1].fX - srcPt[0].fX) * invScale; in Poly2Proc()
1324 dst->fMat[kMScaleY] = (srcPt[1].fY - srcPt[0].fY) * invScale; in Poly2Proc()
1335 float invScale = 1 / scale.fX; in Poly3Proc() local
1336 dst->fMat[kMScaleX] = (srcPt[2].fX - srcPt[0].fX) * invScale; in Poly3Proc()
1337 dst->fMat[kMSkewY] = (srcPt[2].fY - srcPt[0].fY) * invScale; in Poly3Proc()
1340 invScale = 1 / scale.fY; in Poly3Proc()
1341 dst->fMat[kMSkewX] = (srcPt[1].fX - srcPt[0].fX) * invScale; in Poly3Proc()
[all …]
/external/skqp/src/jumper/
DSkJumper.h69 float invScale; // cache of 1/scale member
DSkJumper_stages.cpp1812 return v - floor_(v*ctx->invScale)*ctx->scale; in exclusive_repeat()
1816 auto invLimit = ctx->invScale; in exclusive_mirror()
/external/skia/src/jumper/
DSkJumper.h69 float invScale; // cache of 1/scale member
DSkJumper_stages.cpp1814 return v - floor_(v*ctx->invScale)*ctx->scale; in exclusive_repeat()
1818 auto invLimit = ctx->invScale; in exclusive_mirror()
/external/skqp/src/shaders/
DSkImageShader.cpp324 limit_x->invScale = 1.0f / pm.width(); in SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY()
326 limit_y->invScale = 1.0f / pm.height(); in SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY()
/external/skia/src/shaders/
DSkImageShader.cpp364 limit_x->invScale = 1.0f / pm.width(); in SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY()
366 limit_y->invScale = 1.0f / pm.height(); in SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY()
/external/dng_sdk/source/
Ddng_resample.cpp109 real64 invScale = (real64) srcCount / in Initialize() local
117 real64 y = x * invScale - 0.5 + (real64) srcOrigin; in Initialize()
/external/skqp/src/gpu/text/
DGrAtlasTextContext.cpp766 SkScalar invScale = SkScalarInvert(maxScale); in drawDFPosText() local
767 modMatrix.preScale(invScale, invScale); in drawDFPosText()
/external/skia/src/gpu/text/
DGrAtlasTextContext.cpp898 SkScalar invScale = SkScalarInvert(fMaxScale); in drawText() local
899 modMatrix.preScale(invScale, invScale); in drawText()