VideoParams class

This file is a part of media_kit (https://github.com/media-kit/media-kit).

Video parameters, as output by the decoder (with overrides like aspect etc. applied). This has a number of sub-properties.

Constructors

VideoParams({String? pixelformat, String? hwPixelformat, int? w, int? h, int? dw, int? dh, double? aspect, double? par, String? colormatrix, String? colorlevels, String? primaries, String? gamma, double? sigPeak, String? light, String? chromaLocation, int? rotate, String? stereoIn, int? averageBpp, String? alpha})
VideoParams
const

Properties

alpha String?
Alpha type. If the format has no alpha channel, this will be unavailable (but in future releases, it could change to no). If alpha is present, this is set to straight or premul.
final
aspect double?
Display aspect ratio as float.
final
averageBpp int?
Average bits-per-pixel as integer. Subsampled planar formats use a different resolution, which is the reason this value can sometimes be odd or confusing. Can be unavailable with some formats.
final
chromaLocation String?
Chroma location as string.
final
colorlevels String?
The colorlevels in use as string.
final
colormatrix String?
The colormatrix in use as string.
final
dh int?
Video size as integers, scaled for correct aspect ratio.
final
dw int?
Video size as integers, scaled for correct aspect ratio.
final
gamma String?
The gamma function in use as string.
final
h int?
Video size as integers, with no aspect correction applied.
final
hashCode int
The hash code for this object.
no setteroverride
hwPixelformat String?
The underlying pixel format as string. This is relevant for some cases of hardware decoding and unavailable otherwise.
final
light String?
The light type in use as string.
final
par double?
Pixel aspect ratio as float.
final
pixelformat String?
The pixel format as string. This uses the same names as used in other places of mpv.
final
primaries String?
The colorspace in use as string.
final
rotate int?
Intended display rotation in degrees (clockwise).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sigPeak double?
The video file's tagged signal peak as float.
final
stereoIn String?
Source file stereo 3D mode.
final
w int?
Video size as integers, with no aspect correction applied.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override