Searched refs:widthRatio (Results 1 – 2 of 2) sorted by relevance
699 float widthRatio = mNextPreviewSize.width / (float)mPreviewTexWidth; in startPreview() local702 Log.v(TAG, "startPreview: widthRatio=" + widthRatio + " " + "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()
453 float widthRatio = mNextPreviewSize.width / (float)mPreviewTexWidth; 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()