Searched refs:widthRatio (Results 1 – 3 of 3) sorted by relevance
915 float widthRatio = mNextPreviewSize.width / (float)mPreviewTexWidth; in startPreview() local920 Log.v(TAG, "startPreview: widthRatio=" + widthRatio + " " + "heightRatio=" + in startPreview()924 if (heightRatio < widthRatio) { in startPreview()925 scaledHeight = mPreviewTexHeight * (heightRatio / widthRatio); in startPreview()926 transform.setScale(1, heightRatio / widthRatio); in startPreview()929 Log.v(TAG, "startPreview: shrink vertical by " + heightRatio / widthRatio); in startPreview()932 scaledWidth = mPreviewTexWidth * (widthRatio / heightRatio); in startPreview()933 transform.setScale(widthRatio / heightRatio, 1); in startPreview()936 Log.v(TAG, "startPreview: shrink horizontal by " + widthRatio / heightRatio); in startPreview()
498 float widthRatio = mNextPreviewSize.width / (float) mPreviewTexWidth; in concatPreviewTransform() local503 if (heightRatio < widthRatio) { in concatPreviewTransform()504 scaledHeight = mPreviewTexHeight * (heightRatio / widthRatio); in concatPreviewTransform()505 transform.postScale(1, heightRatio / widthRatio); in concatPreviewTransform()507 mPreviewTexHeight * (1 - heightRatio / widthRatio) / 2); in concatPreviewTransform()509 scaledWidth = mPreviewTexWidth * (widthRatio / heightRatio); in concatPreviewTransform()510 transform.postScale(widthRatio / heightRatio, 1); in concatPreviewTransform()511 transform.postTranslate(mPreviewTexWidth * (1 - widthRatio / heightRatio) / 2, 0); in concatPreviewTransform()
828 float widthRatio = expectedPreviewWidth / viewRect.width(); in configureImageViewTransform() local830 if (widthRatio / heightRatio > 1.0f) { in configureImageViewTransform()832 scale.x = 1.0f / widthRatio; in configureImageViewTransform()833 scale.y = 1.0f / widthRatio; in configureImageViewTransform()