Home
last modified time | relevance | path

Searched refs:widthRatio (Results 1 – 3 of 3) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java915 float widthRatio = mNextPreviewSize.width / (float)mPreviewTexWidth; in startPreview() local
920 Log.v(TAG, "startPreview: widthRatio=" + widthRatio + " " + "heightRatio=" + in startPreview()
924 if (heightRatio < widthRatio) { in startPreview()
925 scaledHeight = mPreviewTexHeight * (heightRatio / widthRatio); in startPreview()
926 transform.setScale(1, heightRatio / widthRatio); in startPreview()
929 Log.v(TAG, "startPreview: shrink vertical by " + heightRatio / widthRatio); in startPreview()
932 scaledWidth = mPreviewTexWidth * (widthRatio / heightRatio); in startPreview()
933 transform.setScale(widthRatio / heightRatio, 1); in startPreview()
936 Log.v(TAG, "startPreview: shrink horizontal by " + widthRatio / heightRatio); in startPreview()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java498 float widthRatio = mNextPreviewSize.width / (float) mPreviewTexWidth; 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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/bokeh/
DCameraBokehActivity.java828 float widthRatio = expectedPreviewWidth / viewRect.width(); in configureImageViewTransform() local
830 if (widthRatio / heightRatio > 1.0f) { in configureImageViewTransform()
832 scale.x = 1.0f / widthRatio; in configureImageViewTransform()
833 scale.y = 1.0f / widthRatio; in configureImageViewTransform()