Home
last modified time | relevance | path

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

/external/skia/include/codec/
DSkCodec.h142 SkISize getScaledDimensions(float desiredScale) const { in getScaledDimensions() argument
144 SkASSERT(desiredScale > 0.0f); in getScaledDimensions()
145 if (desiredScale <= 0.0f) { in getScaledDimensions()
151 if (desiredScale >= 1.0f) { in getScaledDimensions()
154 return this->onGetScaledDimensions(desiredScale); in getScaledDimensions()
/external/skia/src/codec/
DSkRawCodec.cpp769 SkISize SkRawCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()
770 SkASSERT(desiredScale <= 1.f); in onGetScaledDimensions()
781 if (desiredScale < 80.f / shortEdge) { in onGetScaledDimensions()
782 desiredScale = 80.f / shortEdge; in onGetScaledDimensions()
787 if (fDngImage->isXtransImage() && desiredScale > 1.f / 3.f && desiredScale < 1.f) { in onGetScaledDimensions()
788 desiredScale = 1.f / 3.f; in onGetScaledDimensions()
792 const float finalScale = std::floor(1.f/ desiredScale); in onGetScaledDimensions()
DSkJpegCodec.cpp319 SkISize SkJpegCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()
324 if (desiredScale >= 0.9375) { in onGetScaledDimensions()
326 } else if (desiredScale >= 0.8125) { in onGetScaledDimensions()
328 } else if (desiredScale >= 0.6875f) { in onGetScaledDimensions()
330 } else if (desiredScale >= 0.5625f) { in onGetScaledDimensions()
332 } else if (desiredScale >= 0.4375f) { in onGetScaledDimensions()
334 } else if (desiredScale >= 0.3125f) { in onGetScaledDimensions()
336 } else if (desiredScale >= 0.1875f) { in onGetScaledDimensions()
DSkRawCodec.h44 SkISize onGetScaledDimensions(float desiredScale) const override;
DSkWebpCodec.h35 SkISize onGetScaledDimensions(float desiredScale) const override;
DSkWebpCodec.cpp148 SkISize SkWebpCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()
152 dim.fWidth = SkTMax(1, SkScalarRoundToInt(desiredScale * dim.fWidth)); in onGetScaledDimensions()
153 dim.fHeight = SkTMax(1, SkScalarRoundToInt(desiredScale * dim.fHeight)); in onGetScaledDimensions()
DSkIcoCodec.h35 SkISize onGetScaledDimensions(float desiredScale) const override;
DSkJpegCodec.h42 SkISize onGetScaledDimensions(float desiredScale) const override;
DSkIcoCodec.cpp204 SkISize SkIcoCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()
210 float desiredSize = desiredScale * origWidth * origHeight; in onGetScaledDimensions()