Home
last modified time | relevance | path

Searched refs:desiredScale (Results 1 – 9 of 9) sorted by relevance

/external/skia/include/codec/
DSkCodec.h108 SkISize getScaledDimensions(float desiredScale) const { in getScaledDimensions() argument
110 SkASSERT(desiredScale > 0.0f); in getScaledDimensions()
111 if (desiredScale <= 0.0f) { in getScaledDimensions()
117 if (desiredScale >= 1.0f) { in getScaledDimensions()
120 return this->onGetScaledDimensions(desiredScale); in getScaledDimensions()
/external/skia/src/codec/
DSkJpegCodec.cpp116 SkISize SkJpegCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()
121 if (desiredScale >= 0.9375) { in onGetScaledDimensions()
123 } else if (desiredScale >= 0.8125) { in onGetScaledDimensions()
125 } else if (desiredScale >= 0.6875f) { in onGetScaledDimensions()
127 } else if (desiredScale >= 0.5625f) { in onGetScaledDimensions()
129 } else if (desiredScale >= 0.4375f) { in onGetScaledDimensions()
131 } else if (desiredScale >= 0.3125f) { in onGetScaledDimensions()
133 } else if (desiredScale >= 0.1875f) { in onGetScaledDimensions()
DSkRawCodec.cpp723 SkISize SkRawCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()
724 SkASSERT(desiredScale <= 1.f); in onGetScaledDimensions()
735 if (desiredScale < 80.f / shortEdge) { in onGetScaledDimensions()
736 desiredScale = 80.f / shortEdge; in onGetScaledDimensions()
741 if (fDngImage->isXtransImage() && desiredScale > 1.f / 3.f && desiredScale < 1.f) { in onGetScaledDimensions()
742 desiredScale = 1.f / 3.f; in onGetScaledDimensions()
746 const float finalScale = std::floor(1.f/ desiredScale); in onGetScaledDimensions()
DSkWebpCodec.cpp108 SkISize SkWebpCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()
112 dim.fWidth = SkTMax(1, SkScalarRoundToInt(desiredScale * dim.fWidth)); in onGetScaledDimensions()
113 dim.fHeight = SkTMax(1, SkScalarRoundToInt(desiredScale * dim.fHeight)); in onGetScaledDimensions()
DSkWebpCodec.h30 SkISize onGetScaledDimensions(float desiredScale) const override;
DSkRawCodec.h43 SkISize onGetScaledDimensions(float desiredScale) const override;
DSkIcoCodec.h32 SkISize onGetScaledDimensions(float desiredScale) const override;
DSkIcoCodec.cpp192 SkISize SkIcoCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()
198 float desiredSize = desiredScale * origWidth * origHeight; in onGetScaledDimensions()
DSkJpegCodec.h40 SkISize onGetScaledDimensions(float desiredScale) const override;