From 46a95813e6bc0bd747d7de7270813f55a8af07f5 Mon Sep 17 00:00:00 2001 From: Maciej Socha Date: Wed, 23 Mar 2011 13:57:55 +0100 Subject: 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 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18955 Reviewed-by: Robert LIND Reviewed-by: Magnus SMITH Reviewed-by: Robert FEKETE Reviewed-by: QATOOLS --- include/blt_api.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) 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, }; -- cgit v1.2.3