X-Git-Url: http://git.maemo.org/git/?p=opencv;a=blobdiff_plain;f=otherlibs%2Fhighgui%2Fhighgui.h;fp=otherlibs%2Fhighgui%2Fhighgui.h;h=1e887d0fc8a0ebd801cfcd8adf50022e3eec05d9;hp=8ede1c5d086dd72887c05f0dcd08b8a8686c460b;hb=80cd7b93506cc1926882d5fd08a2c74ee9359e29;hpb=467a270adf12425827305759c0c4ea8f5b2b3854 diff --git a/otherlibs/highgui/highgui.h b/otherlibs/highgui/highgui.h index 8ede1c5..1e887d0 100644 --- a/otherlibs/highgui/highgui.h +++ b/otherlibs/highgui/highgui.h @@ -182,12 +182,12 @@ CVAPI(void) cvSetMouseCallback( const char* window_name, CvMouseCallback on_mous #define CV_LOAD_IMAGE_GRAYSCALE 0 /* ?, color */ #define CV_LOAD_IMAGE_COLOR 1 -/* any depth, ? */ +/* any depth, ? */ #define CV_LOAD_IMAGE_ANYDEPTH 2 /* ?, any color */ #define CV_LOAD_IMAGE_ANYCOLOR 4 -/* load image from file +/* load image from file iscolor can be a combination of above flags where CV_LOAD_IMAGE_UNCHANGED overrides the other flags using CV_LOAD_IMAGE_ANYCOLOR alone is equivalent to CV_LOAD_IMAGE_UNCHANGED @@ -200,7 +200,7 @@ CVAPI(CvMat*) cvLoadImageM( const char* filename, int iscolor CV_DEFAULT(CV_LOAD CVAPI(int) cvSaveImage( const char* filename, const CvArr* image ); #define CV_CVTIMG_FLIP 1 -#define CV_CVTIMG_SWAP_RB 2 +#define CV_CVTIMG_SWAP_RB 2 /* utility function: convert one image to another with optional vertical flip */ CVAPI(void) cvConvertImage( const CvArr* src, CvArr* dst, int flags CV_DEFAULT(0)); @@ -227,6 +227,7 @@ CVAPI(CvCapture*) cvCreateFileCapture( const char* filename ); #define CV_CAP_V4L2 200 #define CV_CAP_FIREWARE 300 // IEEE 1394 drivers +#define CV_CAP_FIREWIRE 300 #define CV_CAP_IEEE1394 300 #define CV_CAP_DC1394 300 #define CV_CAP_CMU1394 300 @@ -240,15 +241,17 @@ CVAPI(CvCapture*) cvCreateFileCapture( const char* filename ); #define CV_CAP_QT 500 // QuickTime +#define CV_CAP_UNICAP 600 // Unicap drivers + /* start capturing frames from camera: index = camera_index + domain_offset (CV_CAP_*) */ CVAPI(CvCapture*) cvCreateCameraCapture( int index ); -/* grab a frame, return 1 on success, 0 on fail. - this function is thought to be fast */ +/* grab a frame, return 1 on success, 0 on fail. + this function is thought to be fast */ CVAPI(int) cvGrabFrame( CvCapture* capture ); -/* get the frame grabbed with cvGrabFrame(..) - This function may apply some frame processing like +/* get the frame grabbed with cvGrabFrame(..) + This function may apply some frame processing like frame decompression, flipping etc. !!!DO NOT RELEASE or MODIFY the retrieved frame!!! */ CVAPI(IplImage*) cvRetrieveFrame( CvCapture* capture ); @@ -267,7 +270,7 @@ CVAPI(void) cvReleaseCapture( CvCapture** capture ); #define CV_CAP_PROP_FRAME_HEIGHT 4 #define CV_CAP_PROP_FPS 5 #define CV_CAP_PROP_FOURCC 6 -#define CV_CAP_PROP_FRAME_COUNT 7 +#define CV_CAP_PROP_FRAME_COUNT 7 #define CV_CAP_PROP_FORMAT 8 #define CV_CAP_PROP_MODE 9 #define CV_CAP_PROP_BRIGHTNESS 10 @@ -296,6 +299,9 @@ CVAPI(CvVideoWriter*) cvCreateVideoWriter( const char* filename, int fourcc, double fps, CvSize frame_size, int is_color CV_DEFAULT(1)); +//CVAPI(CvVideoWriter*) cvCreateImageSequenceWriter( const char* filename, +// int is_color CV_DEFAULT(1)); + /* write frame to video file */ CVAPI(int) cvWriteFrame( CvVideoWriter* writer, const IplImage* image );