calculateViewportRect
fun calculateViewportRect(aspectRatioMode: AspectRatioMode, sourceSize: Size, targetSize: Size): Rect
Calculates the viewport rectangle based on the aspect ratio mode and source/target sizes.
fun calculateViewportRect(aspectRatioMode: AspectRatioMode, sourceWidth: Int, sourceHeight: Int, targetWidth: Int, targetHeight: Int): Rect
Calculates the viewport rectangle based on the aspect ratio mode and source/target dimensions.