VideoSize

data class VideoSize(val width: Int, val height: Int, val pixelAspectNumerator: Int = 1, val pixelAspectDenominator: Int = 1)

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, pixelAspectNumerator: Int = 1, pixelAspectDenominator: Int = 1)

Properties

Link copied to clipboard
Link copied to clipboard

The size to lay out at, after applying a non-square pixel aspect.

Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard

Pixel aspect ratio numerator over denominator. 1 to 1 for square pixels.

Link copied to clipboard
val width: Int

Functions

Link copied to clipboard

What is left of this size once crop's edges are taken away, with the same pixel aspect, or this size when crop is null or does not fit it. The display aspect of the result is the aspect of what is left, which is why a cropped 1920 by 1088 picture shows at exactly 16:9.