aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2021-07-19 12:04:32 -0700
committerFrank Barchard <fbarchard@chromium.org>2021-07-19 22:22:22 +0000
commit639dd4ea76403fb2e69df0636ce1df6a9587b004 (patch)
treeda882a0721f525e5a29996818497a0dfaa56c8f0 /docs
parent0572e0a0b11fe37d56baeeff8000a099d5b6d728 (diff)
downloadlibyuv-639dd4ea76403fb2e69df0636ce1df6a9587b004.tar.gz
Fix ConvertToI420 when using YUY2 or UYVY with odd crop_x.
- swap U and V when crop x is odd - document YUY2 and UYVY formats - apply clang-format Bug: libyuv:902 Change-Id: I045e44c907f4a9eb625d7c024b669bb308055f32 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/3039549 Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
Diffstat (limited to 'docs')
-rw-r--r--docs/formats.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/formats.md b/docs/formats.md
index d628f7f9..12ea9465 100644
--- a/docs/formats.md
+++ b/docs/formats.md
@@ -189,7 +189,6 @@ In memory R is the lowest and A is the highest.
Each channel has value ranges from 0 to 65535.
AR64 is similar to ARGB.
-
# NV12 and NV21
NV12 is a biplanar format with a full sized Y plane followed by a single
@@ -200,3 +199,10 @@ height chroma channel, and therefore is a 420 subsampling.
NV16 is 16 bits per pixel, with half width and full height. aka 422.
NV24 is 24 bits per pixel with full sized chroma channel. aka 444.
Most NV12 functions allow the destination Y pointer to be NULL.
+
+# YUY2 and UYVY
+
+YUY2 is a packed YUV format with half width, full height.
+
+YUY2 is YUYV in memory
+UYVY is UYVY in memory