AVBlocks for C++  3.0
Audio and Video Software Development Kit
Loading...
Searching...
No Matches
primo::codecs::ColorFormat Namespace Reference

Defines constants for various color formats. More...

Enumerations

enum  Enum {
  Unknown = 0 ,
  YV12 = 1 ,
  NV12 = 2 ,
  YUY2 = 3 ,
  UYVY = 4 ,
  YUV411 = 5 ,
  YUV420 = 6 ,
  YUV422 = 7 ,
  YUV444 = 8 ,
  Y411 = 9 ,
  Y41P = 10 ,
  BGR32 = 11 ,
  BGR24 = 12 ,
  BGR565 = 13 ,
  BGR555 = 14 ,
  BGR444 = 15 ,
  GRAY = 16 ,
  YUV420A = 17 ,
  YUV422A = 18 ,
  YUV444A = 19 ,
  YVU9 = 20 ,
  BGRA32 = 21
}
 ColorFormat::Enum. More...
 

Detailed Description

Defines constants for various color formats.

A color format is combination of color space, color depth, chroma subsampling, component layout and packing.

Enumeration Type Documentation

◆ Enum

enum Enum

ColorFormat::Enum.

Enumerator
Unknown 

The color format is not specified or unknown.

YV12 

Planar Y, V, U (4:2:0) (note V,U order!)

NV12 

Planar Y, merged U->V (4:2:0)

YUY2 

Composite Y->U->Y->V (4:2:2)

UYVY 

Composite U->Y->V->Y (4:2:2)

YUV411 

Planar Y, U, V (4:1:1)

YUV420 

Planar Y, U, V (4:2:0)

YUV422 

Planar Y, U, V (4:2:2)

YUV444 

Planar Y, U, V (4:4:4)

Y411 

Composite Y, U, V (4:1:1)

Y41P 

Composite Y, U, V (4:1:1)

BGR32 

Composite B->G->R.

BGR24 

Composite B->G->R.

BGR565 

Composite B->G->R, 5 bit per B & R, 6 bit per G.

BGR555 

Composite B->G->R->A, 5 bit per component, 1 bit per A.

BGR444 

Composite B->G->R->A, 4 bit per component.

GRAY 

Luminance component only.

YUV420A 

Planar Y, U, V, Alpha.

YUV422A 

Planar Y, U, V, Alpha.

YUV444A 

Planar Y, U, V, Alpha.

YVU9 

Planar Y, V, U The vertical subsampling interval is 4.

The horizontal subsampling interval is also 4 This means that a single V and a single U sample are taken for each square block of 16 image pixels. Effectively this averages 9 bits per pixel (16 pixels => 16Y + 1V + 1U => 144bits => 9bits/pixel)

BGRA32 

Composite B->G->R->A.