Home
last modified time | relevance | path

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

/third_party/skia/src/codec/
DSkScalingCodec.h19 SkISize onGetScaledDimensions(float desiredScale) const override { in onGetScaledDimensions() argument
23 dim.fWidth = std::max(1, SkScalarRoundToInt(desiredScale * dim.fWidth)); in onGetScaledDimensions()
24 dim.fHeight = std::max(1, SkScalarRoundToInt(desiredScale * dim.fHeight)); in onGetScaledDimensions()
DSkRawCodec.cpp752 SkISize SkRawCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()
753 SkASSERT(desiredScale <= 1.f); in onGetScaledDimensions()
764 if (desiredScale < 80.f / shortEdge) { in onGetScaledDimensions()
765 desiredScale = 80.f / shortEdge; in onGetScaledDimensions()
770 if (fDngImage->isXtransImage() && desiredScale > 1.f / 3.f && desiredScale < 1.f) { in onGetScaledDimensions()
771 desiredScale = 1.f / 3.f; in onGetScaledDimensions()
775 const float finalScale = std::floor(1.f/ desiredScale); in onGetScaledDimensions()
DSkIcoCodec.cpp244 SkISize SkIcoCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()
252 float desiredSize = desiredScale * origWidth * desiredScale * origHeight; in onGetScaledDimensions()
254 float desiredSize = desiredScale * origWidth * origHeight; in onGetScaledDimensions()
DSkJpegCodec.cpp313 SkISize SkJpegCodec::onGetScaledDimensions(float desiredScale) const { in onGetScaledDimensions()
318 if (desiredScale >= 0.9375) { in onGetScaledDimensions()
320 } else if (desiredScale >= 0.8125) { in onGetScaledDimensions()
322 } else if (desiredScale >= 0.6875f) { in onGetScaledDimensions()
324 } else if (desiredScale >= 0.5625f) { in onGetScaledDimensions()
326 } else if (desiredScale >= 0.4375f) { in onGetScaledDimensions()
328 } else if (desiredScale >= 0.3125f) { in onGetScaledDimensions()
330 } else if (desiredScale >= 0.1875f) { in onGetScaledDimensions()
DSkCodecImageGenerator.cpp89 SkISize SkCodecImageGenerator::getScaledDimensions(float desiredScale) const { in getScaledDimensions()
90 SkISize size = fCodec->getScaledDimensions(desiredScale); in getScaledDimensions()
DSkRawCodec.h44 SkISize onGetScaledDimensions(float desiredScale) const override;
DSkCodecImageGenerator.h33 SkISize getScaledDimensions(float desiredScale) const;
DSkIcoCodec.h35 SkISize onGetScaledDimensions(float desiredScale) const override;
DSkJpegCodec.h41 SkISize onGetScaledDimensions(float desiredScale) const override;
/third_party/skia/include/codec/
DSkCodec.h226 SkISize getScaledDimensions(float desiredScale) const { in getScaledDimensions() argument
228 SkASSERT(desiredScale > 0.0f); in getScaledDimensions()
229 if (desiredScale <= 0.0f) { in getScaledDimensions()
235 if (desiredScale >= 1.0f) { in getScaledDimensions()
238 return this->onGetScaledDimensions(desiredScale); in getScaledDimensions()