Searched refs:heightRatio (Results 1 – 2 of 2) sorted by relevance
700 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight; in startPreview() local703 heightRatio); in startPreview()706 if (heightRatio < widthRatio) { in startPreview()707 transform.setScale(1, heightRatio / widthRatio); in startPreview()709 mPreviewTexHeight * (1 - heightRatio / widthRatio) / 2); in startPreview()711 Log.v(TAG, "startPreview: shrink vertical by " + heightRatio / widthRatio); in startPreview()714 transform.setScale(widthRatio / heightRatio, 1); in startPreview()715 transform.postTranslate(mPreviewTexWidth * (1 - widthRatio / heightRatio) / 2, 0); in startPreview()717 Log.v(TAG, "startPreview: shrink horizontal by " + widthRatio / heightRatio); in startPreview()
454 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight; in startPreview() local456 if (heightRatio < widthRatio) { in startPreview()457 transform.setScale(1, heightRatio/widthRatio); in startPreview()459 mPreviewTexHeight * (1 - heightRatio/widthRatio)/2); in startPreview()461 transform.setScale(widthRatio/heightRatio, 1); in startPreview()462 transform.postTranslate(mPreviewTexWidth * (1 - widthRatio/heightRatio)/2, in startPreview()