Searched refs:viewRatio (Results 1 – 2 of 2) sorted by relevance
320 float viewRatio = previewWidth / (float) previewHeight; in updateImageDimensions() local322 if (imageRatio > viewRatio) { in updateImageDimensions()325 int imageHeight = (int) (previewHeight * viewRatio / imageRatio); in updateImageDimensions()
466 float viewRatio = previewWidth / (float) previewHeight; in updateImageDimensions() local477 if (imageRatio > viewRatio) { in updateImageDimensions()480 imageHeight = (int) (previewHeight * viewRatio / imageRatio); in updateImageDimensions()488 imageWidth = (int) (previewWidth * imageRatio / viewRatio); in updateImageDimensions()