VideoFormat

data class VideoFormat(val format: VideoFormat.Descriptor, val resolution: VideoFormat.Resolution, val framerate: VideoFormat.Framerate, val bitDepth: Int, val fullColorRange: Boolean, val colorPrimaries: VideoFormat.ColorPrimaries?, val transferFunction: VideoFormat.TransferFunction?, val matrixCoefficients: VideoFormat.MatrixCoefficients?, val dynamicRange: VideoFormat.DynamicRange?, val toneMapping: VideoFormat.ToneMapping?, val sampleAspectRatio: VideoFormat.AspectRatio, val masteringDisplayColorVolume: VideoFormat.MasteringDisplayColorVolume?, val contentLightLevel: VideoFormat.ContentLightLevel?)

Video format information.

Constructors

Link copied to clipboard
constructor(format: VideoFormat.Descriptor, resolution: VideoFormat.Resolution, framerate: VideoFormat.Framerate, bitDepth: Int, fullColorRange: Boolean, colorPrimaries: VideoFormat.ColorPrimaries?, transferFunction: VideoFormat.TransferFunction?, matrixCoefficients: VideoFormat.MatrixCoefficients?, dynamicRange: VideoFormat.DynamicRange?, toneMapping: VideoFormat.ToneMapping?, sampleAspectRatio: VideoFormat.AspectRatio, masteringDisplayColorVolume: VideoFormat.MasteringDisplayColorVolume?, contentLightLevel: VideoFormat.ContentLightLevel?)

Types

Link copied to clipboard
data class AspectRatio(val width: ULong, val height: ULong)

Represents an aspect ratio.

Link copied to clipboard
interface ColorPrimaries

Color primaries.

Link copied to clipboard
data class ContentLightLevel(val maxContentLightLevel: Long, val maxFrameAverageLightLevel: Long)

Content light level.

Link copied to clipboard
interface Descriptor

Describes a video format.

Link copied to clipboard
Link copied to clipboard
data class Framerate(val frames: Long, val period: Long)

Represents a framerate.

Link copied to clipboard
data class MasteringDisplayColorVolume(val colorPrimaries: VideoFormat.ColorPrimaries, val luminanceRange: ClosedFloatingPointRange<Double>)

Mastering display color volume.

Link copied to clipboard
Link copied to clipboard
data class Raw(val pixelFormat: VideoFormat.Raw.PixelFormat?, val pixelOrder: VideoFormat.Raw.PixelOrder?, val pixelLayout: VideoFormat.Raw.PixelLayout?, val pixelSize: UInt, val dataLayout: VideoFormat.Raw.DataLayout?, val dataPadding: VideoFormat.Raw.DataPadding, val dataEndianness: VideoFormat.Raw.DataEndianness, val dataSize: UInt) : VideoFormat.Descriptor

Describes a raw video format.

Link copied to clipboard
data class Resolution(val width: ULong, val height: ULong)

Represents a video resolution.

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

bit depth

Link copied to clipboard

color primaries, or null if not available

Link copied to clipboard

Content light level, or null if not available

Link copied to clipboard

dynamic range, or null if not available

Link copied to clipboard

video format description

Link copied to clipboard

video framerate

Link copied to clipboard

true for full color range, otherwise false

Link copied to clipboard

mastering display color volume, or null if not available

Link copied to clipboard

matrix coefficients, or null if not available

Link copied to clipboard

video frame resolution (in pixels)

Link copied to clipboard
Link copied to clipboard

tone mapping, or null if not available

Link copied to clipboard

transfer function, or null if not available