Home
last modified time | relevance | path

Searched refs:videoAspectRatio (Results 1 – 4 of 4) sorted by relevance

/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DAspectRatioFrameLayout.java103 private float videoAspectRatio; field in AspectRatioFrameLayout
131 if (this.videoAspectRatio != widthHeightRatio) { in setAspectRatio()
132 this.videoAspectRatio = widthHeightRatio; in setAspectRatio()
167 if (videoAspectRatio <= 0) { in onMeasure()
175 float aspectDeformation = videoAspectRatio / viewAspectRatio - 1; in onMeasure()
178 aspectRatioUpdateDispatcher.scheduleUpdate(videoAspectRatio, viewAspectRatio, false); in onMeasure()
184 height = (int) (width / videoAspectRatio); in onMeasure()
187 width = (int) (height * videoAspectRatio); in onMeasure()
191 width = (int) (height * videoAspectRatio); in onMeasure()
193 height = (int) (width / videoAspectRatio); in onMeasure()
[all …]
DPlayerView.java1528 float videoAspectRatio = in onVideoSizeChanged() local
1536 videoAspectRatio = 1 / videoAspectRatio; in onVideoSizeChanged()
1550 onContentAspectRatioChanged(videoAspectRatio, contentFrame, surfaceView); in onVideoSizeChanged()
/external/webrtc/sdk/android/api/org/webrtc/
DRendererCommon.java137 boolean mirror, float videoAspectRatio, float displayAspectRatio) { in getLayoutMatrix() argument
141 if (displayAspectRatio > videoAspectRatio) { in getLayoutMatrix()
142 scaleY = videoAspectRatio / displayAspectRatio; in getLayoutMatrix()
144 scaleX = displayAspectRatio / videoAspectRatio; in getLayoutMatrix()
206 ScalingType scalingType, float videoAspectRatio, int maxDisplayWidth, int maxDisplayHeight) { in getDisplaySize() argument
207 return getDisplaySize(convertScalingTypeToVisibleFraction(scalingType), videoAspectRatio, in getDisplaySize()
247 float minVisibleFraction, float videoAspectRatio, int maxDisplayWidth, int maxDisplayHeight) { in getDisplaySize() argument
249 if (minVisibleFraction == 0 || videoAspectRatio == 0) { in getDisplaySize()
254 maxDisplayWidth, Math.round(maxDisplayHeight / minVisibleFraction * videoAspectRatio)); in getDisplaySize()
256 maxDisplayHeight, Math.round(maxDisplayWidth / minVisibleFraction / videoAspectRatio)); in getDisplaySize()
/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/
DSurfaceViewRendererOnMeasureTest.java207 final float videoAspectRatio = (float) rotatedWidth / rotatedHeight; in testFrame1280x720() local
214 RendererCommon.getDisplaySize(scalingType, videoAspectRatio, 720, 1280); in testFrame1280x720()
226 RendererCommon.getDisplaySize(scalingType, videoAspectRatio, 720, 1280); in testFrame1280x720()