Home
last modified time | relevance | path

Searched refs:maxScale (Results 1 – 23 of 23) sorted by relevance

/external/skia/src/core/
DSkGlyphRunPainter.cpp146 SkScalar maxScale = SK_ScalarMin; in drawForBitmapDevice() local
159 maxScale = std::max(maxScale, scale); in drawForBitmapDevice()
162 maxScale = std::max(maxScale, scale); in drawForBitmapDevice()
165 maxScale = std::max(maxScale, scale); in drawForBitmapDevice()
168 maxScale = std::max(maxScale, scale); in drawForBitmapDevice()
171 if (maxScale * runFont.getSize() > 256) { in drawForBitmapDevice()
172 maxScale = 256.0f / runFont.getSize(); in drawForBitmapDevice()
175 SkMatrix cacheScale = SkMatrix::Scale(maxScale, maxScale); in drawForBitmapDevice()
202 + SkPoint::Make(mask.fBounds.left(), mask.fBounds.top()) * (1.0f/maxScale); in drawForBitmapDevice()
207 translate.preScale(1.0f/maxScale, 1.0f/maxScale); in drawForBitmapDevice()
[all …]
DSkStrikeSpec.cpp180 SkScalar minScale, maxScale; in MakeSDFT() local
181 std::tie(minScale, maxScale) = control.computeSDFMinMaxScale(font.getSize(), deviceMatrix); in MakeSDFT()
186 return std::make_tuple(std::move(strikeSpec), minScale, maxScale); in MakeSDFT()
DSkGlyphRunPainter.h152 SkScalar maxScale) = 0;
/external/skia/src/gpu/text/
DGrSDFTControl.cpp57 SkScalar maxScale = viewMatrix.getMaxScale(); in drawingType() local
58 SkScalar scaledTextSize = maxScale * font.getSize(); in drawingType()
85 SkScalar maxScale = viewMatrix.getMaxScale(); in scaled_text_size() local
89 if (maxScale > 0 && !SkScalarNearlyEqual(maxScale, SK_Scalar1)) { in scaled_text_size()
90 scaledTextSize *= maxScale; in scaled_text_size()
DGrTextBlob.h258 SkScalar maxScale) override;
305 SkScalar minScale, SkScalar maxScale) override;
DGrTextBlob.cpp1621 SkScalar maxScale) { in processSourceSDFT() argument
1624 fMinMaxScale = std::min(maxScale, fMinMaxScale); in processSourceSDFT()
2401 SkScalar minScale, SkScalar maxScale) { in processSourceSDFT() argument
/external/skqp/src/gpu/text/
DGrTextContext.cpp100 SkScalar maxScale = viewMatrix.getMaxScale(); in CanDrawAsDistanceFields() local
101 SkScalar scaledTextSize = maxScale * font.getSize(); in CanDrawAsDistanceFields()
147 SkScalar maxScale = viewMatrix.getMaxScale(); in InitDistanceFieldPaint() local
151 if (maxScale > 0 && !SkScalarNearlyEqual(maxScale, SK_Scalar1)) { in InitDistanceFieldPaint()
152 scaledTextSize *= maxScale; in InitDistanceFieldPaint()
/external/aac/libSACenc/src/
Dsacenc_onsetdetect.cpp317 SCHAR maxScale = -(DFRACT_BITS - 1); in fdk_sacenc_onsetDetect_Apply() local
319 maxScale = fixMax(maxScale, envScale[i]); in fdk_sacenc_onsetDetect_Apply()
324 envs[i] = env[i] >> fixMin((maxScale - envScale[i]), (DFRACT_BITS - 1)); in fdk_sacenc_onsetDetect_Apply()
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/animation/
DAnimationActivity.java57 float maxScale = view.getMaxScale(); in play() local
59 float scale = (random.nextFloat() * (maxScale - minScale)) + minScale; in play()
/external/skia/src/gpu/ops/
DGrSmallPathRenderer.cpp276 SkScalar maxScale; in onPrepareDraws() local
282 maxScale = SkScalarAbs(std::max(xformedBounds.width() / bounds.width(), in onPrepareDraws()
285 maxScale = SkScalarAbs(args.fViewMatrix.getMaxScale()); in onPrepareDraws()
292 if (maxScale <= SK_ScalarHalf) { in onPrepareDraws()
293 SkScalar log = SkScalarFloorToScalar(SkScalarLog2(SkScalarInvert(maxScale))); in onPrepareDraws()
295 } else if (maxScale > SK_Scalar1) { in onPrepareDraws()
296 SkScalar log = SkScalarCeilToScalar(SkScalarLog2(maxScale)); in onPrepareDraws()
301 SkASSERT(maxScale <= mipScale + SK_ScalarNearlyZero); in onPrepareDraws()
DGrAALinearizingConvexPathRenderer.cpp169 SkScalar maxScale = viewMatrix.getMaxScale(); in AAFlatteningConvexPathOp() local
171 SkASSERT(maxScale != -1); in AAFlatteningConvexPathOp()
172 if (SkPaint::kMiter_Join == join && w * maxScale > 1.f) { in AAFlatteningConvexPathOp()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DLottieDrawable.java1144 float maxScale = Math.min(scaleX, scaleY);
1146 if (maxScale < 1f) {
1147 extraScale = extraScale / maxScale;
1156 float scaledHalfWidth = halfWidth * maxScale;
1157 float scaledHalfHeight = halfHeight * maxScale;
1182 float maxScale = getMaxScale(canvas);
1183 if (scale > maxScale) {
1184 scale = maxScale;
/external/skqp/src/gpu/ops/
DGrSmallPathRenderer.cpp396 SkScalar maxScale; in onPrepareDraws() local
402 maxScale = SkScalarAbs(SkTMax(xformedBounds.width() / bounds.width(), in onPrepareDraws()
405 maxScale = SkScalarAbs(args.fViewMatrix.getMaxScale()); in onPrepareDraws()
412 if (maxScale <= SK_ScalarHalf) { in onPrepareDraws()
413 SkScalar log = SkScalarFloorToScalar(SkScalarLog2(SkScalarInvert(maxScale))); in onPrepareDraws()
415 } else if (maxScale > SK_Scalar1) { in onPrepareDraws()
416 SkScalar log = SkScalarCeilToScalar(SkScalarLog2(maxScale)); in onPrepareDraws()
419 SkASSERT(maxScale <= mipScale); in onPrepareDraws()
/external/aac/libPCMutils/src/
Dpcmdmx_lib.cpp993 INT maxScale = 0; in getMixFactors() local
1545 if (mixScales[outCh][inCh] > maxScale) { /* Store the new maximum */ in getMixFactors()
1546 maxScale = mixScales[outCh][inCh]; in getMixFactors()
1563 if (mixScales[outCh][inCh] <= maxScale) { in getMixFactors()
1564 addFact >>= maxScale - mixScales[outCh][inCh]; in getMixFactors()
1566 addFact <<= mixScales[outCh][inCh] - maxScale; in getMixFactors()
1592 maxScale = fMax(maxScale + chSumMax, 0); in getMixFactors()
1600 if (mixScales[outCh][inCh] <= maxScale) { in getMixFactors()
1601 mixFactors[outCh][inCh] >>= maxScale - mixScales[outCh][inCh]; in getMixFactors()
1603 mixFactors[outCh][inCh] <<= mixScales[outCh][inCh] - maxScale; in getMixFactors()
[all …]
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DPlayerFragment.kt280 val maxScale = maxScale() in <lambda>() constant
281 val scale = minScale + progress / 100f * (maxScale - minScale) in <lambda>()
497 private fun maxScale(): Float = withState(viewModel) { state -> in <lambda>() method
/external/freetype/src/psaux/
Dpsft.c68 CF2_Fixed maxScale; in cf2_checkTransform() local
82 maxScale = FT_DivFix( CF2_MAX_SIZE, cf2_intToFixed( unitsPerEm ) ); in cf2_checkTransform()
84 if ( transform->a > maxScale || transform->d > maxScale ) in cf2_checkTransform()
/external/skia/src/gpu/tessellate/
DGrStrokeTessellateShader.cpp439 float maxScale = shader.viewMatrix().getMaxScale(); in setData() local
440 pdman.set1f(fTessArgsUniform, GrStrokeTolerances::CalcParametricPrecision(maxScale)); in setData()
1296 float maxScale = shader.viewMatrix().getMaxScale(); in setData() local
1298 GrStrokeTolerances::CalcParametricPrecision(maxScale)); in setData()
/external/skia/tests/
DMatrixTest.cpp269 SkScalar maxScale = mat.getMaxScale(); in test_matrix_min_max_scale() local
270 REPORTER_ASSERT(reporter, (minScale < 0) == (maxScale < 0)); in test_matrix_min_max_scale()
271 REPORTER_ASSERT(reporter, (maxScale < 0) == mat.hasPerspective()); in test_matrix_min_max_scale()
276 REPORTER_ASSERT(reporter, !success || (scales[0] == minScale && scales[1] == maxScale)); in test_matrix_min_max_scale()
300 REPORTER_ASSERT(reporter, d / maxScale < gVectorScaleTol); in test_matrix_min_max_scale()
309 REPORTER_ASSERT(reporter, max / maxScale >= gCloseScaleTol); in test_matrix_min_max_scale()
/external/skqp/tests/
DMatrixTest.cpp262 SkScalar maxScale = mat.getMaxScale(); in test_matrix_min_max_scale() local
263 REPORTER_ASSERT(reporter, (minScale < 0) == (maxScale < 0)); in test_matrix_min_max_scale()
264 REPORTER_ASSERT(reporter, (maxScale < 0) == mat.hasPerspective()); in test_matrix_min_max_scale()
269 REPORTER_ASSERT(reporter, !success || (scales[0] == minScale && scales[1] == maxScale)); in test_matrix_min_max_scale()
293 REPORTER_ASSERT(reporter, d / maxScale < gVectorScaleTol); in test_matrix_min_max_scale()
302 REPORTER_ASSERT(reporter, max / maxScale >= gCloseScaleTol); in test_matrix_min_max_scale()
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/
DSubsamplingScaleImageView.java158 private float maxScale = 2F; field in SubsamplingScaleImageView
746 scale = Math.min(maxScale, (vDistEnd / vDistStart) * scaleStart); in onTouchEventInternal()
805 scale = Math.max(minScale(), Math.min(maxScale, scale * multiplier)); in onTouchEventInternal()
950 … float doubleTapZoomScale = Math.min(maxScale, SubsamplingScaleImageView.this.doubleTapZoomScale); in doubleTapZoom()
1114 …SH, "%.2f", minScale()) + " - " + String.format(Locale.ENGLISH, "%.2f", maxScale) + ")", px(5), px… in onDraw()
2268 targetScale = Math.min(maxScale, targetScale); in limitedScale()
2460 public final void setMaxScale(float maxScale) { in setMaxScale() argument
2461 this.maxScale = maxScale; in setMaxScale()
2501 return maxScale; in getMaxScale()
/external/skqp/src/core/
DSkGlyphRunPainter.cpp261 SkScalar maxScale = viewMatrix.getMaxScale(); in processARGBFallback() local
265 SkScalar conservativeMaxGlyphDimension = maxGlyphDimension * textScale * maxScale; in processARGBFallback()
/external/deqp/framework/randomshaders/
DrsgBinaryOps.cpp466 const float maxScale = 2.0f; in operator ()() local
470 float scale = getQuantizedFloat(rnd, minScale, maxScale, scaleStep); in operator ()()
/external/dng_sdk/source/
Ddng_lens_correction.cpp2252 const real64 maxScale = Max_real32 (table32.Interpolate (0.0f), in Prepare() local
2263 while ((1 << fTableOutputBits) * maxScale > 65535.0) in Prepare()