VideoFrameBufferInit Class
The description of the pixels of a VideoFrame created from a buffer (https://w3c.github.io/webcodecs/#dictdef-videoframebufferinit).
public sealed class VideoFrameBufferInitConstructors
| Name | Description |
|---|---|
| VideoFrameBufferInit() |
VideoFrameBufferInit()
- 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 VideoFrameBufferInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| CodedHeight | Gets the height of the pixels in the buffer. |
| CodedWidth | Gets the width of the pixels in the buffer. |
| ColorSpace | Gets the color space of the pixels (BT.709 for the YUV formats and sRGB for the RGB formats by default). |
| DisplayHeight | Gets the display height (the visible height by default, swapped with the width by a rotation of 90 or 270 degrees). |
| DisplayWidth | Gets the display width (the visible width by default, swapped with the height by a rotation of 90 or 270 degrees). |
| Duration | Gets the presentation duration in microseconds, or null. |
| Flip | Gets whether the frame is flipped horizontally after the rotation. |
| Format | Gets the format of the pixels. |
| Layout | Gets the offset and the stride of each plane in the buffer (tightly packed by default). |
| Metadata | Gets the metadata of the frame. |
| Rotation | Gets the clockwise rotation in degrees, rounded to a multiple of 90. |
| Timestamp | Gets the presentation timestamp in microseconds. |
| Transfer | Gets the ArrayBuffer objects detached by the construction. |
| VisibleRect | Gets the visible rectangle (the coded rectangle by default). |
CodedHeight
VideoFrame.csGets the height of the pixels in the buffer.
public required uint CodedHeight { get; init; }CodedWidth
VideoFrame.csGets the width of the pixels in the buffer.
public required uint CodedWidth { get; init; }ColorSpace
VideoFrame.csGets the color space of the pixels (BT.709 for the YUV formats and sRGB for the RGB formats by default).
public VideoColorSpaceInit? ColorSpace { get; init; }Property value
See also
DisplayHeight
VideoFrame.csGets the display height (the visible height by default, swapped with the width by a rotation of 90 or 270 degrees).
public uint? DisplayHeight { get; init; }DisplayWidth
VideoFrame.csGets the display width (the visible width by default, swapped with the height by a rotation of 90 or 270 degrees).
public uint? DisplayWidth { get; init; }Duration
VideoFrame.csGets the presentation duration in microseconds, or null.
public ulong? Duration { get; init; }Flip
VideoFrame.csGets whether the frame is flipped horizontally after the rotation.
public bool Flip { get; init; }Format
VideoFrame.csGets the format of the pixels.
public required VideoPixelFormat Format { get; init; }Property value
See also
Layout
VideoFrame.csGets the offset and the stride of each plane in the buffer (tightly packed by default).
public IReadOnlyList<PlaneLayout>? Layout { get; init; }Metadata
VideoFrame.csGets the metadata of the frame.
public VideoFrameMetadata? Metadata { get; init; }Property value
See also
Rotation
VideoFrame.csGets the clockwise rotation in degrees, rounded to a multiple of 90.
public double Rotation { get; init; }Timestamp
VideoFrame.csGets the presentation timestamp in microseconds.
public required long Timestamp { get; init; }Transfer
VideoFrame.csGets the ArrayBuffer objects detached by the construction.
public IReadOnlyList<object>? Transfer { get; init; }Property value
See also
VisibleRect
VideoFrame.csGets the visible rectangle (the coded rectangle by default).
public DomRectInit? VisibleRect { get; init; }