Browse Source

change driver/driver_camera_usb for change default msgnane to image00

yuchuli 4 năm trước cách đây
mục cha
commit
d17bd88443
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/driver/driver_camera_usb/main.cpp

+ 2 - 2
src/driver/driver_camera_usb/main.cpp

@@ -154,7 +154,7 @@ void VideoThread(int n)
 
   //          char * strser = new char[nSize];
             bool bser = pic.SerializeToArray(strser,nSize);
-            qDebug("pac time is %d size is %d",xg.elapsed(),nSize);
+            qDebug("time is %ld pac time is %d size is %d",QDateTime::currentMSecsSinceEpoch(),xg.elapsed(),nSize);
 
     //        iv::modulecomm::ModuleSendMsg(gpa,str.data(),str.length());
             if(bser)iv::modulecomm::ModuleSendMsg(gpa,strser,nSize);
@@ -202,7 +202,7 @@ int main(int argc, char *argv[])
     std::cout<<strpath.toStdString()<<std::endl;
     iv::xmlparam::Xmlparam xp(strpath.toStdString());
 
-    std::string xmlmsgname = xp.GetParam("msgname","compresspic");
+    std::string xmlmsgname = xp.GetParam("msgname","image00");
     gmsgname = xmlmsgname;
     std::string strwidth = xp.GetParam("width","1280");
     std::string strheight = xp.GetParam("height","720");