Searched refs:candidateSize (Results 1 – 4 of 4) sorted by relevance
196 for (Size candidateSize : outputSizes) { in getOptimalSize()197 if (candidateSize.getWidth() < MAX_WIDTH) { in getOptimalSize()198 float candidateAspect = (float) candidateSize.getWidth() / candidateSize.getHeight(); in getOptimalSize()205 || candidateSize.getWidth() > bestCandidateSize.getWidth()) { in getOptimalSize()206 bestCandidateSize = candidateSize; in getOptimalSize()
322 for (Size candidateSize : outputSizes) { in getBestSize()323 if (candidateSize.getWidth() <= MAX_WIDTH) { in getBestSize()324 Log.v(TAG, "consider " + candidateSize); in getBestSize()325 smallEnough.add(candidateSize); in getBestSize()333 for (Size candidateSize : smallEnough) { in getBestSize()334 if (maxSize.getWidth() < candidateSize.getWidth()) { in getBestSize()335 maxSize = candidateSize; in getBestSize()338 if (maxSize.getWidth() == candidateSize.getWidth()) { in getBestSize()339 …if (aspectDelta > Math.abs(candidateSize.getWidth() / candidateSize.getHeight() - TARGET_ASPECT)) { in getBestSize()340 maxSize = candidateSize; in getBestSize()
298 for (Size candidateSize : outputSizes) { in getBestSize()299 if (candidateSize.getWidth() > MAX_WIDTH) continue; in getBestSize()300 float candidateAspect = (float) candidateSize.getWidth() / candidateSize.getHeight(); in getBestSize()306 candidateSize.getWidth() > outputSize.getWidth()) { in getBestSize()307 outputSize = candidateSize; in getBestSize()
582 Size candidateSize = mOrderedStillSizes.get(i); in videoSnapshotTestByCamera() local585 if (candidateSize.getWidth() <= videoSz.getWidth() && in videoSnapshotTestByCamera()586 candidateSize.getHeight() <= videoSz.getHeight()) { in videoSnapshotTestByCamera()587 videoSnapshotSz = candidateSize; in videoSnapshotTestByCamera()590 Long jpegFrameDuration = minFrameDurationMap.get(candidateSize); in videoSnapshotTestByCamera()591 assertTrue("Cannot find minimum frame duration for jpeg size " + candidateSize, in videoSnapshotTestByCamera()593 if (candidateSize.getWidth() <= videoSz.getWidth() && in videoSnapshotTestByCamera()594 candidateSize.getHeight() <= videoSz.getHeight() && in videoSnapshotTestByCamera()596 videoSnapshotSz = candidateSize; in videoSnapshotTestByCamera()