Color format class type
Enumerator | Value | Description |
---|---|---|
CDF_COLOR_ClassYUV420 |
YUV 4:2:0 | |
CDF_COLOR_ClassYUV422 |
YUV 4:2:2 | |
CDF_COLOR_ClassYUV444 |
YUV 4:4:4 | |
CDF_COLOR_ClassRGB |
Red, green, blue | |
CDF_COLOR_ClassRGBA |
Red, green, blue, alpha | |
CDF_COLOR_ClassRAW |
Raw Bayer |
typedef enum CDF_COLOR_CLASSTYPE | CDF_COLOR_CLASSTYPE |
Color format class type
Color format division type
Enumerator | Value | Description |
---|---|---|
CDF_COLOR_DivisionPlanar |
Planar format | |
CDF_COLOR_DivisionPacked |
Packed format | |
CDF_COLOR_DivisionInterleaved |
Interleaved format |
typedef enum CDF_COLOR_DIVISIONTYPE | CDF_COLOR_DIVISIONTYPE |
Color format division type
typedef struct CDF_COLOR_FORMATINFOTYPE | CDF_COLOR_FORMATINFOTYPE |
Color format info type
Frame buffer control
Enumerator | Value | Description |
---|---|---|
CDF_FRAMEBUFFER_ControlEndOfFrame | 0x1 |
Last piece of frame. Next piece will be start of next frame. |
CDF_FRAMEBUFFER_ControlEndOfSequence | 0x2 |
Last frame in sequence. Features should go back to initial state after this frame. |
CDF_FRAMEBUFFER_ControlReserved | 0x4 |
Frame buffer is reserved by framework and cannot be released. May happen if with multiframe features which require more frames to produce output frame and need previous frames. |
CDF_FRAMEBUFFER_ControlReadOnly | 0x8 |
Frame buffer is read only. Can be used with input frames only. |
typedef enum CDF_FRAMEBUFFER_CONTROLTYPE | CDF_FRAMEBUFFER_CONTROLTYPE |
Frame buffer control
typedef struct CDF_FRAMEBUFFERTYPE * | CDF_FRAMEBUFFERHANDLE |
IMPORT_C CDF_ERRORTYPE | CDF_FrameBuffer_Create | ( | CDF_FRAMEBUFFERHANDLE * | phFrameBuffer | ) |
Creates frame buffer handle.
IMPORT_C void | CDF_FrameBuffer_Destroy | ( | CDF_FRAMEBUFFERHANDLE | hFrameBuffer | ) |
Destroys frame buffer handle.
IMPORT_C CDF_BOOL | CDF_FrameBuffer_IsControlSet | ( | const CDF_FRAMEBUFFERHANDLE | hFrameBuffer, |
const CDF_FRAMEBUFFER_CONTROLTYPE | eControl | |||
) |
Checks if control bit is set in frame buffer
IMPORT_C void | CDF_FrameBuffer_SetControl | ( | CDF_FRAMEBUFFERHANDLE | hFrameBuffer, |
const CDF_FRAMEBUFFER_CONTROLTYPE | eControl | |||
) |
Sets control bit in frame buffer.
IMPORT_C void | CDF_FrameBuffer_UnsetControl | ( | CDF_FRAMEBUFFERHANDLE | hFrameBuffer, |
const CDF_FRAMEBUFFER_CONTROLTYPE | eControl | |||
) |
Unsets control bit of frame buffer.
IMPORT_C CDF_ERRORTYPE | CDF_FrameBuffer_SetStride | ( | CDF_FRAMEBUFFERHANDLE | hFrameBuffer | ) |
Sets frame stride sizes based on frame resolution and color format.
IMPORT_C CDF_ERRORTYPE | CDF_FrameBuffer_AllocateBuffer | ( | CDF_FRAMEBUFFERHANDLE | hFrameBuffer | ) |
Allocates frame data buffers. Frame resolution and color format must be set.
IMPORT_C CDF_ERRORTYPE | CDF_FrameBuffer_FreeBuffer | ( | CDF_FRAMEBUFFERHANDLE | hFrameBuffer | ) |
Frees frame data buffers. Only data buffers are freed, handle remains.
IMPORT_C CDF_ERRORTYPE | CDF_GetImageSizePerComponent | ( | const CDF_SIZE | resolution, |
const CDF_COLOR_FORMATTYPE | eColorFormat, | |||
CDF_SIZET * | pnStrides, | |||
CDF_U32 * | pnHeights | |||
) |
Gets image stride lengths and heights based on resolution and color format.
IMPORT_C CDF_ERRORTYPE | CDF_GetColorFormatInfo | ( | const CDF_COLOR_FORMATTYPE | eColorFormat, |
CDF_COLOR_FORMATINFOTYPE * | pInfo | |||
) |
Gets color format information.