# SizeCalculator

open class SizeCalculator

Created by pedro on 22/03/19.

## Constructors

SizeCalculator
Link copied to clipboard
constructor()

## Functions

calculateFlip
Link copied to clipboard
open fun calculateFlip(flipStreamHorizontal: Boolean, flipStreamVertical: Boolean): Pair<Float, Float>
calculateViewPort
Link copied to clipboard
open fun calculateViewPort(mode: AspectRatioMode, previewWidth: Int, previewHeight: Int, streamWidth: Int, streamHeight: Int): ViewPort
calculateViewPortEncoder
Link copied to clipboard
open fun calculateViewPortEncoder(streamWidth: Int, streamHeight: Int, isPortrait: Boolean): ViewPort