00001 // ========================================================================================== 00013 // ========================================================================================== 00014 00015 00016 #ifndef _AEL_QTWRAPPER_H 00017 #define _AEL_QTWRAPPER_H 00018 00019 #include "VideoWrapperCommon/VideoWrapperTypes.h" 00020 00021 #ifdef __cplusplus 00022 extern "C" { 00023 #endif 00024 00025 #ifndef UNIX 00026 #define UNIX 00027 #endif 00028 00029 #define DSWRAPPER_API 00030 #define DSDECLSPEC 00031 00032 #include <sys/time.h> 00033 typedef struct timeval timeval; 00034 00035 #ifndef TRUE 00036 #define TRUE 1 00037 #define FALSE 0 00038 #endif 00039 00040 // ========================================================================================== 00041 // utility functions 00042 // ========================================================================================== 00043 00044 // ------------------------------------------------------------------------------------------ 00045 // setPrintFunction 00046 // ------------------------------------------------------------------------------------------ 00052 void DSWRAPPER_API DSDECLSPEC setPrintFunction(printfcn *function); 00053 00054 // ========================================================================================== 00055 // camera management functions 00056 // ========================================================================================== 00057 00058 // ------------------------------------------------------------------------------------------ 00059 // initPGRVideo 00060 // ------------------------------------------------------------------------------------------ 00076 VWHCamera DSWRAPPER_API DSDECLSPEC initQTVideo(char *lpCmdLine); 00077 00078 // ------------------------------------------------------------------------------------------ 00079 // closeQTVideo 00080 // ------------------------------------------------------------------------------------------ 00081 // TODO: usage of 0/1 return values is inconsistent. fix. 00089 int DSWRAPPER_API DSDECLSPEC closeQTVideo( VWHCamera hCam); 00090 00091 // ------------------------------------------------------------------------------------------ 00092 // resetQTCamera 00093 // ------------------------------------------------------------------------------------------ 00094 // TODO: usage of 0/1 return values is inconsistent. fix. 00104 int DSWRAPPER_API DSDECLSPEC resetQTCamera( VWHCamera hCam, bool bAutomatic); 00105 00106 // ------------------------------------------------------------------------------------------ 00107 // showQTFilterProperties 00108 // ------------------------------------------------------------------------------------------ 00109 // TODO: usage of 0/1 return values is inconsistent. fix. 00118 int DSWRAPPER_API DSDECLSPEC showQTFilterPropertities(VWHCamera hCam); 00119 00120 // ========================================================================================== 00121 // frame functions 00122 // ========================================================================================== 00123 00124 // ------------------------------------------------------------------------------------------ 00125 // getPGRFrame 00126 // ------------------------------------------------------------------------------------------ 00127 // TODO: usage of 0/1 return values is inconsistent. fix. 00137 int DSWRAPPER_API DSDECLSPEC getQTFrame( VWHCamera hCam, unsigned char **ppbFrame, timeval *pTimestamp = NULL); 00138 00139 // ------------------------------------------------------------------------------------------ 00140 // releaseQTFrame 00141 // ------------------------------------------------------------------------------------------ 00147 void DSWRAPPER_API DSDECLSPEC releaseQTFrame( VWHCamera hCam); 00148 00149 // ------------------------------------------------------------------------------------------ 00150 // getFrameRate 00151 // ------------------------------------------------------------------------------------------ 00159 double DSWRAPPER_API DSDECLSPEC getQTFrameRate( VWHCamera hCam); 00160 00161 00162 // ========================================================================================== 00163 // video parameter accessor functions 00164 // ========================================================================================== 00165 00166 // ------------------------------------------------------------------------------------------ 00167 // getQTVideoWidth 00168 // ------------------------------------------------------------------------------------------ 00176 int DSWRAPPER_API DSWRAPPER_API getQTVideoWidth( VWHCamera hCam); 00177 00178 // ------------------------------------------------------------------------------------------ 00179 // getQTVideoHeight 00180 // ------------------------------------------------------------------------------------------ 00188 int DSWRAPPER_API DSWRAPPER_API getQTVideoHeight( VWHCamera hCam); 00189 00190 // ------------------------------------------------------------------------------------------ 00191 // getPGRVideoPixelFormat 00192 // ------------------------------------------------------------------------------------------ 00193 // TODO: doc 00203 int DSWRAPPER_API DSDECLSPEC getQTVideoPixelFormat(VWHCamera hCam); 00204 00205 // ------------------------------------------------------------------------------------------ 00206 // getQTOpenGLFormat 00207 // ------------------------------------------------------------------------------------------ 00208 // TODO: doc 00216 int DSWRAPPER_API DSDECLSPEC getQTOpenGLFormat(VWHCamera hCam); 00217 00218 // ------------------------------------------------------------------------------------------ 00219 // getQTVideoDepth 00220 // ------------------------------------------------------------------------------------------ 00229 int DSWRAPPER_API DSDECLSPEC getQTVideoDepth(VWHCamera hCam); 00230 00231 #ifdef __cplusplus 00232 }; 00233 #endif 00234 00235 #endif