aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2016-08-23 19:05:25 -0700
committerFrank Barchard <fbarchard@google.com>2016-08-23 19:05:25 -0700
commit17d31e6a4a3134d6ffbee9c7ed4a30faac7d0b29 (patch)
tree886305179a48f38760b1c7a8b7f4acd55c1c1b41 /docs
parentd58297a2dfb0d97b467d1ad5bcb8b6a13d5f210c (diff)
downloadlibyuv-17d31e6a4a3134d6ffbee9c7ed4a30faac7d0b29.tar.gz
NV12 allow NULL for Y
The conversion from NV12 and other Bi or Tri planar formats, differs only in the UV handling. The helper function supports passing a NULL for the dst_y channel indicating you only want to do the UV conversion. TBR=harryjin@google.com TEST=LibYUVConvertTest.NV12ToI420_NullY (601 ms) BUG=libyuv:626 Review URL: https://codereview.chromium.org/2276703002 .
Diffstat (limited to 'docs')
-rw-r--r--docs/formats.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/formats.md b/docs/formats.md
index a7cfed82..f3a35420 100644
--- a/docs/formats.md
+++ b/docs/formats.md
@@ -102,6 +102,15 @@ The following is extracted from video_common.h as a complete list of formats sup
// 1 Auxiliary compressed YUV format set aside for capturer.
FOURCC_H264 = FOURCC('H', '2', '6', '4'),
+# Planar YUV
+ The following formats contains a full size Y plane followed by 1 or 2
+ planes for UV: I420, I422, I444, I411, I400, NV21, NV12, I400
+ The size (subsampling) of the UV varies.
+ I420, NV12 and NV21 are half width, half height
+ I422, NV16 and NV61 are half width, full height
+ I444, NV24 and NV42 are full width, full height
+ I400 and J400 have no chroma channel.
+
# The ARGB FOURCC
There are 4 ARGB layouts - ARGB, BGRA, ABGR and RGBA. ARGB is most common by far, used for screen formats, and windows webcam drivers.