YUV: Difference between revisions

From VideoLAN Wiki
Jump to navigation Jump to search
Line 2: Line 2:
== I420 ==
== I420 ==


In I420, you have luma "luminance" planes '''''Y''''' and chroma samples '''''U''''' '''''V'''''.
In I420, you have luma "luminance" planes '''''Y''''' and chroma planes '''''U''''', '''''V'''''.


In I420, chroma planes (blue and red) are subsampled in both the horizontal and vertical dimensions by a factor of 2.
In I420, chroma planes (blue and red) are subsampled in both the horizontal and vertical dimensions by a factor of 2.

Revision as of 20:24, 18 May 2011

Planar

I420

In I420, you have luma "luminance" planes Y and chroma planes U, V.

In I420, chroma planes (blue and red) are subsampled in both the horizontal and vertical dimensions by a factor of 2.

For a 2x2 group of pixels, you have 4 Y samples and 1 U, 1 V sample.

YV12

YV12 is exactly like I420, but with U and V reversed.

Packed