Searched refs:frameAspectRatio (Results 1 – 3 of 3) sorted by relevance
92 final float frameAspectRatio = (float) buffer.getWidth() / (float) buffer.getHeight(); in renderFrameOnRenderThread() local98 if (fileAspectRatio > frameAspectRatio) { in renderFrameOnRenderThread()99 cropHeight = (int) (cropHeight * (frameAspectRatio / fileAspectRatio)); in renderFrameOnRenderThread()101 cropWidth = (int) (cropWidth * (fileAspectRatio / frameAspectRatio)); in renderFrameOnRenderThread()
637 final float frameAspectRatio = frame.getRotatedWidth() / (float) frame.getRotatedHeight(); in renderFrameOnRenderThread() local640 drawnAspectRatio = layoutAspectRatio != 0f ? layoutAspectRatio : frameAspectRatio; in renderFrameOnRenderThread()646 if (frameAspectRatio > drawnAspectRatio) { in renderFrameOnRenderThread()647 scaleX = drawnAspectRatio / frameAspectRatio; in renderFrameOnRenderThread()651 scaleY = frameAspectRatio / drawnAspectRatio; in renderFrameOnRenderThread()
210 final float frameAspectRatio = rotatedFrameWidth / (float) rotatedFrameHeight; in updateSurfaceSize() local213 if (frameAspectRatio > layoutAspectRatio) { in updateSurfaceSize()