diff options
author | Mathias Agopian <mathias@google.com> | 2010-09-10 14:33:16 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-09-10 14:33:16 -0700 |
commit | a2df7ab5fe89fda56606f8151659db47e160a5b3 (patch) | |
tree | f924cfd80aa1476d3b0333e6d59797e0793e9c20 /include/hardware/hardware.h | |
parent | 03cb00b7b37d39f6d599bb148db775a08eb8b04a (diff) | |
download | hardware_libhardware-a2df7ab5fe89fda56606f8151659db47e160a5b3.zip hardware_libhardware-a2df7ab5fe89fda56606f8151659db47e160a5b3.tar.gz hardware_libhardware-a2df7ab5fe89fda56606f8151659db47e160a5b3.tar.bz2 |
Fix (again) description of our interchange YV12 format
Change-Id: I8cd81654b51d50385cccec7b96f6e694fd372925
Diffstat (limited to 'include/hardware/hardware.h')
-rw-r--r-- | include/hardware/hardware.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/hardware/hardware.h b/include/hardware/hardware.h index f7c7f79..c41c81c 100644 --- a/include/hardware/hardware.h +++ b/include/hardware/hardware.h @@ -153,11 +153,14 @@ enum { * YV12 is 4:2:0 YCrCb planar format comprised of a WxH Y plane followed * by (W/2) x (H/2) Cr and Cb planes. * - * This format assumes an horizontal stride of 16 pixels for all planes - * and an implicit vertical stride of the image height's next multiple - * of two: - * y_size = stride * ALIGN(height, 2) - * c_size = ALIGN(stride/2, 16) * height + * This format assumes + * - an even width + * - an even height + * - a horizontal stride multiple of 16 pixels + * - a vertical stride equal to the height + * + * y_size = stride * height + * c_size = ALIGN(stride/2, 16) * height/2 * size = y_size + c_size * 2 * cr_offset = y_size * cb_offset = y_size + c_size |