前言
在YUV你究竟了解多少一文中,我们已经了解了YUV的基本概念,也有提到在处理YUV中YUV YUYV 、YU12(I420)、NV21 和 NV12 最为常用,我们也介绍了NV21/NV12这种格式,我们今天继续补全其他的YUV格式。
分类标准
YUV的三大类型:YUV420、YUV422、YUV444,而在其子集中又可以根据YUV的存储排列分布,又可以细分为三类:Planar,Semi-Planar 和 Packed。下面具体介绍各个类型的格式:
YU12(也称 I420)(属于 YUV 420 Plannar)
YUV 三个分量分别存储于 3 个不同的平面
(0 ~ 3) Y00 Y01 Y02 Y03
(4 ~ 7) Y10 Y11 Y12 Y13
(8 ~ 11) Y20 Y21 Y22 Y23
(12 ~ 15) Y30 Y31 Y32 Y33
(16 ~ 17) U00 U01
(18 ~ 19) U10 U11
(20 ~ 21) V00 V01
(22 ~ 23) V10 V11