VideoFrameCopyToOptions Class
The options of VideoFrame.CopyTo and VideoFrame.AllocationSize (https://w3c.github.io/webcodecs/#dictdef-videoframecopytooptions).
public sealed class VideoFrameCopyToOptionsConstructors
| Name | Description |
|---|---|
| VideoFrameCopyToOptions() |
VideoFrameCopyToOptions()
public VideoFrameCopyToOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| ColorSpace | Gets the color space of the pixels in the destination when VideoFrameCopyToOptions.Format is given (sRGB by default). |
| Format | Gets the format of the pixels in the destination: RGBA, RGBX, BGRA or BGRX (the format of the frame by default). |
| Layout | Gets the offset and the stride of each plane in the destination (tightly packed by default). |
| Rect | Gets the rectangle of pixels to copy (the visible rectangle by default). |
ColorSpace
VideoFrame.csGets the color space of the pixels in the destination when VideoFrameCopyToOptions.Format is given (sRGB by default).
public PredefinedColorSpace? ColorSpace { get; init; }Format
VideoFrame.csGets 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; }Property value
See also
Layout
VideoFrame.csGets the offset and the stride of each plane in the destination (tightly packed by default).
public IReadOnlyList<PlaneLayout>? Layout { get; init; }Rect
VideoFrame.csGets the rectangle of pixels to copy (the visible rectangle by default).
public DomRectInit? Rect { get; init; }