Main Page | Directories | File List | Globals | Related Pages

video.h

00001 /*
00002  *
00003  * Author: Hirokazu Kato, Atsishi Nakazawa.
00004  *         Modified by Thomas Pintaric.
00005  *          
00006  *
00007  *         kato@sys.im.hiroshima-cu.ac.jp
00008  *         nakazawa@inolab.sys.es.osaka-u.ac.jp
00009  *         pintaric@ims.tuwien.ac.at
00010  *
00011  * Revision: 4.3b
00012  * Date: 2003/02/02
00013  *
00014  */
00015 /*
00016  *      Copyright (c) 2004-2004 Philip Lamb (PRL) phil@eden.net.nz. All rights reserved.
00017  *      
00018  *      Rev             Date            Who             Changes
00019  *      2.6.8   2004-07-20      PRL             Rewrite for ARToolKit 2.68.2
00020  *
00021  */
00022 /*
00023  * 
00024  * This file is part of ARToolKit.
00025  * 
00026  * ARToolKit is free software; you can redistribute it and/or modify
00027  * it under the terms of the GNU General Public License as published by
00028  * the Free Software Foundation; either version 2 of the License, or
00029  * (at your option) any later version.
00030  * 
00031  * ARToolKit is distributed in the hope that it will be useful,
00032  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00033  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00034  * GNU General Public License for more details.
00035  * 
00036  * You should have received a copy of the GNU General Public License
00037  * along with ARToolKit; if not, write to the Free Software
00038  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00039  * 
00040  */
00041 #ifndef AR_VIDEO_H
00042 #define AR_VIDEO_H
00043 #ifdef  __cplusplus
00044 extern "C" {
00045 #endif
00046 
00047 
00048 #if __APPLE_CC__
00049 #include <Carbon/Carbon.h>
00050 #include <QuickTime/QuickTime.h>
00051 #include <pthread.h>
00052 #endif
00053 
00054 typedef struct _AR2VideoParamT AR2VideoParamT;
00055 typedef char ARUint8;
00056 
00057 #define DEFAULT_VIDEO_WIDTH 640
00058 #define DEFAULT_VIDEO_HEIGHT 480
00059 #define arMalloc(V,T,S)  \
00060 { if( ((V) = (T *)malloc( sizeof(T) * (S) )) == 0 ) \
00061 {printf("malloc error!!\n"); exit(1);} }
00062 
00063 int        arVideoOpen( char *config );
00064 int        arVideoClose( void );
00065 int        arVideoDispOption( void );
00066 
00067 int        arVideoInqSize( int *x, int *y );
00068 ARUint8*   arVideoGetImage( void );
00069 ARUint8*   arVideoGetTSImage( timeval* timestamp );
00070 double     arGetFrameRate( void );
00071 
00072 int        arVideoCapStart( void );
00073 int        arVideoCapStop( void );
00074 int        arVideoCapNext( void );
00075 
00076 int             ar2VideoDispOption ( void );
00077 AR2VideoParamT *ar2VideoOpen       ( char *config );
00078 int             ar2VideoClose      ( AR2VideoParamT *vid );
00079 int             ar2VideoCapStart   ( AR2VideoParamT *vid );
00080 int             ar2VideoCapNext    ( AR2VideoParamT *vid );
00081 int             ar2VideoCapStop    ( AR2VideoParamT *vid );
00082 ARUint8        *ar2VideoGetImage   ( AR2VideoParamT *vid );
00083 int             ar2VideoInqSize    ( AR2VideoParamT *vid, int *x,int *y );
00084 
00085 #ifdef  __cplusplus
00086 }
00087 #endif
00088 #endif

Generated on Tue Oct 18 12:18:51 2005 for VideoWrapper API by  doxygen 1.4.1