DSwcOpenAPI.h

Go to the documentation of this file.
00001 
00088 #ifndef __DSWCOPENAPI_H_
00089 #define __DSWCOPENAPI_H_
00090 
00091 
00092 // The following ifdef block is the standard way of creating macros which make exporting 
00093 // from a DLL simpler. All files within this DLL are compiled with the DSWCOPEN_EXPORTS
00094 // symbol defined on the command line. this symbol should not be defined on any project
00095 // that uses this DLL. This way any other project whose source files include this file see 
00096 // DSWCOPEN_API functions as being imported from a DLL, wheras this DLL sees symbols
00097 // defined with this macro as being exported.
00098 #ifdef DSWCOPEN_EXPORTS
00099 #define DSWCOPEN_API __declspec(dllexport)
00100 #else
00101 #define DSWCOPEN_API __declspec(dllimport)
00102 #endif
00103 
00104 
00105 extern "C" {
00107         enum EKnownChipsetCat
00108         {
00109                 ECSX_Unknown            = 0,
00110                 ECSX_SAA8112            = 1,
00111                 ECSX_SAA8116            = 3,
00112                 ECSX_CREALIVEULTRA      = 4,
00113                 ECSX_LOGIFUSION         = 5,
00114 };
00115 
00117         enum EVidCapPropertySupport
00118         {
00119                 EVCS_no         = 0, // not supported 
00120                 EVCS_get        = 1, // get support
00121                 EVCS_set        = 2, // set support
00122                 EVCS_both       = 3      //     get+set support
00123         };
00124 
00126         enum EVidCapProperty
00127         {
00129                 EVCP_FirstElement                       = 0,
00130 
00137 
00138                 EVCP_Brightness                 = EVCP_FirstElement, // VideoProcAmp_Brightness,
00139 
00141                 EVCP_Contrast                           = 1,// VideoProcAmp_Contrast,
00142 
00144                 EVCP_Hue                                        = 2,// VideoProcAmp_Hue
00145 
00147                 EVCP_Saturation                 = 3,// VideoProcAmp_Saturation,
00148 
00150                 EVCP_Sharpness                  = 4,// VideoProcAmp_Sharpness,
00151 
00153                 EVCP_Gamma                              = 5,// VideoProcAmp_Gamma,
00154 
00157                 EVCP_ColorEnable                        = 6,// VideoProcAmp_ColorEnable,
00158 
00160                 EVCP_WhiteBalance                       = 7,// VideoProcAmp_WhiteBalance,
00161 
00164                 EVCP_BacklightCompensation = 8,// VideoProcAmp_BacklightCompensation,
00165 
00167 
00170                 EVCP_WhiteBalanceMode           = 9,  
00171 
00173                 EVCP_WhiteBalRed                        = 10, // (red part 0..255)
00174 
00176                 EVCP_WhiteBalBlue                       = 11, // (blue part 0..255)
00177 
00180                 EVCP_FlickerFree                        = 12, // (0=off,  1=on)
00182                 EVCP_Flicker50_60                       = 13, // (0=50Hz, 1=60Hz)
00183 
00186                 EVCP_FPS                                        = 14, 
00187 
00190                 EVCP_Exposure                           = 15, 
00191         
00193                 EVCP_Gain                                       = 16, // (0..63)
00194 
00197                 EVCP_FlipHorizontal             = 17, // (0=not,1=flipped)
00198                 EVCP_FlipVertical                       = 18, // (0=not,1=flipped)
00199 
00202                 EVCP_AutoExposure                       = 19, // (0=auto, 1=not)
00203                 EVCP_AutoAll                            = 20, // (0=auto, 1=not)
00204 
00206 
00208                 EVCP_ActualFrameRate            = 21, // frame duration in msec - get only
00209 
00211 
00214                 EVCP_LED                                        = 22, // 
00215 
00218                 EVCP_Setting                            = 23, // =0 Load User, =1 Save User, =2 Load Factory
00219 
00221                 EVCP_ExtTrigger                         = 24, // =0 Disable Trigger, = 255 Enable Trigger,
00222                 EVCP_SWTrigger                          = 25, // =255 trigger event
00223 
00224                 EVCP_Pan                                        = 26, // camera's pan setting, in degrees. Values range from 180 to +180
00225                 EVCP_Tilt                                       = 27, // camera's tilt setting, in degrees. Values range from 180 to +180
00226                 EVCP_Roll                                       = 28, // camera's roll setting, in degrees. Values range from 180 to +180
00227                 EVCP_Zoom                                       = 29, // camera's zoom setting, in millimeters. Values range from 10 to 600
00228                 EVCP_Iris                                       = 30, // camera's iris setting, in units of fstop * 10
00229                 EVCP_Focus                                      = 31, // camera's focus setting, as the distance to the optimally focused target, in millimeters
00230                 EVCP_LastElement                        = EVCP_Focus,
00231         };
00232 
00234 
00235 
00237 
00242         DSWCOPEN_API int EnumCams();
00243 
00244 
00251         DSWCOPEN_API void GetCamStrings(char *(*camNames[]), unsigned int *numCamNames);
00252 
00260         DSWCOPEN_API void GetDevStrings(char *(*devNames[]), unsigned int *numDevNames);
00261 
00269         DSWCOPEN_API void GetCamSerials(char *(*camSerials[]), unsigned int *numCamSerials);
00270 
00276         DSWCOPEN_API int SetCam(int camNumber);
00277 
00279 
00280 
00281 
00287         DSWCOPEN_API int CamProperty_Support(EVidCapProperty prop, EVidCapPropertySupport *pValue);
00288 
00289 
00295         DSWCOPEN_API int CamProperty_Range(EVidCapProperty prop, long *pMin, long *pMax, long *pDelta);
00296 
00297 
00303         DSWCOPEN_API int CamProperty_Set(EVidCapProperty prop, long value);
00304 
00310         DSWCOPEN_API int CamProperty_Get(EVidCapProperty prop, long *pValue);
00311 
00316         DSWCOPEN_API int CamChipset(EKnownChipsetCat *pValue);
00317 
00318 }//C
00319 
00320 #endif // __DVIDCAPCTRL_H_

Generated on Tue Oct 31 23:59:08 2006 for DSwcOpen by  doxygen 1.4.6-NO