Home
last modified time | relevance | path

Searched refs:frameAspectRatio (Results 1 – 3 of 3) sorted by relevance

/external/webrtc/sdk/android/api/org/webrtc/
DVideoFileRenderer.java92 final float frameAspectRatio = (float) buffer.getWidth() / (float) buffer.getHeight(); in renderFrameOnRenderThread() local
98 if (fileAspectRatio > frameAspectRatio) { in renderFrameOnRenderThread()
99 cropHeight = (int) (cropHeight * (frameAspectRatio / fileAspectRatio)); in renderFrameOnRenderThread()
101 cropWidth = (int) (cropWidth * (fileAspectRatio / frameAspectRatio)); in renderFrameOnRenderThread()
DEglRenderer.java637 final float frameAspectRatio = frame.getRotatedWidth() / (float) frame.getRotatedHeight(); in renderFrameOnRenderThread() local
640 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()
DSurfaceViewRenderer.java210 final float frameAspectRatio = rotatedFrameWidth / (float) rotatedFrameHeight; in updateSurfaceSize() local
213 if (frameAspectRatio > layoutAspectRatio) { in updateSurfaceSize()