Home
last modified time | relevance | path

Searched refs:scalingType (Results 1 – 6 of 6) sorted by relevance

/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DSurfaceViewRendererOnMeasureTest.java71 SurfaceViewRenderer surfaceViewRenderer, RendererCommon.ScalingType scalingType, in assertMeasuredSize() argument
75 surfaceViewRenderer.setScalingType(scalingType); in assertMeasuredSize()
82 + " with scaling type " + scalingType in assertMeasuredSize()
99 for (RendererCommon.ScalingType scalingType : scalingTypes) { in testNoFrame()
102 assertMeasuredSize(surfaceViewRenderer, scalingType, frameDimensions, in testNoFrame()
104 assertMeasuredSize(surfaceViewRenderer, scalingType, frameDimensions, in testNoFrame()
113 for (RendererCommon.ScalingType scalingType : scalingTypes) { in testNoFrame()
116 assertMeasuredSize(surfaceViewRenderer, scalingType, frameDimensions, in testNoFrame()
118 assertMeasuredSize(surfaceViewRenderer, scalingType, frameDimensions, in testNoFrame()
152 for (RendererCommon.ScalingType scalingType : scalingTypes) { in testFrame1280x720()
[all …]
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DVideoRendererGui.java113 private RendererCommon.ScalingType scalingType; field in VideoRendererGui.YuvImageRenderer
160 RendererCommon.ScalingType scalingType, boolean mirror, RendererCommon.GlDrawer drawer) { in YuvImageRenderer() argument
164 this.scalingType = scalingType; in YuvImageRenderer()
218 final Point displaySize = RendererCommon.getDisplaySize(scalingType, in updateLayoutMatrix()
327 RendererCommon.ScalingType scalingType, boolean mirror) { in setPosition() argument
331 if (layoutInPercentage.equals(this.layoutInPercentage) && scalingType == this.scalingType in setPosition()
336 ") " + width + " x " + height + ". Scaling: " + scalingType + in setPosition()
339 this.scalingType = scalingType; in setPosition()
450 RendererCommon.ScalingType scalingType, boolean mirror) throws Exception { in createGui() argument
452 x, y, width, height, scalingType, mirror); in createGui()
[all …]
DRendererCommon.java206 public static Point getDisplaySize(ScalingType scalingType, float videoAspectRatio, in getDisplaySize() argument
208 return getDisplaySize(convertScalingTypeToVisibleFraction(scalingType), videoAspectRatio, in getDisplaySize()
230 private static float convertScalingTypeToVisibleFraction(ScalingType scalingType) { in convertScalingTypeToVisibleFraction() argument
231 switch (scalingType) { in convertScalingTypeToVisibleFraction()
DSurfaceViewRenderer.java103 private RendererCommon.ScalingType scalingType = RendererCommon.ScalingType.SCALE_ASPECT_BALANCED; field in SurfaceViewRenderer
287 public void setScalingType(RendererCommon.ScalingType scalingType) { in setScalingType() argument
289 this.scalingType = scalingType; in setScalingType()
327 RendererCommon.getDisplaySize(scalingType, frameAspectRatio(), maxWidth, maxHeight); in getDesiredLayoutSize()
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DCallFragment.java37 private ScalingType scalingType; field in CallFragment
46 public void onVideoScalingSwitch(ScalingType scalingType); in onVideoScalingSwitch() argument
88 if (scalingType == ScalingType.SCALE_ASPECT_FILL) { in onCreateView()
91 scalingType = ScalingType.SCALE_ASPECT_FIT; in onCreateView()
95 scalingType = ScalingType.SCALE_ASPECT_FILL; in onCreateView()
97 callEvents.onVideoScalingSwitch(scalingType); in onCreateView()
100 scalingType = ScalingType.SCALE_ASPECT_FILL; in onCreateView()
DCallActivity.java123 private ScalingType scalingType; field in CallActivity
162 scalingType = ScalingType.SCALE_ASPECT_FILL; in onCreate()
313 public void onVideoScalingSwitch(ScalingType scalingType) { in onVideoScalingSwitch() argument
314 this.scalingType = scalingType; in onVideoScalingSwitch()
346 remoteRender.setScalingType(scalingType); in updateVideoView()
356 localRender.setScalingType(scalingType); in updateVideoView()