Package tvi.webrtc
Class RendererCommon.VideoLayoutMeasure
java.lang.Object
tvi.webrtc.RendererCommon.VideoLayoutMeasure
- Enclosing class:
- RendererCommon
Helper class for determining layout size based on layout requirements, scaling type, and video
aspect ratio.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionandroid.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)
-
Constructor Details
-
VideoLayoutMeasure
public VideoLayoutMeasure()
-
-
Method Details
-
setScalingType
-
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)
-