Searched refs:heightRatio (Results 1 – 2 of 2) sorted by relevance
894 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight; in startPreview() local897 heightRatio); in startPreview()900 if (heightRatio < widthRatio) { in startPreview()901 transform.setScale(1, heightRatio / widthRatio); in startPreview()903 mPreviewTexHeight * (1 - heightRatio / widthRatio) / 2); in startPreview()905 Log.v(TAG, "startPreview: shrink vertical by " + heightRatio / widthRatio); in startPreview()908 transform.setScale(widthRatio / heightRatio, 1); in startPreview()909 transform.postTranslate(mPreviewTexWidth * (1 - widthRatio / heightRatio) / 2, 0); in startPreview()911 Log.v(TAG, "startPreview: shrink horizontal by " + widthRatio / heightRatio); in startPreview()
515 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight; in startPreview() local517 if (heightRatio < widthRatio) { in startPreview()518 transform.setScale(1, heightRatio/widthRatio); in startPreview()520 mPreviewTexHeight * (1 - heightRatio/widthRatio)/2); in startPreview()522 transform.setScale(widthRatio/heightRatio, 1); in startPreview()523 transform.postTranslate(mPreviewTexWidth * (1 - widthRatio/heightRatio)/2, in startPreview()