Home
last modified time | relevance | path

Searched refs:TARGET_ASPECT (Results 1 – 2 of 2) sorted by relevance

/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DCameraOps.java312 final float TARGET_ASPECT = 16.f / 9.f; in getBestSize() local
332 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()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DCameraOps.java287 final float TARGET_ASPECT = 16.f / 9.f; in getBestSize() local
302 Math.abs(candidateAspect - TARGET_ASPECT) < ASPECT_TOLERANCE; in getBestSize()
304 Math.abs(outputAspect - TARGET_ASPECT) < ASPECT_TOLERANCE; in getBestSize()