From a971e71cca70d743d6a9268e6fed82179bae1ed6 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Wed, 6 Jun 2012 09:56:14 +0000 Subject: Fix #1528: - fixed video format YV12 (was YUV planar 16bpp, should be YVU planar 12bpp) - added I422 (YUV planar 16bpp, was defined as YV12) - updated colorbar video device to support YV12. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4158 74dad513-b988-da41-8d7b-12977e46ad98 --- pjmedia/include/pjmedia/format.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'pjmedia/include') diff --git a/pjmedia/include/pjmedia/format.h b/pjmedia/include/pjmedia/format.h index c3206d86..9230551f 100644 --- a/pjmedia/include/pjmedia/format.h +++ b/pjmedia/include/pjmedia/format.h @@ -169,10 +169,21 @@ typedef enum pjmedia_format_id PJMEDIA_FORMAT_IYUV = PJMEDIA_FORMAT_I420, /** - * This is planar 4:2:2/16bpp YUV format. + * This is planar 4:2:0/12bpp YUV format, similar to I420 or IYUV but + * the U (Cb) and V (Cr) planes order is switched, i.e: the second plane + * contains the V (Cb) samples and the third plane contains the V (Cr) + * samples. */ PJMEDIA_FORMAT_YV12 = PJMEDIA_FORMAT_PACK('Y', 'V', '1', '2'), + /** + * This is planar 4:2:2/16bpp YUV format, the data can be treated as + * three planes of color components, where the first plane contains + * only the Y samples, the second plane contains only the U (Cb) samples, + * and the third plane contains only the V (Cr) sample. + */ + PJMEDIA_FORMAT_I422 = PJMEDIA_FORMAT_PACK('I', '4', '2', '2'), + /** * The JPEG version of planar 4:2:0/12bpp YUV format. */ -- cgit v1.2.3