Searched refs:heightRatio (Results 1 – 2 of 2) sorted by relevance
896 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight; in startPreview() local901 heightRatio); in startPreview()904 if (heightRatio < widthRatio) { in startPreview()905 scaledHeight = mPreviewTexHeight * (heightRatio / widthRatio); in startPreview()906 transform.setScale(1, heightRatio / widthRatio); in startPreview()909 Log.v(TAG, "startPreview: shrink vertical by " + heightRatio / widthRatio); in startPreview()912 scaledWidth = mPreviewTexWidth * (widthRatio / heightRatio); in startPreview()913 transform.setScale(widthRatio / heightRatio, 1); in startPreview()916 Log.v(TAG, "startPreview: shrink horizontal by " + widthRatio / heightRatio); in startPreview()
499 float heightRatio = mNextPreviewSize.height / (float) mPreviewTexHeight; 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()