ソースを参照

adjust

master
wenqiurong 5年前
コミット
35bfc849b8
33個のファイルの変更9行の追加5行の削除
  1. バイナリ
      Config/ConfigDataCentre.o
  2. バイナリ
      Config/TestCameraConfig.o
  3. バイナリ
      Config/TestDefaultConfig.o
  4. バイナリ
      Config/TestDevSystemConfig.o
  5. バイナリ
      Config/TestEncodeConfig.o
  6. バイナリ
      Config/TestModifyPassword.o
  7. バイナリ
      Config/TestRebot.o
  8. +1
    -1
      TestDASServer.cpp
  9. バイナリ
      TestDASServer.o
  10. バイナリ
      TestDevAlarmCallback.o
  11. バイナリ
      TestDevConfig.o
  12. バイナリ
      TestDevFileFind.o
  13. バイナリ
      TestDevPTZ.o
  14. バイナリ
      TestDevSearch.o
  15. バイナリ
      TestDevSnap.o
  16. バイナリ
      TestDevTalk.o
  17. バイナリ
      TestDownload.o
  18. バイナリ
      TestDownloadFileByName.o
  19. バイナリ
      TestFuns.o
  20. バイナリ
      TestMediaFaceImage.o
  21. +3
    -2
      TestMediaRealPlay.cpp
  22. バイナリ
      TestMediaRealPlay.o
  23. バイナリ
      TestMediaRecordPlay.o
  24. バイナリ
      TestOPLogQuery.o
  25. バイナリ
      TestOSDInfo.o
  26. バイナリ
      TestOpenTransChannel.o
  27. バイナリ
      TestPTZPreset.o
  28. バイナリ
      TestSerialWrite.o
  29. バイナリ
      TestUpgrade.o
  30. バイナリ
      TestVideoCfg.o
  31. +5
    -2
      XNetSDKTest.cpp
  32. バイナリ
      XNetSDKTest.o
  33. バイナリ
      test

バイナリ
Config/ConfigDataCentre.o ファイルの表示


バイナリ
Config/TestCameraConfig.o ファイルの表示


バイナリ
Config/TestDefaultConfig.o ファイルの表示


バイナリ
Config/TestDevSystemConfig.o ファイルの表示


バイナリ
Config/TestEncodeConfig.o ファイルの表示


バイナリ
Config/TestModifyPassword.o ファイルの表示


バイナリ
Config/TestRebot.o ファイルの表示


+ 1
- 1
TestDASServer.cpp ファイルの表示

@@ -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);


バイナリ
TestDASServer.o ファイルの表示


バイナリ
TestDevAlarmCallback.o ファイルの表示


バイナリ
TestDevConfig.o ファイルの表示


バイナリ
TestDevFileFind.o ファイルの表示


バイナリ
TestDevPTZ.o ファイルの表示


バイナリ
TestDevSearch.o ファイルの表示


バイナリ
TestDevSnap.o ファイルの表示


バイナリ
TestDevTalk.o ファイルの表示


バイナリ
TestDownload.o ファイルの表示


バイナリ
TestDownloadFileByName.o ファイルの表示


バイナリ
TestFuns.o ファイルの表示


バイナリ
TestMediaFaceImage.o ファイルの表示


+ 3
- 2
TestMediaRealPlay.cpp ファイルの表示

@@ -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);
}


バイナリ
TestMediaRealPlay.o ファイルの表示


バイナリ
TestMediaRecordPlay.o ファイルの表示


バイナリ
TestOPLogQuery.o ファイルの表示


バイナリ
TestOSDInfo.o ファイルの表示


バイナリ
TestOpenTransChannel.o ファイルの表示


バイナリ
TestPTZPreset.o ファイルの表示


バイナリ
TestSerialWrite.o ファイルの表示


バイナリ
TestUpgrade.o ファイルの表示


バイナリ
TestVideoCfg.o ファイルの表示


+ 5
- 2
XNetSDKTest.cpp ファイルの表示

@@ -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:


バイナリ
XNetSDKTest.o ファイルの表示


バイナリ
test ファイルの表示


読み込み中…
キャンセル
保存