Home
last modified time | relevance | path

Searched refs:scaleRatio (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/services/camera/libcameraservice/device3/
DZoomRatioMapper.h69 float scaleRatio, bool clamp);
81 void scaleRects(int32_t* rects, int rectCount, float scaleRatio);
DZoomRatioMapper.cpp322 float scaleRatio, bool clamp) { in scaleCoordinates() argument
337 float scaledX = xCentered * scaleRatio; in scaleCoordinates()
338 float scaledY = yCentered * scaleRatio; in scaleCoordinates()
357 float scaleRatio) { in scaleRects() argument
369 scaleCoordinates(coords, 1, scaleRatio, true /*clamp*/); in scaleRects()
371 scaleCoordinates(coords+2, 1, scaleRatio, true /*clamp*/); in scaleRects()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DPalette.java928 double scaleRatio = -1;
933 scaleRatio = Math.sqrt(mResizeArea / (double) bitmapArea);
938 scaleRatio = mResizeMaxDimension / (double) maxDimension;
942 if (scaleRatio <= 0) {
948 (int) Math.ceil(bitmap.getWidth() * scaleRatio),
949 (int) Math.ceil(bitmap.getHeight() * scaleRatio),
/frameworks/base/media/java/android/media/
DUtils.java175 private static Rational scaleRatio(Rational ratio, int num, int den) {
189 scaleRatio(range.getLower(), num, den),
190 scaleRatio(range.getUpper(), num, den));