Parcourir la source

adjust

master
wenqiurong il y a 6 ans
Parent
révision
35bfc849b8
33 fichiers modifiés avec 9 ajouts et 5 suppressions
  1. BIN
      Config/ConfigDataCentre.o
  2. BIN
      Config/TestCameraConfig.o
  3. BIN
      Config/TestDefaultConfig.o
  4. BIN
      Config/TestDevSystemConfig.o
  5. BIN
      Config/TestEncodeConfig.o
  6. BIN
      Config/TestModifyPassword.o
  7. BIN
      Config/TestRebot.o
  8. +1
    -1
      TestDASServer.cpp
  9. BIN
      TestDASServer.o
  10. BIN
      TestDevAlarmCallback.o
  11. BIN
      TestDevConfig.o
  12. BIN
      TestDevFileFind.o
  13. BIN
      TestDevPTZ.o
  14. BIN
      TestDevSearch.o
  15. BIN
      TestDevSnap.o
  16. BIN
      TestDevTalk.o
  17. BIN
      TestDownload.o
  18. BIN
      TestDownloadFileByName.o
  19. BIN
      TestFuns.o
  20. BIN
      TestMediaFaceImage.o
  21. +3
    -2
      TestMediaRealPlay.cpp
  22. BIN
      TestMediaRealPlay.o
  23. BIN
      TestMediaRecordPlay.o
  24. BIN
      TestOPLogQuery.o
  25. BIN
      TestOSDInfo.o
  26. BIN
      TestOpenTransChannel.o
  27. BIN
      TestPTZPreset.o
  28. BIN
      TestSerialWrite.o
  29. BIN
      TestUpgrade.o
  30. BIN
      TestVideoCfg.o
  31. +5
    -2
      XNetSDKTest.cpp
  32. BIN
      XNetSDKTest.o
  33. BIN
      test

BIN
Config/ConfigDataCentre.o Voir le fichier


BIN
Config/TestCameraConfig.o Voir le fichier


BIN
Config/TestDefaultConfig.o Voir le fichier


BIN
Config/TestDevSystemConfig.o Voir le fichier


BIN
Config/TestEncodeConfig.o Voir le fichier


BIN
Config/TestModifyPassword.o Voir le fichier


BIN
Config/TestRebot.o Voir le fichier


+ 1
- 1
TestDASServer.cpp Voir le fichier

@@ -10,9 +10,9 @@ void OnDASServerStart(XSDK_HANDLE hServer, int nResult)
void OnDASDeviceReg(XSDK_HANDLE hDevice, SXSDKDASDeviceInfo *pDASInfo, int dPos) void OnDASDeviceReg(XSDK_HANDLE hDevice, SXSDKDASDeviceInfo *pDASInfo, int dPos)
{ {
printf("hDevice::%d, dPos::%d\r\n",hDevice,dPos);
hDeviceArr[dPos] = hDevice; hDeviceArr[dPos] = hDevice;
strncpy(DeviceIdArr[dPos], pDASInfo->sDevId, 127); strncpy(DeviceIdArr[dPos], pDASInfo->sDevId, 127);
dPos++;
// hDevice---等同于XSDK_DevLoginSyn/XSDK_DevLogin的返回值 // hDevice---等同于XSDK_DevLoginSyn/XSDK_DevLogin的返回值
printf("OnDASDeviceReg-->\r\nIP:%s\r\nPort:%d\r\nDeiveID:%s\r\nUserName:%s\r\nPassword:%s\r\nChannelNum:%d\r\nEncryptyType:%s\r\n", printf("OnDASDeviceReg-->\r\nIP:%s\r\nPort:%d\r\nDeiveID:%s\r\nUserName:%s\r\nPassword:%s\r\nChannelNum:%d\r\nEncryptyType:%s\r\n",
pDASInfo->sDevIP, pDASInfo->nDevPort, pDASInfo->sDevId, pDASInfo->sUserName, pDASInfo->sPassword, pDASInfo->nChannelNum, pDASInfo->sEncryptType); pDASInfo->sDevIP, pDASInfo->nDevPort, pDASInfo->sDevId, pDASInfo->sUserName, pDASInfo->sPassword, pDASInfo->nChannelNum, pDASInfo->sEncryptType);


BIN
TestDASServer.o Voir le fichier


BIN
TestDevAlarmCallback.o Voir le fichier


BIN
TestDevConfig.o Voir le fichier


BIN
TestDevFileFind.o Voir le fichier


BIN
TestDevPTZ.o Voir le fichier


BIN
TestDevSearch.o Voir le fichier


BIN
TestDevSnap.o Voir le fichier


BIN
TestDevTalk.o Voir le fichier


BIN
TestDownload.o Voir le fichier


BIN
TestDownloadFileByName.o Voir le fichier


BIN
TestFuns.o Voir le fichier


BIN
TestMediaFaceImage.o Voir le fichier


+ 3
- 2
TestMediaRealPlay.cpp Voir le fichier

@@ -2,8 +2,9 @@
#include <string> #include <string>
int getPos(XSDK_HANDLE hMedia) { int getPos(XSDK_HANDLE hMedia) {
int size = sizeof(hDeviceArr) / sizeof(hDeviceArr);
int size = sizeof(hDeviceArr) / sizeof(hDeviceArr[0]);
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++) {
printf("pos:: %d , hMedia:: %d,hMedia::%d\r\n",i,hDeviceArr[i],hMedia);
if (hDeviceArr[i] == hMedia) { if (hDeviceArr[i] == hMedia) {
return i; return i;
} }
@@ -32,7 +33,7 @@ int CALLBACK Test_MediaCallBack(XSDK_HANDLE hMedia, const unsigned char *pData,
string fmt("/media-file/origin/%s/%04d-%02d-%02d-%02d.dat"); string fmt("/media-file/origin/%s/%04d-%02d-%02d-%02d.dat");
char file_name[1024]; char file_name[1024];
snprintf(file_name,sizeof(file_name),fmt.c_str(),DeviceIdArr[pos],pFrame->nYear,pFrame->nMonth,pFrame->nDay,pFrame->nHour) ; snprintf(file_name,sizeof(file_name),fmt.c_str(),DeviceIdArr[pos],pFrame->nYear,pFrame->nMonth,pFrame->nDay,pFrame->nHour) ;
printf("path: %s \r\n", file_name);
printf("path: %d ,%s \r\n", pos,file_name);
// ABFile("video_header.dat", pFrame->pHeader, pFrame->nLength); // ABFile("video_header.dat", pFrame->pHeader, pFrame->nLength);
ABFile(file_name, pFrame->pContent, pFrame->nFrameLength); ABFile(file_name, pFrame->pContent, pFrame->nFrameLength);
} }


BIN
TestMediaRealPlay.o Voir le fichier


BIN
TestMediaRecordPlay.o Voir le fichier


BIN
TestOPLogQuery.o Voir le fichier


BIN
TestOSDInfo.o Voir le fichier


BIN
TestOpenTransChannel.o Voir le fichier


BIN
TestPTZPreset.o Voir le fichier


BIN
TestSerialWrite.o Voir le fichier


BIN
TestUpgrade.o Voir le fichier


BIN
TestVideoCfg.o Voir le fichier


+ 5
- 2
XNetSDKTest.cpp Voir le fichier

@@ -6,9 +6,9 @@ SXMediaRecordByFileReq info = {0};
bool bFindFile = false; bool bFindFile = false;
#define TEST_DAS_SERVER 1 #define TEST_DAS_SERVER 1
int dPos = 0 ;
int CALLBACK Main_MessageCallBack(XSDK_HANDLE hDevice, int nMsgId, int nParam1, int nParam2, int nParam3, const char *szString, void *pObject, int nSeq, void *pUserData) int CALLBACK Main_MessageCallBack(XSDK_HANDLE hDevice, int nMsgId, int nParam1, int nParam2, int nParam3, const char *szString, void *pObject, int nSeq, void *pUserData)
{ {
int dPos = 0 ;
switch(nMsgId) switch(nMsgId)
{ {
case ESXSDK_DEV_FIND_FILE: case ESXSDK_DEV_FIND_FILE:
@@ -70,7 +70,10 @@ int CALLBACK Main_MessageCallBack(XSDK_HANDLE hDevice, int nMsgId, int nParam1,
g_hDevice = hDevice; g_hDevice = hDevice;
#endif #endif
OnDASDeviceReg(hDevice, (SXSDKDASDeviceInfo *)pObject,dPos);
{
OnDASDeviceReg(hDevice, (SXSDKDASDeviceInfo *)pObject,dPos);
dPos++;
}
} }
break; break;
case ESXSDK_DEV_SNAP: case ESXSDK_DEV_SNAP:


BIN
XNetSDKTest.o Voir le fichier


BIN
test Voir le fichier


Chargement…
Annuler
Enregistrer