#define MMAL_ENCODING_BGR32 MMAL_FOURCC('B','G','R','4')
#define MMAL_ENCODING_BGR32_SLICE MMAL_FOURCC('b','g','r','4')
+/** YUV 4:2:0 planar, 16bit/component.
+*/
+#define MMAL_ENCODING_I420_16 MMAL_FOURCC('i','4','2','0')
+
//Bayer formats
//FourCC values copied from V4L2 where defined.
//10 bit per pixel packed Bayer formats.
* of YUV_UV video.
*/
#define MMAL_ENCODING_YUVUV128 MMAL_FOURCC('S','A','N','D')
+/** 16 bit SAND Video (YUVUV64_16) format.
+ * This format is *not* opaque - if requested you will receive full frames
+ * of YUV_UV_16 video.
+ */
+#define MMAL_ENCODING_YUVUV64_16 MMAL_FOURCC('S','A','1','6')
/** VideoCore opaque image format, image handles are returned to
* the host but not the actual image data.
{MMAL_ENCODING_BAYER_SRGGB16, OMX_COLOR_FormatRawBayer16bit},
{MMAL_ENCODING_BAYER_SBGGR10DPCM8,OMX_COLOR_FormatRawBayer8bitcompressed},
{MMAL_ENCODING_OPAQUE, OMX_COLOR_FormatBRCMOpaque},
+ {MMAL_ENCODING_I420_16, OMX_COLOR_FormatYUV420_16PackedPlanar},
+ {MMAL_ENCODING_YUVUV64_16, OMX_COLOR_FormatYUVUV64_16},
{MMAL_ENCODING_UNKNOWN, OMX_COLOR_FormatUnused}
};
{MMAL_ENCODING_RGB24, 3, 1, 1},
{MMAL_ENCODING_BGR16, 2, 1, 1},
{MMAL_ENCODING_BGR24, 3, 1, 1},
+ {MMAL_ENCODING_I420_16, 2, 1, 1},
{MMAL_ENCODING_I420_SLICE, 1, 1, 1},
{MMAL_ENCODING_I422_SLICE, 1, 1, 1},
{MMAL_ENCODING_BAYER_SRGGB16, 2, 1, 32},
/* {MMAL_ENCODING_YUVUV128, 1, 1}, That's a special case which must not be included */
+ /* {MMAL_ENCODING_YUVUV64_16, 1, 1}, That's a special case which must not be included */
{MMAL_ENCODING_UNKNOWN, 0, 0}
};
VC_IMAGE_TF_U8, /* T-format 8-bit U - same as TF_Y8 buf from U plane */
VC_IMAGE_TF_V8, /* T-format 8-bit U - same as TF_Y8 buf from V plane */
+ VC_IMAGE_YUV420_16, /* YUV4:2:0 planar, 16bit values */
+ VC_IMAGE_YUV_UV_16, /* YUV4:2:0 codec format, 16bit values */
+
VC_IMAGE_MAX, //bounds for error checking
VC_IMAGE_FORCE_ENUM_16BIT = 0xffff,
} VC_IMAGE_TYPE_T;
OMX_COLOR_FormatYVU420PackedPlanar,
OMX_COLOR_FormatYVU420PackedSemiPlanar,
OMX_COLOR_FormatRawBayer16bit,
+ OMX_COLOR_FormatYUV420_16PackedPlanar,
+ OMX_COLOR_FormatYUVUV64_16,
OMX_COLOR_FormatMax = 0x7FFFFFFF
} OMX_COLOR_FORMATTYPE;