library/src/main/java/com/devbrackets/android/exomedia/core/video/scale/MatrixManager.java
protected void applyFitCenter(@NonNull TextureView view, @NonNull Matrix transformMatrix) {
        float xScale = (float)view.getWidth() / intrinsicVideoSize.x;
        float yScale = (float)view.getHeight() / intrinsicVideoSize.y;

        float scale = Math.min(xScale, yScale);
        xScale = scale / xScale;
        yScale = scale / yScale;
        applyScale(view, transformMatrix, xScale, yScale);
    }
/**
     * Applies the {@link ScaleType#FIT_CENTER} to the specified matrix.  This will
     * scale the video so that the largest side will always match the <code>view</code>
     *
     * @param view The view to apply the transformation to
     * @param transformMatrix The matrix to add the transformation to
     */
Applies the  ScaleType#FIT_CENTER to the specified matrix.  This will
scale the video so that the largest side will always match the view

@param view The view to apply the transformation to
@param transformMatrix The matrix to add the transformation to
Applies the ScaleType#FIT_CENTER to the specified matrix . This will scale the video so that the largest side will always match the view @param view The view to apply the transformation to @param transformMatrix The matrix to add the transformation to
protected void applyFitCenter(@NonNull TextureView view, @NonNull Matrix transformMatrix) {
        float xScale = (float)view.getWidth() / intrinsicVideoSize.x;
        float yScale = (float)view.getHeight() / intrinsicVideoSize.y;
        float scale = Math.min(xScale, yScale);
        xScale = scale / xScale;
        yScale = scale / yScale;
        applyScale(view, transformMatrix, xScale, yScale);
    }
protected void applyFitCenter ( @ NonNull TextureView view , @ NonNull Matrix transformMatrix ) { float xScale = ( float ) view . getWidth ( ) / intrinsicVideoSize . x ; float yScale = ( float ) view . getHeight ( ) / intrinsicVideoSize . y ; float scale = Math . min ( xScale , yScale ) ; xScale = scale / xScale ; yScale = scale / yScale ; applyScale ( view , transformMatrix , xScale , yScale ) ; }
Applies the {@link ScaleType#FIT_CENTER} to the specified matrix.
Applies the { @link ScaleType#FIT_CENTER } to the specified matrix .