diff --git a/dtool/src/parser-inc/Sources.pp b/dtool/src/parser-inc/Sources.pp index ff168d18f8..43d9d9e6f8 100644 --- a/dtool/src/parser-inc/Sources.pp +++ b/dtool/src/parser-inc/Sources.pp @@ -6,4 +6,5 @@ openssl/md5.h openssl/evp.h openssl/rand.h openssl/ssl.h openssl/x509.h openssl/err.h \ nurbs.hh stddef.h krb5.h MainHelix.h dllpath.h hxcom.h \ hxcomm.h hxcore.h hxengin.h hxerror.h hxfiles.h hxtbuf.h \ - hxtbuff.h hxwin.h Python.h Cg/cg.h Cg/cgGL.h + hxtbuff.h hxwin.h Python.h Cg/cg.h Cg/cgGL.h \ + cv.h cvtypes.h cxcore.h cxerror.h cxtypes.h highgui.h diff --git a/dtool/src/parser-inc/cv.h b/dtool/src/parser-inc/cv.h new file mode 100755 index 0000000000..7832552e49 --- /dev/null +++ b/dtool/src/parser-inc/cv.h @@ -0,0 +1,8 @@ +#ifndef _CV_H_ +#define _CV_H_ + +typedef struct CvCapture CvCapture; + +typedef struct CvMemStorage CvMemStorage; +typedef struct CvHaarClassifierCascade CvHaarClassifierCascade; +#endif \ No newline at end of file diff --git a/dtool/src/parser-inc/cvtypes.h b/dtool/src/parser-inc/cvtypes.h new file mode 100755 index 0000000000..864ee58067 --- /dev/null +++ b/dtool/src/parser-inc/cvtypes.h @@ -0,0 +1,13 @@ + + +#ifndef _CVTYPES_H_ +#define _CVTYPES_H_ + + +struct CvHaarClassifierCascade + + + +#endif /*_CVTYPES_H_*/ + +/* End of file. */ diff --git a/dtool/src/parser-inc/cxcore.h b/dtool/src/parser-inc/cxcore.h new file mode 100755 index 0000000000..40634769d7 --- /dev/null +++ b/dtool/src/parser-inc/cxcore.h @@ -0,0 +1,6 @@ +#ifndef _CXCORE_H_ +#define _CXCORE_H_ + +//Python stub + +#endif diff --git a/dtool/src/parser-inc/cxerror.h b/dtool/src/parser-inc/cxerror.h new file mode 100755 index 0000000000..0b8cfbb639 --- /dev/null +++ b/dtool/src/parser-inc/cxerror.h @@ -0,0 +1,7 @@ + +#ifndef _CXCORE_ERROR_H_ +#define _CXCORE_ERROR_H_ + +//python stub + +#endif \ No newline at end of file diff --git a/dtool/src/parser-inc/cxtypes.h b/dtool/src/parser-inc/cxtypes.h new file mode 100755 index 0000000000..2f59e9c038 --- /dev/null +++ b/dtool/src/parser-inc/cxtypes.h @@ -0,0 +1,78 @@ +#ifndef _CXCORE_TYPES_H_ +#define _CXCORE_TYPES_H_ + + + +#include +#include +#include + + +typedef struct IplImage +{ + int nSize; /* sizeof(IplImage) */ + int ID; /* version (=0)*/ + int nChannels; /* Most of OpenCV functions support 1,2,3 or 4 channels */ + int alphaChannel; /* ignored by OpenCV */ + int depth; /* pixel depth in bits: IPL_DEPTH_8U, IPL_DEPTH_8S, IPL_DEPTH_16S, + IPL_DEPTH_32S, IPL_DEPTH_32F and IPL_DEPTH_64F are supported */ + char colorModel[4]; /* ignored by OpenCV */ + char channelSeq[4]; /* ditto */ + int dataOrder; /* 0 - interleaved color channels, 1 - separate color channels. + cvCreateImage can only create interleaved images */ + int origin; /* 0 - top-left origin, + 1 - bottom-left origin (Windows bitmaps style) */ + int align; /* Alignment of image rows (4 or 8). + OpenCV ignores it and uses widthStep instead */ + int width; /* image width in pixels */ + int height; /* image height in pixels */ + struct _IplROI *roi;/* image ROI. if NULL, the whole image is selected */ + struct _IplImage *maskROI; /* must be NULL */ + void *imageId; /* ditto */ + struct _IplTileInfo *tileInfo; /* ditto */ + int imageSize; /* image data size in bytes + (==image->height*image->widthStep + in case of interleaved data)*/ + char *imageData; /* pointer to aligned image data */ + int widthStep; /* size of aligned image row in bytes */ + int BorderMode[4]; /* ignored by OpenCV */ + int BorderConst[4]; /* ditto */ + char *imageDataOrigin; /* pointer to very origin of image data + (not necessarily aligned) - + needed for correct deallocation */ +} IplImage; + +struct IplROI +{ + int coi; /* 0 - no COI (all channels are selected), 1 - 0th channel is selected ...*/ + int xOffset; + int yOffset; + int width; + int height; +}; + + + +typedef struct CvRect +{ + int x; + int y; + int width; + int height; +} +CvRect; + +struct CvMemBlock; +struct CvMemStorage; +struct CvSeq; +struct CvSize; +struct CvArr; + + + + + + +//Python stub + +#endif diff --git a/dtool/src/parser-inc/highgui.h b/dtool/src/parser-inc/highgui.h new file mode 100755 index 0000000000..3e36054923 --- /dev/null +++ b/dtool/src/parser-inc/highgui.h @@ -0,0 +1,5 @@ +#ifndef _HIGH_GUI_ +#define _HIGH_GUI_ + + +#endif \ No newline at end of file