added the stubs in for openCV

This commit is contained in:
Zachary Pavlov 2005-08-20 00:27:46 +00:00
parent be10d9e687
commit fc013d9824
7 changed files with 119 additions and 1 deletions

View File

@ -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

8
dtool/src/parser-inc/cv.h Executable file
View File

@ -0,0 +1,8 @@
#ifndef _CV_H_
#define _CV_H_
typedef struct CvCapture CvCapture;
typedef struct CvMemStorage CvMemStorage;
typedef struct CvHaarClassifierCascade CvHaarClassifierCascade;
#endif

13
dtool/src/parser-inc/cvtypes.h Executable file
View File

@ -0,0 +1,13 @@
#ifndef _CVTYPES_H_
#define _CVTYPES_H_
struct CvHaarClassifierCascade
#endif /*_CVTYPES_H_*/
/* End of file. */

6
dtool/src/parser-inc/cxcore.h Executable file
View File

@ -0,0 +1,6 @@
#ifndef _CXCORE_H_
#define _CXCORE_H_
//Python stub
#endif

7
dtool/src/parser-inc/cxerror.h Executable file
View File

@ -0,0 +1,7 @@
#ifndef _CXCORE_ERROR_H_
#define _CXCORE_ERROR_H_
//python stub
#endif

78
dtool/src/parser-inc/cxtypes.h Executable file
View File

@ -0,0 +1,78 @@
#ifndef _CXCORE_TYPES_H_
#define _CXCORE_TYPES_H_
#include <assert.h>
#include <stdlib.h>
#include <string.h>
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

5
dtool/src/parser-inc/highgui.h Executable file
View File

@ -0,0 +1,5 @@
#ifndef _HIGH_GUI_
#define _HIGH_GUI_
#endif