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