Lines Matching refs:aspectRatio
134 public void updateAspectRatio(float aspectRatio) { in updateAspectRatio() argument
135 Log.v(TAG, "updateAspectRatio " + aspectRatio); in updateAspectRatio()
136 if (aspectRatio <= 0) { in updateAspectRatio()
137 Log.e(TAG, "Invalid aspect ratio: " + aspectRatio); in updateAspectRatio()
140 if (aspectRatio < 1f) { in updateAspectRatio()
141 aspectRatio = 1f / aspectRatio; in updateAspectRatio()
143 setAspectRatio(aspectRatio); in updateAspectRatio()
147 private void setAspectRatio(float aspectRatio) { in setAspectRatio() argument
148 Log.v(TAG, "setAspectRatio: " + aspectRatio); in setAspectRatio()
149 if (mAspectRatio != aspectRatio) { in setAspectRatio()
151 mAspectRatio = aspectRatio; in setAspectRatio()
188 public void updateTransformFullScreen(Matrix matrix, float aspectRatio) { in updateTransformFullScreen() argument
189 aspectRatio = aspectRatio < 1 ? 1 / aspectRatio : aspectRatio; in updateTransformFullScreen()
190 if (aspectRatio != mAspectRatio) { in updateTransformFullScreen()
191 setAspectRatio(aspectRatio); in updateTransformFullScreen()
210 float aspectRatio = previewWidth / previewHeight;
211 aspectRatio = aspectRatio < 1 ? 1 / aspectRatio : aspectRatio;
212 if (aspectRatio != mAspectRatio) {
213 setAspectRatio(aspectRatio);