QTfrontend/hwform.cpp
changeset 7376 48b79b3ca592
parent 7353 0e55228e1303
child 7392 bc3306c59a08
equal deleted inserted replaced
7373:d5ec4e4eb2d5 7376:48b79b3ca592
  1436         QString prefix = str;
  1436         QString prefix = str;
  1437         prefix.chop(7); // remove ".txtout"
  1437         prefix.chop(7); // remove ".txtout"
  1438         videosDir.rename(prefix + ".txtout", prefix + ".txtin"); // rename this file to not open it twice
  1438         videosDir.rename(prefix + ".txtout", prefix + ".txtin"); // rename this file to not open it twice
  1439         HWRecorder* pRecorder = new HWRecorder(config, prefix);
  1439         HWRecorder* pRecorder = new HWRecorder(config, prefix);
  1440         ui.pageVideos->addRecorder(pRecorder);
  1440         ui.pageVideos->addRecorder(pRecorder);
  1441         int numFrames = QFileInfo(videosDir.absoluteFilePath(prefix + ".txtin")).size()/16;
  1441         pRecorder->EncodeVideo(record);
  1442         pRecorder->EncodeVideo(record, numFrames);
       
  1443     }
  1442     }
  1444 }
  1443 }
  1445 
  1444 
  1446 void HWForm::startTraining(const QString & scriptName)
  1445 void HWForm::startTraining(const QString & scriptName)
  1447 {
  1446 {