Error codes. These errors should cover most of the common failure cases. However, vendors are free to add additional error messages of their own as long as they follow these rules: 1. Vendor error messages shall be in the range of 0x90000000 to 0x9000FFFF. 2. Vendor error messages shall be defined in a header file provided with the component. No error messages are allowed that are not defined.
Enumerator | Value | Description |
---|---|---|
CDF_ErrorNone | 0 | |
CDF_ErrorInsufficientResources | 0x80001000 |
There were insufficient resources to perform the requested operation |
CDF_ErrorUndefined | 0x80001001 |
There was an error, but the cause of the error could not be determined |
CDF_ErrorNotFound | 0x80001003 |
No feature with the specified name string was found |
CDF_ErrorInvalidFeature | 0x80001004 |
The feature specified did not have all entry points defined |
CDF_ErrorBadParameter | 0x80001005 |
One or more parameters were not valid |
CDF_ErrorNotImplemented | 0x80001006 |
The requested function is not implemented |
CDF_ErrorUnderflow | 0x80001007 |
The buffer was emptied before the next buffer was ready |
CDF_ErrorOverflow | 0x80001008 |
The buffer was not available when it was needed |
CDF_ErrorHardware | 0x80001009 |
The hardware failed to respond as expected |
CDF_ErrorInvalidState | 0x8000100A |
The component is in the state CDF_StateInvalid |
CDF_ErrorNoMore | 0x8000100E |
No more indicies can be enumerated |
CDF_ErrorVersionMismatch | 0x8000100F |
The component detected a version mismatch |
CDF_ErrorNotReady | 0x80001010 |
The component is not ready to return data at this time |
CDF_ErrorTimeout | 0x80001011 |
There was a timeout that occurred |
CDF_ErrorReadOnly | 0x80002000 |
The item is read only |
CDF_ErrorNoMemory | 0x80002001 |
Memory allocation failed |
CDF_ErrorUnsupported | 0x80002002 | |
CDF_ErrorAlreadyExists | 0x80002004 |
Item already exists |
CDF_ErrorUnsupportedIDLVersion | 0x80002005 |
Unsupported IDL version |
CDF_ErrorMemoryLeak | 0x80002006 |
Memory leaks detected |
CDF_ErrorPermissionDenied | 0x80002007 | |
CDF_ErrorMax | 0x7FFFFFFF |
typedef enum CDF_ERRORTYPE | CDF_ERRORTYPE |
Error codes. These errors should cover most of the common failure cases. However, vendors are free to add additional error messages of their own as long as they follow these rules: 1. Vendor error messages shall be in the range of 0x90000000 to 0x9000FFFF. 2. Vendor error messages shall be defined in a header file provided with the component. No error messages are allowed that are not defined.
Specifier for function argument. Memory allocation is done inside the function and ownership is tranferred to the client
Specifier for function argument. The pointer passed should be used only for reading, usually a constant data. The client should not release the memory
Specifier for function argument. Represents input and output. Part of structure will be as input and some will be written with output
typedef size_t | CDF_SIZET |
Color formats
Enumerator | Value | Description |
---|---|---|
CDF_COLOR_YUV420_8bit_Packed | 0 |
YUV420, 8-bit per pixel
YYYYUU YYYYVV YYYYUU YYYYVV |
CDF_COLOR_YUV420_8bit_Planar | 1 |
YUV420, 8-bit per pixel
YYYY YYYY UU VV |
CDF_COLOR_YUV420_16bit_Packed | 2 |
YUV420, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_YUV420_16bit_Planar | 3 |
YUV420, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_YUV422_8bit_Packed | 4 |
YUV422, 8-bit per pixel
YYYYUUVV YYYYUUVV |
CDF_COLOR_YUV422_8bit_Planar | 5 |
YUV422, 8-bit per pixel
YYYY YYYY UU UU VV VV |
CDF_COLOR_YUV422_8bit_UYVY_Interleaved | 6 |
YUV422, 8-bit per pixel
UYVYUYVY UYVYUYVY |
CDF_COLOR_YUV422_8bit_VYUY_Interleaved | 7 |
YUV422, 8-bit per pixel
VYUYVYUY VYUYVYUY |
CDF_COLOR_YUV422_8bit_YUYV_Interleaved | 8 |
YUV422, 8-bit per pixel
YUYVYUYV YUYVYUYV |
CDF_COLOR_YUV422_8bit_YVYU_Interleaved | 9 |
YUV422, 8-bit per pixel
YVYUYVYU YVYUYVYU |
CDF_COLOR_YUV422_16bit_Packed | 10 |
YUV422, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_YUV422_16bit_Planar | 11 |
YUV422, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_YUV422_16bit_UYVY_Interleaved | 12 |
YUV422, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_YUV422_16bit_VYUY_Interleaved | 13 |
YUV422, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_YUV422_16bit_YUYV_Interleaved | 14 |
YUV422, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_YUV422_16bit_YVYU_Interleaved | 15 |
YUV422, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_YUV444_8bit_Packed | 16 |
YUV444, 8-bit per pixel
YYYYUUUUVVVV YYYYUUUUVVVV |
CDF_COLOR_YUV444_8bit_Planar | 17 |
YUV444, 8-bit per pixel
YYYY YYYY UUUU UUUU VVVV VVVV |
CDF_COLOR_YUV444_8bit_Interleaved | 18 |
YUV444, 8-bit per pixel
YUVYUVYUVYUV YUVYUVYUVYUV |
CDF_COLOR_YUV444_16bit_Packed | 19 |
YUV444, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_YUV444_16bit_Planar | 20 |
YUV444, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_YUV444_16bit_Interleaved | 21 |
YUV444, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_RGB_8bit_Packed | 22 |
RGB, 8-bit per pixel
RRRRGGGGBBBB RRRRGGGGBBBB |
CDF_COLOR_RGB_8bit_Planar | 23 |
RGB, 8-bit per pixel
RRRR RRRR GGGG GGGG BBBB BBBB |
CDF_COLOR_RGB_8bit_Interleaved | 24 |
RGB, 8-bit per pixel
RGBRGBRGBRGB RGBRGBRGBRGB |
CDF_COLOR_RGB_16bit_Packed | 25 |
RGB, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_RGB_16bit_Planar | 26 |
RGB, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_RGB_16bit_Interleaved | 27 |
RGB, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_RGBA_8bit_Packed | 28 |
RGBA, 8-bit per pixel
RRRRGGGGBBBBAAAA RRRRGGGGBBBBAAAA |
CDF_COLOR_RGBA_8bit_Planar | 29 |
RGBA, 8-bit per pixel
RRRR RRRR GGGG GGGG BBBB BBBB AAAA AAAA |
CDF_COLOR_RGBA_8bit_Interleaved | 30 |
RGBA, 8-bit per pixel
RGBARGBARGBARGBA RGBARGBARGBARGBA |
CDF_COLOR_RGBA_16bit_Packed | 31 |
RGBA, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_RGBA_16bit_Planar | 32 |
RGBA, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_RGBA_16bit_Interleaved | 33 |
RGBA, 16-bit per pixel. Pixel order is similar to the 8-bit counter part |
CDF_COLOR_RAW_16bit_GRBG_Interleaved | 34 |
RAW CFA data, 16-bit per pixel
Gr R Gr R Gr R Gr R B Gb B Gb B Gb B Gb Gr R Gr R Gr R Gr R B Gb B Gb B Gb B Gb |
CDF_COLOR_RAW_16bit_RGGB_Interleaved | 35 |
RAW CFA data, 16-bit per pixel
R Gr R Gr R Gr R Gr Gb B Gb B Gb B Gb B R Gr R Gr R Gr R Gr Gb B Gb B Gb B Gb B |
CDF_COLOR_RAW_16bit_BGGR_Interleaved | 36 |
RAW CFA data, 16-bit per pixel
B Gb B Gb B Gb B Gb Gr R Gr R Gr R Gr R B Gb B Gb B Gb B Gb Gr R Gr R Gr R Gr R |
CDF_COLOR_RAW_16bit_GBRG_Interleaved | 37 |
RAW CFA data, 16-bit per pixel
Gb B Gb B Gb B Gb B R Gr R Gr R Gr R Gr Gb B Gb B Gb B Gb B R Gr R Gr R Gr R Gr |
CDF_COLOR_RAW_16bit_Planar | 38 |
RAW CFA data, 16-bit per pixel
R R R R R R R R Gr Gr Gr Gr Gr Gr Gr Gr B B B B B B B B Gb Gb Gb Gb Gb Gb Gb Gb |
CDF_COLOR_RAW_16bit_Packed | 39 |
RAW CFA data, 16-bit per pixel
R R R R Gr Gr Gr Gr B B B B Gb Gb Gb Gb R R R R Gr Gr Gr Gr B B B B Gb Gb Gb Gb |