rahulch

Untitled

Sep 18th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void PeopleIdentificationMainWindow::setVideoFilePath(const QString& videoFilePath)
  2. {
  3.     this->m_videoFilePath = videoFilePath;
  4.     if (!this->m_videoFilePath.isEmpty()) {
  5.         const std::string videoFilePathStr = this->m_videoFilePath.toLocal8Bit().constData();
  6.         this->m_app = new application(videoFilePathStr);
  7.     } else {
  8.         this->m_app = new application();
  9.     }
  10.     this->m_videoWidth = this->m_app->getVideoWidth();
  11.     this->m_videoHeight = this->m_app->getVideoHeight();
  12.     emit this->videoFilePathChanged();
  13.     this->setCameraInput(videoFilePath.isEmpty());
  14. }
Add Comment
Please, Sign In to add comment