Ver código fonte

adjust

master
wenqiurong 5 anos atrás
pai
commit
35bfc849b8
33 arquivos alterados com 9 adições e 5 exclusões
  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 Ver arquivo


BIN
Config/TestCameraConfig.o Ver arquivo


BIN
Config/TestDefaultConfig.o Ver arquivo


BIN
Config/TestDevSystemConfig.o Ver arquivo


BIN
Config/TestEncodeConfig.o Ver arquivo


BIN
Config/TestModifyPassword.o Ver arquivo


BIN
Config/TestRebot.o Ver arquivo


+ 1
- 1
TestDASServer.cpp Ver arquivo

@@ -10,9 +10,9 @@ void OnDASServerStart(XSDK_HANDLE hServer, int nResult)
void OnDASDeviceReg(XSDK_HANDLE hDevice, SXSDKDASDeviceInfo *pDASInfo, int dPos)
{
printf("hDevice::%d, dPos::%d\r\n",hDevice,dPos);
hDeviceArr[dPos] = hDevice;
strncpy(DeviceIdArr[dPos], pDASInfo->sDevId, 127);
dPos++;
// 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",
pDASInfo->sDevIP, pDASInfo->nDevPort, pDASInfo->sDevId, pDASInfo->sUserName, pDASInfo->sPassword, pDASInfo->nChannelNum, pDASInfo->sEncryptType);


BIN
TestDASServer.o Ver arquivo


BIN
TestDevAlarmCallback.o Ver arquivo


BIN
TestDevConfig.o Ver arquivo


BIN
TestDevFileFind.o Ver arquivo


BIN
TestDevPTZ.o Ver arquivo


BIN
TestDevSearch.o Ver arquivo


BIN
TestDevSnap.o Ver arquivo


BIN
TestDevTalk.o Ver arquivo


BIN
TestDownload.o Ver arquivo


BIN
TestDownloadFileByName.o Ver arquivo


BIN
TestFuns.o Ver arquivo


BIN
TestMediaFaceImage.o Ver arquivo


+ 3
- 2
TestMediaRealPlay.cpp Ver arquivo

@@ -2,8 +2,9 @@
#include <string>
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++) {
printf("pos:: %d , hMedia:: %d,hMedia::%d\r\n",i,hDeviceArr[i],hMedia);
if (hDeviceArr[i] == hMedia) {
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");
char file_name[1024];
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(file_name, pFrame->pContent, pFrame->nFrameLength);
}


BIN
TestMediaRealPlay.o Ver arquivo


BIN
TestMediaRecordPlay.o Ver arquivo


BIN
TestOPLogQuery.o Ver arquivo


BIN
TestOSDInfo.o Ver arquivo


BIN
TestOpenTransChannel.o Ver arquivo


BIN
TestPTZPreset.o Ver arquivo


BIN
TestSerialWrite.o Ver arquivo


BIN
TestUpgrade.o Ver arquivo


BIN
TestVideoCfg.o Ver arquivo


+ 5
- 2
XNetSDKTest.cpp Ver arquivo

@@ -6,9 +6,9 @@ SXMediaRecordByFileReq info = {0};
bool bFindFile = false;
#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 dPos = 0 ;
switch(nMsgId)
{
case ESXSDK_DEV_FIND_FILE:
@@ -70,7 +70,10 @@ int CALLBACK Main_MessageCallBack(XSDK_HANDLE hDevice, int nMsgId, int nParam1,
g_hDevice = hDevice;
#endif
OnDASDeviceReg(hDevice, (SXSDKDASDeviceInfo *)pObject,dPos);
{
OnDASDeviceReg(hDevice, (SXSDKDASDeviceInfo *)pObject,dPos);
dPos++;
}
}
break;
case ESXSDK_DEV_SNAP:


BIN
XNetSDKTest.o Ver arquivo


BIN
test Ver arquivo


Carregando…
Cancelar
Salvar