VideoDeviceMode

data class VideoDeviceMode(val width: Int, val height: Int, val minFrameRate: Double? = null, val maxFrameRate: Double? = null, val pixelFormat: String? = null, val codec: String? = null)(source)

A mode a video device supports. What is known depends on the platform: AVFoundation (macOS) and dshow (Windows) report frame rates, v4l2 (Linux) reports sizes and formats only.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, minFrameRate: Double? = null, maxFrameRate: Double? = null, pixelFormat: String? = null, codec: String? = null)

Properties

Link copied to clipboard

the FFmpeg name of the codec of compressed modes, like mjpeg

Link copied to clipboard
val height: Int

the height of the images in pixels

Link copied to clipboard

the highest frame rate of the mode, null when unknown

Link copied to clipboard

the lowest frame rate of the mode, null when unknown

Link copied to clipboard

the FFmpeg name of the pixel format of uncompressed modes, like yuyv422, null when unknown

Link copied to clipboard
val width: Int

the width of the images in pixels