Skip to content

Commit

Permalink
Clean up codec test fucntion
Browse files Browse the repository at this point in the history
  • Loading branch information
daharoni committed Feb 4, 2020
1 parent 8bcd3c1 commit 8f338c6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions source/Miniscope-DAQ-QT-Software.pro
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ DISTFILES +=


win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../../opencv-build420/install/x64/vc15/lib/ -lopencv_world420
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../../../../opencv-build420/install/x64/vc15/lib/ -lopencv_videoio_ffmpeg420_64
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../../../../opencv-build420/install/x64/vc15/lib/ -lopencv_world420d

INCLUDEPATH += $$PWD/../../../../../../../opencv-build420/install/include
Expand Down
9 changes: 0 additions & 9 deletions source/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,6 @@ void backEnd::testCodecSupport()
// This function will test which codecs are supported on host's machine
cv::VideoWriter testVid;
QVector<QString> possibleCodec({"DIB ", "MJPG", "MJ2C", "XVID", "FFV1"});

testVid.open("test.raw", 0, 0, cv::Size(640, 480), true);
if (testVid.isOpened()) {
qDebug() << "RAWAWAWAWAW";
testVid.release();
}
else
qDebug() << "NOOOOOOO GOOOOOOOOD";

for (int i = 0; i < possibleCodec.length(); i++) {
testVid.open("test.avi", cv::VideoWriter::fourcc(possibleCodec[i].toStdString()[0],possibleCodec[i].toStdString()[1],possibleCodec[i].toStdString()[2],possibleCodec[i].toStdString()[3]),
20, cv::Size(640, 480), true);
Expand Down

0 comments on commit 8f338c6

Please sign in to comment.