VideoFrameCopyToOptions Class

The options of VideoFrame.CopyTo and VideoFrame.AllocationSize (https://w3c.github.io/webcodecs/#dictdef-videoframecopytooptions).

public sealed class VideoFrameCopyToOptions

Constructors

NameDescription
VideoFrameCopyToOptions()

VideoFrameCopyToOptions()

public VideoFrameCopyToOptions()

No documentation is available.

Properties

NameDescription
ColorSpaceGets the color space of the pixels in the destination when VideoFrameCopyToOptions.Format is given (sRGB by default).
FormatGets the format of the pixels in the destination: RGBA, RGBX, BGRA or BGRX (the format of the frame by default).
LayoutGets the offset and the stride of each plane in the destination (tightly packed by default).
RectGets the rectangle of pixels to copy (the visible rectangle by default).

ColorSpace

VideoFrame.cs

Gets the color space of the pixels in the destination when VideoFrameCopyToOptions.Format is given (sRGB by default).

public PredefinedColorSpace? ColorSpace { get; init; }

Gets the format of the pixels in the destination: RGBA, RGBX, BGRA or BGRX (the format of the frame by default).

public VideoPixelFormat? Format { get; init; }

Gets the offset and the stride of each plane in the destination (tightly packed by default).

public IReadOnlyList<PlaneLayout>? Layout { get; init; }

Gets the rectangle of pixels to copy (the visible rectangle by default).

public DomRectInit? Rect { get; init; }