Package tvi.webrtc

Class RendererCommon.VideoLayoutMeasure

java.lang.Object
tvi.webrtc.RendererCommon.VideoLayoutMeasure
Enclosing class:
RendererCommon

public static class RendererCommon.VideoLayoutMeasure extends Object
Helper class for determining layout size based on layout requirements, scaling type, and video aspect ratio.
  • Constructor Details

    • VideoLayoutMeasure

      public VideoLayoutMeasure()
  • Method Details

    • 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)