VideoDecoderConfig Class
The configuration of a VideoDecoder (https://w3c.github.io/webcodecs/#dictdef-videodecoderconfig).
public sealed class VideoDecoderConfigConstructors
| Name | Description |
|---|---|
| VideoDecoderConfig() |
VideoDecoderConfig()
- Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public VideoDecoderConfig()No documentation is available.
Properties
| Name | Description |
|---|---|
| Codec | Gets the codec string (e.g. vp8, vp09.00.10.08, av01.0.04M.08, avc1.42001E). |
| CodedHeight | Gets the height of the frames in pixels, or null. |
| CodedWidth | Gets the width of the frames in pixels, or null. |
| ColorSpace | Gets the color space of the frames (it overrides the one of the bitstream), or null. |
| Description | Gets the codec-specific bytes (e.g. the avcC box of AVC): a buffer source of the scripts, a Byte array or a memory of bytes, or null. |
| DisplayAspectHeight | Gets the vertical component of the display aspect ratio, or null. |
| DisplayAspectWidth | Gets the horizontal component of the display aspect ratio, or null. |
| Flip | Gets whether the decoded frames are flipped horizontally. |
| HardwareAcceleration | Gets the preference for a hardware implementation. |
| OptimizeForLatency | Gets whether the decoder should output the frames as soon as possible. |
| Rotation | Gets the rotation of the decoded frames in degrees. |
Codec
CodecConfigs.csGets the codec string (e.g. vp8, vp09.00.10.08, av01.0.04M.08, avc1.42001E).
public required string Codec { get; init; }CodedHeight
CodecConfigs.csGets the height of the frames in pixels, or null.
public uint? CodedHeight { get; init; }CodedWidth
CodecConfigs.csGets the width of the frames in pixels, or null.
public uint? CodedWidth { get; init; }ColorSpace
CodecConfigs.csGets the color space of the frames (it overrides the one of the bitstream), or null.
public VideoColorSpaceInit? ColorSpace { get; init; }Property value
See also
Description
CodecConfigs.csDisplayAspectHeight
CodecConfigs.csGets the vertical component of the display aspect ratio, or null.
public uint? DisplayAspectHeight { get; init; }Property value
See also
DisplayAspectWidth
CodecConfigs.csGets the horizontal component of the display aspect ratio, or null.
public uint? DisplayAspectWidth { get; init; }Property value
See also
Flip
CodecConfigs.csGets whether the decoded frames are flipped horizontally.
public bool Flip { get; init; }HardwareAcceleration
CodecConfigs.csGets the preference for a hardware implementation.
public HardwareAcceleration HardwareAcceleration { get; init; }OptimizeForLatency
CodecConfigs.csGets whether the decoder should output the frames as soon as possible.
public bool OptimizeForLatency { get; init; }Property value
See also
Rotation
CodecConfigs.csGets the rotation of the decoded frames in degrees.
public double Rotation { get; init; }