Difference between revisions of "YUV"
Jump to navigation
Jump to search
(→I420) |
(→NV12) |
||
Line 13: | Line 13: | ||
YV12 is exactly like I420, but with '''U''' and '''V''' order reversed. | YV12 is exactly like I420, but with '''U''' and '''V''' order reversed. | ||
− | == NV12 == | + | == NV12/NV21 == |
+ | === NV12 === | ||
In NV12, you have one luma "luminance" planes '''''Y''''' and one plane with '''''U''''' and '''''V''''' data interleaved. NV12 is considered as ''semiplanar''. | In NV12, you have one luma "luminance" planes '''''Y''''' and one plane with '''''U''''' and '''''V''''' data interleaved. NV12 is considered as ''semiplanar''. | ||
Line 23: | Line 24: | ||
=== NV21 === | === NV21 === | ||
− | NV21 is like NV12, but with '''U''' and '''V''' order reversed | + | NV21 is like NV12, but with '''U''' and '''V''' order reversed: it starts with '''V''' |
= Packed = | = Packed = |
Revision as of 21:01, 18 May 2011
Contents
Planar
YUV 4:2:0 (I420/YV12)
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 and 1 V sample.
YV12
YV12 is exactly like I420, but with U and V order reversed.
NV12/NV21
NV12
In NV12, you have one luma "luminance" planes Y and one plane with U and V data interleaved. NV12 is considered as semiplanar.
In NV12, 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 and 1 V sample.
NV21
NV21 is like NV12, but with U and V order reversed: it starts with V
Packed
This page is part of official VLC media player Documentation (User Guide • Streaming HowTo • Hacker Guide • Modules)
Please read the Documentation Editing Guidelines before you edit the documentation
Please read the Documentation Editing Guidelines before you edit the documentation
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.