ColorSpace
This module provides support for the different color spaces available to the Buffer_Objects.
More...
|
Enumerations |
enum | ColorSpace_Type {
ColorSpace_NOTSET = -1,
ColorSpace_YUV420PSEMI = 0,
ColorSpace_YUV422PSEMI,
ColorSpace_UYVY,
ColorSpace_RGB888,
ColorSpace_RGB565,
ColorSpace_2BIT,
ColorSpace_YUV420P,
ColorSpace_YUV422P,
ColorSpace_YUV444P,
ColorSpace_GRAY,
ColorSpace_COUNT
} |
| Color formats. More...
|
Functions |
Int | ColorSpace_getBpp (ColorSpace_Type colorSpace) |
| Calculates the bits per pixel for a given color space format.
|
Detailed Description
This module provides support for the different color spaces available to the Buffer_Objects.
Enumeration Type Documentation
Color formats.
- Enumerator:
-
ColorSpace_NOTSET |
|
ColorSpace_YUV420PSEMI |
YUV 420 semi planar corresponding to V4L2_PIX_FMT_NV12 in v4l2. This format consists of two planes: one with the Y component and one with the CbCr components interleaved (hence semi). See the LSP documentation for a thorough description of this format. |
ColorSpace_YUV422PSEMI |
YUV 422 semi planar corresponding to V4L2_PIX_FMT_YUV422UVP. This format was added to v4l2 by TI because the dm6467 VDCE and VPSS peripherals use this format. The format consists of two planes: one with the Y component and one with the CbCr components interleaved (hence semi) See the LSP VDCE documentation for a thorough description of this format. |
ColorSpace_UYVY |
YUV 422 interleaved corresponding to V4L2_PIX_FMT_UYVY in v4l2. |
ColorSpace_RGB888 |
RGB 888 packed corresponding to V4L2_PIX_FMT_RGB24 in v4l2. |
ColorSpace_RGB565 |
RGB 565 packed corresponding to V4L2_PIX_FMT_RGB565 in v4l2. |
ColorSpace_2BIT |
2 bits per pixel. This is the format used by the VDCE for the bitmap while blending and is documented in the VDCE peripheral guide. |
ColorSpace_YUV420P |
YUV 420 planar. The format consists of three planes: one with the Y component, one Cb, and one Cr component. |
ColorSpace_YUV422P |
YUV 422 planar. The format consists of three planes: one with the Y component, one Cb, and one Cr component. |
ColorSpace_YUV444P |
YUV 444 planar. The format consists of three planes: one with the Y component, one Cb, and one Cr component. |
ColorSpace_GRAY |
Gray Scale. The format consist of single Luma plane ignoring the color plane components. |
ColorSpace_COUNT |
|
Function Documentation
Calculates the bits per pixel for a given color space format.
- Parameters:
-
- Return values:
-
| Bits per pixel | for the given color space format. |
| Negative value | for failure, see Dmai.h. |