Package tvi.webrtc
Class RendererCommon.VideoLayoutMeasure
- java.lang.Object
-
- tvi.webrtc.RendererCommon.VideoLayoutMeasure
-
- Enclosing class:
- RendererCommon
public static class RendererCommon.VideoLayoutMeasure extends java.lang.Object
Helper class for determining layout size based on layout requirements, scaling type, and video aspect ratio.
-
-
Constructor Summary
Constructors Constructor Description VideoLayoutMeasure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.graphics.Point
measure(int widthSpec, int heightSpec, int frameWidth, int frameHeight)
void
setScalingType(RendererCommon.ScalingType scalingType)
void
setScalingType(RendererCommon.ScalingType scalingTypeMatchOrientation, RendererCommon.ScalingType scalingTypeMismatchOrientation)
void
setVisibleFraction(float visibleFractionMatchOrientation, float visibleFractionMismatchOrientation)
-
-
-
Method Detail
-
setScalingType
public void setScalingType(RendererCommon.ScalingType scalingType)
-
setScalingType
public void setScalingType(RendererCommon.ScalingType scalingTypeMatchOrientation, RendererCommon.ScalingType scalingTypeMismatchOrientation)
-
setVisibleFraction
public void setVisibleFraction(float visibleFractionMatchOrientation, float visibleFractionMismatchOrientation)
-
measure
public android.graphics.Point measure(int widthSpec, int heightSpec, int frameWidth, int frameHeight)
-
-