Searched refs:aspectRatio (Results 1 – 4 of 4) sorted by relevance
194 float aspectRatio = ((float) mVideoWidth) / mVideoHeight;195 if (rect.width() / aspectRatio <= rect.height()) {197 lp.height = (int) (rect.width() / aspectRatio);199 lp.width = (int) (rect.height() * aspectRatio);
72 public void init(Camera camera, float aspectRatio, int rotation) { in init() argument74 mCameraAspectRatio = aspectRatio; in init()
391 boolean aspectRatio = true; in getOptimalPreviewSize()395 if(aspectRatio) { in getOptimalPreviewSize()415 if (optimalSize == null && aspectRatio == true) { in getOptimalPreviewSize()418 aspectRatio = false; in getOptimalPreviewSize()
2705 double aspectRatio = (double)(size.getWidth()) / size.getHeight();2706 if (isAspectRatioContained(aspectRatiosTested, aspectRatio, ASPECT_RATIO_THRESHOLD)) {2714 aspectRatiosTested.add(aspectRatio);2720 double aspectRatio, double delta) {2722 if (Math.abs(ratio - aspectRatio) < delta) {