VideoFrameInit Class

The options of a VideoFrame created from an image or another frame (https://w3c.github.io/webcodecs/#dictdef-videoframeinit).

public sealed class VideoFrameInit

Constructors

NameDescription
VideoFrameInit()

VideoFrameInit()

public VideoFrameInit()

No documentation is available.

Properties

NameDescription
AlphaGets whether the alpha channel of the source is kept.
DisplayHeightGets the display height (computed from the source and the visible rectangle by default).
DisplayWidthGets the display width (computed from the source and the visible rectangle by default).
DurationGets the presentation duration in microseconds (the one of the source frame by default).
FlipGets whether the frame is flipped horizontally, relative to the source.
MetadataGets the metadata of the frame (the one of the source by default).
RotationGets the clockwise rotation in degrees added to the one of the source, rounded to a multiple of 90.
TimestampGets the presentation timestamp in microseconds: required for an image, the one of the source frame or video by default.
VisibleRectGets the visible rectangle of the frame (the one of the source by default).

Gets whether the alpha channel of the source is kept.

public AlphaOption Alpha { get; init; }

DisplayHeight

VideoFrame.cs

Gets the display height (computed from the source and the visible rectangle by default).

public uint? DisplayHeight { get; init; }

DisplayWidth

VideoFrame.cs

Gets the display width (computed from the source and the visible rectangle by default).

public uint? DisplayWidth { get; init; }

Gets the presentation duration in microseconds (the one of the source frame by default).

public ulong? Duration { get; init; }

Gets whether the frame is flipped horizontally, relative to the source.

public bool Flip { get; init; }

Gets the metadata of the frame (the one of the source by default).

public VideoFrameMetadata? Metadata { get; init; }

Gets the clockwise rotation in degrees added to the one of the source, rounded to a multiple of 90.

public double Rotation { get; init; }

Timestamp

VideoFrame.cs

Gets the presentation timestamp in microseconds: required for an image, the one of the source frame or video by default.

public long? Timestamp { get; init; }

VisibleRect

VideoFrame.cs

Gets the visible rectangle of the frame (the one of the source by default).

public DomRectInit? VisibleRect { get; init; }