equal
deleted
inserted
replaced
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 { |