00001
00023 #ifndef __VETLIB_VETDEFINITIONS_H__
00024 #define __VETLIB_VETDEFINITIONS_H__
00025
00026
00027
00031 typedef unsigned char uchar;
00032
00033
00034
00035
00037
00038
00045 typedef int VETRESULT;
00046
00047
00052 #define VETRET_OK 0
00053 #define VETRET_PARAM_ERR 1
00054 #define VETRET_INTERNAL_ERR 2
00055 #define VETRET_ILLEGAL_USE 4
00056 #define VETRET_DEPRECATED_ERR 8
00057
00058 #define VETRET_OK_DEPRECATED 16
00059
00060 #define VETRET_NOT_IMPLEMENTED 666
00061
00062
00063
00064
00065
00066
00068
00069
00074 #define VETCLASS_TYPE_UNKNOWN 0
00075 #define VETCLASS_TYPE_OBJECT 10
00076 #define VETCLASS_TYPE_EXCEPTION 20
00077 #define VETCLASS_TYPE_FRAME 1000
00078 #define VETCLASS_TYPE_BUFFER 2000
00079 #define VETCLASS_TYPE_INPUT 4000
00080 #define VETCLASS_TYPE_OUTPUT 8000
00081 #define VETCLASS_TYPE_FILTER 1600
00082 #define VETCLASS_TYPE_CODEC 3200
00083 #define VETCLASS_TYPE_VISION 6400
00084
00085
00086
00087
00088
00089
00090 #ifdef __VETLIB_DEBUGMODE__
00091
00092 #include <stdio.h>
00093
00094 #define INFO(x) printf("_NFO: %s\n");
00095 #define DEBUG(x) printf("_DBG: %s = %p \n", #x, x);
00096 #define DEBUGMSG(msg, x) printf("_DBG: %s %s = %p \n", msg, #x, x);
00097
00098 #else
00099
00100 #define INFO(x) ;
00101 #define DEBUG(x) ;
00102 #define DEBUGMSG(msg, x) ;
00103
00104 #endif //__VETLIB_DEBUGMODE__
00105
00106
00107
00108
00109
00110
00111
00112 #endif //__VETLIB_VETDEFINITIONS_H__