Home
last modified time | relevance | path

Searched refs:heightRatio (Results 1 – 2 of 2) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java896 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight; in startPreview() local
901 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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java499 float heightRatio = mNextPreviewSize.height / (float) mPreviewTexHeight; in concatPreviewTransform() local
503 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()