VideoDecoderConfig Class

The configuration of a VideoDecoder (https://w3c.github.io/webcodecs/#dictdef-videodecoderconfig).

public sealed class VideoDecoderConfig

Constructors

NameDescription
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

NameDescription
CodecGets the codec string (e.g. vp8, vp09.00.10.08, av01.0.04M.08, avc1.42001E).
CodedHeightGets the height of the frames in pixels, or null.
CodedWidthGets the width of the frames in pixels, or null.
ColorSpaceGets the color space of the frames (it overrides the one of the bitstream), or null.
DescriptionGets 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.
DisplayAspectHeightGets the vertical component of the display aspect ratio, or null.
DisplayAspectWidthGets the horizontal component of the display aspect ratio, or null.
FlipGets whether the decoded frames are flipped horizontally.
HardwareAccelerationGets the preference for a hardware implementation.
OptimizeForLatencyGets whether the decoder should output the frames as soon as possible.
RotationGets the rotation of the decoded frames in degrees.

Gets the codec string (e.g. vp8, vp09.00.10.08, av01.0.04M.08, avc1.42001E).

public required string Codec { get; init; }

CodedHeight

CodecConfigs.cs

Gets the height of the frames in pixels, or null.

public uint? CodedHeight { get; init; }

CodedWidth

CodecConfigs.cs

Gets the width of the frames in pixels, or null.

public uint? CodedWidth { get; init; }

ColorSpace

CodecConfigs.cs

Gets the color space of the frames (it overrides the one of the bitstream), or null.

public VideoColorSpaceInit? ColorSpace { get; init; }

Description

CodecConfigs.cs

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.

public object? Description { get; init; }

DisplayAspectHeight

CodecConfigs.cs

Gets the vertical component of the display aspect ratio, or null.

public uint? DisplayAspectHeight { get; init; }

DisplayAspectWidth

CodecConfigs.cs

Gets the horizontal component of the display aspect ratio, or null.

public uint? DisplayAspectWidth { get; init; }

Gets whether the decoded frames are flipped horizontally.

public bool Flip { get; init; }

HardwareAcceleration

CodecConfigs.cs

Gets the preference for a hardware implementation.

public HardwareAcceleration HardwareAcceleration { get; init; }

OptimizeForLatency

CodecConfigs.cs

Gets whether the decoder should output the frames as soon as possible.

public bool OptimizeForLatency { get; init; }

Gets the rotation of the decoded frames in degrees.

public double Rotation { get; init; }