summaryrefslogtreecommitdiff
path: root/pjmedia/include
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2012-06-06 09:56:14 +0000
committerNanang Izzuddin <nanang@teluu.com>2012-06-06 09:56:14 +0000
commita971e71cca70d743d6a9268e6fed82179bae1ed6 (patch)
tree34eac29a7c0854bc617c42b993565e9ba4a1e995 /pjmedia/include
parent3377b974f347ef86dfcba3dd299f3751c9a88c69 (diff)
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
Diffstat (limited to 'pjmedia/include')
-rw-r--r--pjmedia/include/pjmedia/format.h13
1 files changed, 12 insertions, 1 deletions
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,11 +169,22 @@ 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.
*/
PJMEDIA_FORMAT_I420JPEG = PJMEDIA_FORMAT_PACK('J', '4', '2', '0'),