VideoStreamInfo

data class VideoStreamInfo(val width: Int, val height: Int, val pixelFormat: PixelFormat, val frameRate: Rational, val sampleAspectRatio: Rational, val color: ColorInfo = ColorInfo.Unspecified, val vp9: Vp9CodecInfo? = null, val fieldOrder: FieldOrder = FieldOrder.Unknown, val hdr: HdrMetadata? = null, val dolbyVision: DolbyVisionConfig? = null, val crop: VideoCrop? = null, val spherical: SphericalMapping? = null, val stereo3d: Stereo3D? = null)

What the container declares about a video stream.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, pixelFormat: PixelFormat, frameRate: Rational, sampleAspectRatio: Rational, color: ColorInfo = ColorInfo.Unspecified, vp9: Vp9CodecInfo? = null, fieldOrder: FieldOrder = FieldOrder.Unknown, hdr: HdrMetadata? = null, dolbyVision: DolbyVisionConfig? = null, crop: VideoCrop? = null, spherical: SphericalMapping? = null, stereo3d: Stereo3D? = null)

Properties

Link copied to clipboard

Owned snapshot of the container/bitstream colour declaration.

Link copied to clipboard

The rows and columns at the edges of every picture that the container says are not part of the image, or null when it says nothing. A renderer leaves them out; FFmpeg does not.

Link copied to clipboard

The Dolby Vision configuration the container declares, or null when the stream is not Dolby Vision. When DolbyVisionConfig.baseLayerPlaysAlone is false, the frames need Frame.composeDolbyVision before they mean anything.

Link copied to clipboard

Whether the stream is interlaced, and which field a deinterlacer must show first.

Link copied to clipboard

The frame rate the container declares.

Link copied to clipboard

The static HDR metadata the container declares: the mastering display and the content light level. Null when it declares neither, which includes every SDR stream.

Link copied to clipboard
val height: Int

The coded height in pixels.

Link copied to clipboard

The pixel format the decoder produces.

Link copied to clipboard

The shape of one pixel, width over height. 1:1 is square.

Link copied to clipboard

How the pictures map onto a sphere around the viewer, as the container states it, or null when it says nothing, which is a flat video. A 360 degree video reads SphericalProjection.Equirectangular or SphericalProjection.Cubemap.

Link copied to clipboard

How the pictures hold the views of two eyes, as the container states it, or null when it says nothing. A stereoscopic 360 degree video has both this and spherical, and each eye's view maps onto the sphere on its own.

Link copied to clipboard

VP9 sequence metadata, present only for VP9 streams. Unknown fields stay null.

Link copied to clipboard
val width: Int

The coded width in pixels.