VideoPixelFormat Enum
The arrangement of the bytes of the planes of a VideoFrame (https://w3c.github.io/webcodecs/#enumdef-videopixelformat).
public enum VideoPixelFormatFields
| Name | Value | Description |
|---|---|---|
I420 | 0 | Planar 4:2:0 YUV, 8 bits per sample. |
I420P10 | 1 | Planar 4:2:0 YUV, 10 bits per sample. |
I420P12 | 2 | Planar 4:2:0 YUV, 12 bits per sample. |
I420A | 3 | Planar 4:2:0 YUV with an alpha plane, 8 bits per sample. |
I420AP10 | 4 | Planar 4:2:0 YUV with an alpha plane, 10 bits per sample. |
I420AP12 | 5 | Planar 4:2:0 YUV with an alpha plane, 12 bits per sample. |
I422 | 6 | Planar 4:2:2 YUV, 8 bits per sample. |
I422P10 | 7 | Planar 4:2:2 YUV, 10 bits per sample. |
I422P12 | 8 | Planar 4:2:2 YUV, 12 bits per sample. |
I422A | 9 | Planar 4:2:2 YUV with an alpha plane, 8 bits per sample. |
I422AP10 | 10 | Planar 4:2:2 YUV with an alpha plane, 10 bits per sample. |
I422AP12 | 11 | Planar 4:2:2 YUV with an alpha plane, 12 bits per sample. |
I444 | 12 | Planar 4:4:4 YUV, 8 bits per sample. |
I444P10 | 13 | Planar 4:4:4 YUV, 10 bits per sample. |
I444P12 | 14 | Planar 4:4:4 YUV, 12 bits per sample. |
I444A | 15 | Planar 4:4:4 YUV with an alpha plane, 8 bits per sample. |
I444AP10 | 16 | Planar 4:4:4 YUV with an alpha plane, 10 bits per sample. |
I444AP12 | 17 | Planar 4:4:4 YUV with an alpha plane, 12 bits per sample. |
NV12 | 18 | 4:2:0 YUV with a Y plane and an interleaved UV plane, 8 bits per sample. |
RGBA | 19 | One plane of interleaved red, green, blue and alpha samples, 8 bits per sample. |
RGBX | 20 | One plane of interleaved red, green, blue and padding samples (opaque), 8 bits per sample. |
BGRA | 21 | One plane of interleaved blue, green, red and alpha samples, 8 bits per sample. |
BGRX | 22 | One plane of interleaved blue, green, red and padding samples (opaque), 8 bits per sample. |