Searched refs:TARGET_ASPECT (Results 1 – 2 of 2) sorted by relevance
312 final float TARGET_ASPECT = 16.f / 9.f; in getBestSize() local332 double aspectDelta = Math.abs(maxSize.getWidth() / maxSize.getHeight() - TARGET_ASPECT); in getBestSize()336 aspectDelta = Math.abs(maxSize.getWidth() / maxSize.getHeight() - TARGET_ASPECT); in getBestSize()339 …if (aspectDelta > Math.abs(candidateSize.getWidth() / candidateSize.getHeight() - TARGET_ASPECT)) { in getBestSize()341 … aspectDelta = Math.abs(maxSize.getWidth() / maxSize.getHeight() - TARGET_ASPECT); in getBestSize()
287 final float TARGET_ASPECT = 16.f / 9.f; in getBestSize() local302 Math.abs(candidateAspect - TARGET_ASPECT) < ASPECT_TOLERANCE; in getBestSize()304 Math.abs(outputAspect - TARGET_ASPECT) < ASPECT_TOLERANCE; in getBestSize()