#include <highgui.h>
#include "vapiTypes.h"
Diagrama de dependências de inclusão para vapiCameraSettings.h:
Este grafo mostra quais são os ficheiros que incluem directamente ou indirectamente este ficheiro:
Ir para o código fonte deste ficheiro.
typedef struct _vCameraSettings vCameraSettings |
enum CameraType |
Definido na linha 13 do ficheiro vapiCameraSettings.h.
00014 { vCameraNONE, vCameraLocal, vCameraRemoteIP, vCameraLocalFile };
CvCapture* vapiCameraSettingsGetCapture | ( | vCameraSettings * | CameraSettings | ) |
Definido na linha 75 do ficheiro vapiCameraSettings.c.
Referências _vCameraSettings::LocalCameraCapture e _vCameraSettings::LocalCameraFirstCapture.
Referenciado por vapiGetSnapshotLocalCamera().
00076 { 00077 if (CameraSettings->LocalCameraFirstCapture) 00078 { 00079 return NULL; 00080 } 00081 return CameraSettings->LocalCameraCapture; 00082 }
Here is the caller graph for this function:
int vapiCameraSettingsGetLocalCameraNumber | ( | vCameraSettings * | CameraSettings | ) |
Definido na linha 196 do ficheiro vapiCameraSettings.c.
Referências vapiCameraSettingsGetType() e vCameraLocal.
Referenciado por vapiGetSnapshotLocalCamera().
00197 { 00198 if (vapiCameraSettingsGetType (CameraSettings) == vCameraLocal) 00199 { 00200 return CameraSettings->LocalCameraIndex; 00201 } 00202 else 00203 { 00204 return -2; 00205 } 00206 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
char* vapiCameraSettingsGetLocalFilename | ( | vCameraSettings * | CameraSettings | ) |
Definido na linha 132 do ficheiro vapiCameraSettings.c.
Referências vapiCameraSettingsGetType(), vapiFileIsReadable() e vCameraLocalFile.
Referenciado por vapiGetSnapshotLocalFile().
00133 { 00134 if (vapiCameraSettingsGetType (CameraSettings) == vCameraLocalFile 00135 && CameraSettings->LocalFileName != NULL 00136 && vapiFileIsReadable (CameraSettings->LocalFileName)) 00137 { 00138 return CameraSettings->LocalFileName; 00139 } 00140 else 00141 { 00142 00143 return "./pixmaps/vapiErroDeCamara.png"; 00144 00145 } 00146 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
int vapiCameraSettingsGetType | ( | vCameraSettings * | CameraSettings | ) |
Definido na linha 126 do ficheiro vapiCameraSettings.c.
Referências _vCameraSettings::CameraType.
Referenciado por vapiCameraSettingsGetLocalCameraNumber(), vapiCameraSettingsGetLocalFilename(), vapiGtkSetOriginWindowInit(), vapiRefreshImage() e vapiRefreshImageThread().
00127 { 00128 return CameraSettings->CameraType; 00129 }
Here is the caller graph for this function:
void vapiCameraSettingsInformLoadingStatus | ( | const char * | Message, | |
double | steps | |||
) |
vCameraSettings* vapiCameraSettingsInit | ( | ) |
Definido na linha 34 do ficheiro vapiCameraSettings.c.
Referências _vCameraSettings::CameraType, _vCameraSettings::LocalCameraCapture, _vCameraSettings::LocalCameraFirstCapture, _vCameraSettings::LocalCameraIndex, _vCameraSettings::LocalFileName, _vCameraSettings::RemoteCameraIP, _vCameraSettings::RemoteCameraURL, vapiCameraSettingsSetCalibrationConstant(), vCameraNONE e vTRUE.
Referenciado por vapiGlobalCameraSettingsInit(), vapiGtkSetOriginWindowNewVapi() e vapiGtkSetOriginWindowTestSaveOrigin().
00035 { 00036 vCameraSettings *CameraSettings = malloc (sizeof (vCameraSettings)); 00037 CameraSettings->LocalCameraFirstCapture = vTRUE; 00038 CameraSettings->LocalCameraCapture = NULL; 00039 vapiCameraSettingsSetCalibrationConstant (CameraSettings, -1); 00040 CameraSettings->CameraType = vCameraNONE; 00041 CameraSettings->LocalCameraIndex = -2; 00042 CameraSettings->RemoteCameraIP = NULL; 00043 CameraSettings->RemoteCameraURL = NULL; 00044 CameraSettings->LocalFileName = NULL; 00045 return CameraSettings; 00046 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
vCameraSettings* vapiCameraSettingsRetrieveGlobal | ( | ) |
Definido na linha 28 do ficheiro vapiCameraSettings.c.
Referências GlobalCameraSettings.
Referenciado por main() e vapiOriginal().
00029 { 00030 return GlobalCameraSettings; 00031 }
Here is the caller graph for this function:
void vapiCameraSettingsSetCalibrationConstant | ( | vCameraSettings * | CameraSettings, | |
double | Constant | |||
) |
Definido na linha 68 do ficheiro vapiCameraSettings.c.
Referências _vCameraSettings::CalibrationConstant.
Referenciado por vapiCameraSettingsInit().
00070 { 00071 CameraSettings->CalibrationConstant = Constant; 00072 }
Here is the caller graph for this function:
void vapiCameraSettingsSetCapture | ( | vCameraSettings * | CameraSettings, | |
CvCapture * | Capture | |||
) |
Definido na linha 60 do ficheiro vapiCameraSettings.c.
Referências _vCameraSettings::LocalCameraCapture, _vCameraSettings::LocalCameraFirstCapture e vFALSE.
Referenciado por vapiGetSnapshotLocalCamera().
00062 { 00063 CameraSettings->LocalCameraFirstCapture = vFALSE; 00064 CameraSettings->LocalCameraCapture = Capture; 00065 }
Here is the caller graph for this function:
void vapiCameraSettingsSetNoCapture | ( | vCameraSettings * | CameraSettings | ) |
Definido na linha 49 do ficheiro vapiCameraSettings.c.
Referências _vCameraSettings::LocalCameraCapture, _vCameraSettings::LocalCameraFirstCapture e vTRUE.
Referenciado por vapiCameraSettingsResetCameraType() e vapiGetSnapshotLocalCamera().
00050 { 00051 if (!CameraSettings->LocalCameraFirstCapture) 00052 { 00053 cvReleaseCapture (&CameraSettings->LocalCameraCapture); 00054 CameraSettings->LocalCameraCapture = NULL; 00055 } 00056 CameraSettings->LocalCameraFirstCapture = vTRUE; 00057 }
Here is the caller graph for this function:
void vapiCameraSettingsSetTypeLocal | ( | vCameraSettings * | CameraSettings, | |
int | LocalCameraIndex | |||
) |
Definido na linha 85 do ficheiro vapiCameraSettings.c.
Referências _vCameraSettings::CameraType, _vCameraSettings::LocalCameraIndex, vapiCameraSettingsResetCameraType() e vCameraLocal.
Referenciado por vapiGtkSetOriginWindowTestSaveOrigin() e vapiParseCommandOptions().
00087 { 00088 vapiCameraSettingsResetCameraType (CameraSettings); 00089 00090 CameraSettings->CameraType = vCameraLocal; 00091 CameraSettings->LocalCameraIndex = LocalCameraIndex; 00092 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
void vapiCameraSettingsSetTypeLocalFile | ( | vCameraSettings * | CameraSettings, | |
const char * | LocalFileName | |||
) |
Definido na linha 95 do ficheiro vapiCameraSettings.c.
Referências _vCameraSettings::CameraType, _vCameraSettings::LocalFileName, vapiCameraSettingsResetCameraType(), vapiReturnStringPointer() e vCameraLocalFile.
Referenciado por vapiGtkSetOriginWindowTestSaveOrigin() e vapiParseCommandOptions().
00097 { 00098 vapiCameraSettingsResetCameraType (CameraSettings); 00099 CameraSettings->LocalFileName = 00100 vapiReturnStringPointer (LocalFileName); 00101 CameraSettings->CameraType = vCameraLocalFile; 00102 00103 if (strlen (LocalFileName) < 4) 00104 { 00105 CameraSettings->LocalFileName = NULL; 00106 } 00107 else 00108 { 00109 CameraSettings->LocalFileName = 00110 vapiReturnStringPointer (LocalFileName); 00111 } 00112 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
void vapiCameraSettingsSetTypeRemoteIP | ( | vCameraSettings * | CameraSettings, | |
const char * | IPAddress, | |||
const char * | URL | |||
) |
Definido na linha 115 do ficheiro vapiCameraSettings.c.
Referências _vCameraSettings::CameraType, _vCameraSettings::RemoteCameraIP, _vCameraSettings::RemoteCameraURL, vapiCameraSettingsResetCameraType(), vapiReturnStringPointer() e vCameraRemoteIP.
Referenciado por vapiGtkSetOriginWindowTestSaveOrigin().
00117 { 00118 vapiCameraSettingsResetCameraType (CameraSettings); 00119 00120 CameraSettings->CameraType = vCameraRemoteIP; 00121 CameraSettings->RemoteCameraIP = vapiReturnStringPointer (IPAddress); 00122 CameraSettings->RemoteCameraURL = vapiReturnStringPointer (URL); 00123 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
int vapiCameraSettingsStartNewVapi | ( | vCameraSettings * | CameraSettings | ) |
Definido na linha 209 do ficheiro vapiCameraSettings.c.
Referências _vCameraSettings::CameraType, _vCameraSettings::LocalFileName, v_debug, v_printf(), VAPI_EXE, vCameraLocal e vCameraLocalFile.
Referenciado por vapiGtkSetOriginWindowNewVapi().
00210 { 00211 char *VAPI_SYSTEM_CALL; 00212 00213 switch (CameraSettings->CameraType) 00214 { 00215 case vCameraLocal: 00216 00217 VAPI_SYSTEM_CALL = v_printf ("%s -lc %d &", VAPI_EXE, 00218 CameraSettings-> 00219 LocalCameraIndex); 00220 v_debug (VAPI_SYSTEM_CALL); 00221 system (VAPI_SYSTEM_CALL); 00222 break; 00223 00224 case vCameraLocalFile: 00225 VAPI_SYSTEM_CALL = v_printf ("%s -lf %s &", VAPI_EXE, 00226 CameraSettings->LocalFileName); 00227 v_debug (VAPI_SYSTEM_CALL); 00228 system (VAPI_SYSTEM_CALL); 00229 break; 00230 00231 default: 00232 return 1; 00233 break; 00234 } 00235 free (VAPI_SYSTEM_CALL); 00236 return 0; 00237 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
void vapiGlobalCameraSettingsInit | ( | ) |
Definido na linha 22 do ficheiro vapiCameraSettings.c.
Referências GlobalCameraSettings e vapiCameraSettingsInit().
Referenciado por main().
00023 { 00024 GlobalCameraSettings = vapiCameraSettingsInit(); 00025 }
Grafo de chamadas desta função:
Here is the caller graph for this function:
void vCameraSettingsFree | ( | vCameraSettings * | vFree | ) |
Definido na linha 188 do ficheiro vapiCameraSettings.c.
Referências vapiCameraSettingsResetCameraType().
Referenciado por vapiGtkSetOriginWindowNewVapi() e vapiGtkSetOriginWindowTestSaveOrigin().
00189 { 00190 vapiCameraSettingsResetCameraType (vFree); 00191 free (vFree); 00192 00193 }
Grafo de chamadas desta função:
Here is the caller graph for this function: