SizeCalculator

open class SizeCalculator

Created by pedro on 22/03/19.

Constructors

Link copied to clipboard
constructor()

Functions

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