summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Socha <maciej.socha@stericsson.com>2011-03-23 13:57:55 +0100
committerRobert FEKETE <robert.fekete@stericsson.com>2011-03-28 10:40:41 +0200
commit46a95813e6bc0bd747d7de7270813f55a8af07f5 (patch)
tree800730c5a7422829fa44308c340900d39ecd95f0
parent3159afeaa1f26763b22c58ecbd86d29a045ea738 (diff)
Add support for YVU420/2_PACKED_(SEMI)_PLANAR.
The new formats differ from their YUV counterparts only by the order of chroma samples. In YVU formats red chroma (V-component) comes before blue, whereas in YUV formats it is the other way around. Depends-On: Ib7b2eb8bf36623a88fca87e34aacdff77c0df030 ST-Ericsson ID: ER 325111 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ieda3d76b5e57640c60192925c34c5354307295cf Signed-off-by: Maciej Socha <maciej.socha@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18955 Reviewed-by: Robert LIND <robert.lind@stericsson.com> Reviewed-by: Magnus SMITH <magnus.xm.smith@stericsson.com> Reviewed-by: Robert FEKETE <robert.fekete@stericsson.com> Reviewed-by: QATOOLS
-rwxr-xr-xinclude/blt_api.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/include/blt_api.h b/include/blt_api.h
index 0633e04..fc77684 100755
--- a/include/blt_api.h
+++ b/include/blt_api.h
@@ -206,6 +206,45 @@ enum blt_fmt {
* The buffer shall contain a plane of Y, U, and V data in this order.
*/
BLT_FMT_YUV444_PACKED_PLANAR = 0x7F000008,
+ /**
+ * @brief YVU planar format, organized with a first plane containing Y
+ * pixels, and a second plane containing V and U pixels interleaved
+ * with the first V value first. V and U pixels are subsampled by
+ * a factor of two both horizontally and vertically. The buffer
+ * shall contain two planes, one with Y, and one with V and U data.
+ * (Same as B2R2 420 Raster 2 buffer - 420 R2B except that chroma
+ * order is swapped.)
+ */
+ BLT_FMT_YVU420_PACKED_SEMI_PLANAR = 0x7F000009,
+ /**
+ * @brief YVU planar format, organized with a first plane containing Y
+ * pixels, and a second plane containing V and U pixels interleaved
+ * with the first V value first. V and U pixels are subsampled by
+ * a factor of two both horizontally. The buffer shall contain
+ * two planes, one with Y, and one with V and U data.
+ * (Same as B2R2 422 Raster 2 buffer - 422 R2B except that chroma
+ * order is swapped.)
+ */
+ BLT_FMT_YVU422_PACKED_SEMI_PLANAR = 0x7F00000A,
+ /**
+ * @brief YVU planar format, organized with three separate planes,
+ * one for each color component, namely Y, V, and U.
+ * V and U pixels are subsampled by a factor of two
+ * both horizontally and vertically.
+ * The buffer shall contain a plane of Y, V, and U data in this
+ * order. (Same as BLT_FMT_YUV420_PACKED_PLANAR, except that chroma
+ * order is swapped.)
+ */
+ BLT_FMT_YVU420_PACKED_PLANAR = 0x7F00000B,
+ /**
+ * @brief YVU planar format, organized with three separate planes,
+ * one for each color component, namely Y, V, and U.
+ * V and U pixels are subsampled by a factor of two horizontally.
+ * The buffer shall contain a plane of Y, V, and U data in this
+ * order. (Same as BLT_FMT_YUV422_PACKED_PLANAR except that chroma
+ * order is swapped.)
+ */
+ BLT_FMT_YVU422_PACKED_PLANAR = 0x7F00000C,
};