YUV422 packed format - YUYV, YVYU, UYVY and VYUY

YUYV, YVYU, UYVY and VYUY

YUYV, YVYU, UYVY and VYUY are encoding format for YUV4:2:2[1] . They are different from their sequence of each compoment stored in the memory.

YUYV

YUYV is also known as YUV2. [2]

Each Y goes to one pixel and the U and V are belong to both pixels.

YVYU

YVYU[3]

Each Y goes to one pixel and the U and V are belong to both pixels.

UYVU

UYVU[4]

Each Y goes to one pixel and the U and V are belong to both pixels.

VYUY

VYUY[5]

Each Y goes to one pixel and the U and V are belong to both pixels.


  1. https://wiki.videolan.org/YUV/ ↩︎

  2. https://www.kernel.org/doc/html/v4.8/media/uapi/v4l/pixfmt-yuyv.html ↩︎

  3. https://www.kernel.org/doc/html/v4.8/media/uapi/v4l/pixfmt-yvyu.html ↩︎

  4. https://www.kernel.org/doc/html/v4.8/media/uapi/v4l/pixfmt-yvyu.html ↩︎

  5. https://www.kernel.org/doc/html/v4.8/media/uapi/v4l/pixfmt-vyuy.html ↩︎