VideoFrameInit Class
The options of a VideoFrame created from an image or another frame (https://w3c.github.io/webcodecs/#dictdef-videoframeinit).
public sealed class VideoFrameInitConstructors
| Name | Description |
|---|---|
| VideoFrameInit() |
VideoFrameInit()
public VideoFrameInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| Alpha | Gets whether the alpha channel of the source is kept. |
| DisplayHeight | Gets the display height (computed from the source and the visible rectangle by default). |
| DisplayWidth | Gets the display width (computed from the source and the visible rectangle by default). |
| Duration | Gets the presentation duration in microseconds (the one of the source frame by default). |
| Flip | Gets whether the frame is flipped horizontally, relative to the source. |
| Metadata | Gets the metadata of the frame (the one of the source by default). |
| Rotation | Gets the clockwise rotation in degrees added to the one of the source, rounded to a multiple of 90. |
| Timestamp | Gets the presentation timestamp in microseconds: required for an image, the one of the source frame or video by default. |
| VisibleRect | Gets the visible rectangle of the frame (the one of the source by default). |
Alpha
VideoFrame.csGets whether the alpha channel of the source is kept.
public AlphaOption Alpha { get; init; }DisplayHeight
VideoFrame.csGets the display height (computed from the source and the visible rectangle by default).
public uint? DisplayHeight { get; init; }DisplayWidth
VideoFrame.csGets the display width (computed from the source and the visible rectangle by default).
public uint? DisplayWidth { get; init; }Duration
VideoFrame.csGets the presentation duration in microseconds (the one of the source frame by default).
public ulong? Duration { get; init; }Flip
VideoFrame.csGets whether the frame is flipped horizontally, relative to the source.
public bool Flip { get; init; }Metadata
VideoFrame.csGets the metadata of the frame (the one of the source by default).
public VideoFrameMetadata? Metadata { get; init; }Property value
See also
Rotation
VideoFrame.csGets 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.csGets 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.csGets the visible rectangle of the frame (the one of the source by default).
public DomRectInit? VisibleRect { get; init; }