===== Supported formats ===== This section aims to provide list (not necessarily complete) of supported formats in libyuri and their memory layout. Legend: * **Yuri format** - macro ('name') in libyuri for this format * **Bpp** - Bit Per Pixel - Pixel bit depth * **Bpc** - Bit Per Component - Bit depth of a single component * **Layout** - Components and their ordering. components between square braces mean components for one plane. ^ Yuri format ^ Bpp ^ Bpc ^ Description ^ Layout ^ ^ RGB formats ^^^^^ | YURI_FMT_RGB24 | 24 | 8 | Packed RGB format | [RGB] | | YURI_FMT_RGB32 | 32 | 8 | Packed RGB format with alpha | [RGBA] | | YURI_FMT_BGR | 24 | 8 | Packed BGR format | [BGR] | | YURI_FMT_BGRA | 32 | 8 | Packed BGR format with alpha | [BGRA] | | YURI_FMT_RGB24_PLANAR | 24 | 8 | Planar RGB format | [R][G][B] | | YURI_FMT_RGB32_PLANAR | 32 | 8 | Planar RGB format with alpha | [R][G][B][A] | ^ YUV formats ^^^^^ | YURI_FMT_YUV411 | 12 | 8 | Packed YUV 4:1:1 format | (4pixels) [UYYVYY] | | YURI_FMT_YUV422 | 16 | 8 | Packed YUV 4:2:2 format | (2pixels) [YUYV] | | YURI_FMT_YUV444 | 24 | 8 | Packed YUV 4:4:4 format | [YUV] | | YURI_FMT_YUV420_PLANAR | 12 | 8 | Planar YUV 4:1:1 format\\ planes U and V subsamples in X and Y axes | [Y][U][V] | | YURI_FMT_YUV422_PLANAR | 16 | 8 | Planar YUV 4:2:2 format\\ planes U and V subsamples in X axis | [Y][U][V] | | YURI_FMT_YUV444_PLANAR | 24 | 8 | Planar YUV 4:4:4 format | [Y][U][V] | ^ Single component formats ^^^^^ | YURI_FMT_SINGLE_COMPONENT | 8 | 8 | Generic single component format for 8bit | [D] | | YURI_FMT_DEPTH8 | 8 | 8 | Single component format for 8bit depth | [D] | | YURI_FMT_RED8 | 8 | 8 | Single component format for 8bit red values | [R] | | YURI_FMT_GREEN8 | 8 | 8 | Single component format for 8bit green values | [G] | | YURI_FMT_BLUE8 | 8 | 8 | Single component format for 8bit blue values | [B] | | YURI_FMT_Y8 | 8 | 8 | Single component format for 8bit luminance values | [Y] | | YURI_FMT_U8 | 8 | 8 | Single component format for 8bit chroma (U) values | [U] | | YURI_FMT_V8 | 8 | 8 | Single component format for 8bit chroma (V) values | [V] | | YURI_FMT_SINGLE_COMPONENT16 | 16 | 16 | Generic single component format for 6bit | [D] | | YURI_FMT_DEPTH16 | 16 | 16 | Single component format for 16bit depth | [D] | | YURI_FMT_RED16 | 16 | 16 | Single component format for 16bit red values | [R] | | YURI_FMT_GREEN16 | 16 | 16 | Single component format for 16bit green values | [G] | | YURI_FMT_BLUE16 | 16 | 16 | Single component format for 16bit blue values | [B] | | YURI_FMT_Y16 | 16 | 16 | Single component format for 16bit luminance values | [Y] | | YURI_FMT_U16 | 16 | 16 | Single component format for 16bit chroma (U) values | [U] | | YURI_FMT_V16 | 16 | 16 | Single component format for 16bit chroma (V) values | [V] |