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.java700 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight; in startPreview() local
703 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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java454 float heightRatio = mNextPreviewSize.height / (float)mPreviewTexHeight; in startPreview() local
456 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()