What’s YUV ?
A kind of color format coding which can divide color into two parts: chroma and luma.
Calculate YUV
Change between YUV and RGB.
YUV Representation
From JM or HEVC, we can find this:
YUV422 Planar
YUV420 Planar
(1)
Increasing Memory Addresses
————————————————————————————->
| Y0 | Y1 | Y2 | Y3| ……
| U0 | U1 | ……
| V0 | V1 | ……
(2)
Increasing Memory Addresses
————————————————————————————->
| Y0 | Y1 | Y2 | Y3| ……
| V0 | V1 | ……
| U0 | U1 | ……
YUV422 Semi-Planar
YUV420 Semi-Planar
YUV422 Interleaved
YUY2:
| Y0 | V0 | Y1 | V0 | | Y2 | U1 | Y3 | V1 | | Y4 | U2 | Y5 | V2 | ……
UYVY:
| U0 | Y0 | V0 | Y1 | | U1 | Y2 | V1 | Y3 | | U2 | Y4 | V2 | Y5 | ……
One pixel is 16 bits.
http://www.cnblogs.com/watson/p/3788257.html
http://blog.youkuaiyun.com/jerrytong/article/details/5658818