mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-14 19:00:01 +01:00
updated to use DSHOW
This commit is contained in:
@@ -1501,6 +1501,8 @@ void AC_MainWindow::setFade() {
|
||||
playback->setFadeFilter(fc);
|
||||
}
|
||||
|
||||
std::mutex mutex_lock_;
|
||||
|
||||
void AC_MainWindow::frameInc() {
|
||||
frame_index++;
|
||||
QString frame_string;
|
||||
|
||||
@@ -70,7 +70,11 @@ bool Playback::setVideoCamera(std::string name, int type, int device, int res, c
|
||||
device_num = device;
|
||||
mutex.lock();
|
||||
//#if defined(__linux__) || defined(__APPLE__)
|
||||
#ifdef _WIN32
|
||||
capture.open(cv::CAP_DSHOW+device);
|
||||
#else
|
||||
capture.open(device);
|
||||
#endif
|
||||
if(!capture.isOpened()) {
|
||||
mutex.unlock();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user