stopmotion/capturehandler.cpp
blackmagic/capture.cpp
blackmagic/devices.cpp
- v4l/v4lcapture.cpp
- v4l/src.c
- v4l/src_v4l2.c
onmonitoritems/abstractonmonitoritem.cpp
onmonitoritems/onmonitorrectitem.cpp
onmonitoritems/onmonitorcornersitem.cpp
set(kdenlive_SRCS videoglwidget.cpp ${kdenlive_SRCS})
endif (APPLE OR OPENGL_FOUND)
+if (NOT APPLE)
+ set(kdenlive_SRCS
+ ${kdenlive_SRCS}
+ v4l/v4lcapture.cpp
+ v4l/src.c
+ v4l/src_v4l2.c
+ )
+endif (NOT APPLE)
+
# Add libdl
find_library( DL_LIB NAMES ${CMAKE_DL_LIBS} )
QWidget *p4 = new QWidget;
m_configCapture.setupUi(p4);
+#ifndef Q_WS_MAC
V4lCaptureHandler v4l(NULL);
// Video 4 Linux device detection
for (int i = 0; i < 10; i++) {
}
}
connect(m_configCapture.kcfg_detectedv4ldevices, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdatev4lDevice()));
-
+#endif
m_page4 = addPage(p4, i18n("Capture"), "media-record");
m_configCapture.tabWidget->setCurrentIndex(KdenliveSettings::defaultcapture());
connect(m_bmCapture, SIGNAL(gotMessage(const QString &)), this, SLOT(slotGotHDMIMessage(const QString &)));
}
if (QFile::exists(KdenliveSettings::video4vdevice())) {
+#ifndef Q_WS_MAC
if (m_bmCapture == NULL) m_bmCapture = new V4lCaptureHandler(m_layout);
capture_device->addItem(m_bmCapture->getDeviceName(KdenliveSettings::video4vdevice()).at(0), "v4l");
+#endif
}
connect(m_bmCapture, SIGNAL(frameSaved(const QString)), this, SLOT(slotNewThumb(const QString)));
StopmotionWidget::~StopmotionWidget()
{
- m_bmCapture->stopPreview();
+ if (m_bmCapture)
+ m_bmCapture->stopPreview();
}
void StopmotionWidget::slotUpdateOverlayEffect(QAction *act)
delete m_bmCapture;
m_layout->removeWidget(m_frame_preview);
if (data == "v4l") {
+#ifndef Q_WS_MAC
m_bmCapture = new V4lCaptureHandler(m_layout);
+#endif
} else {
m_bmCapture = new BmdCaptureHandler(m_layout);
connect(m_bmCapture, SIGNAL(gotMessage(const QString &)), this, SLOT(slotGotHDMIMessage(const QString &)));
{
m_capture.device_list->clear();
+#ifndef Q_WS_MAC
// Video 4 Linux device detection
V4lCaptureHandler v4l(NULL);
for (int i = 0; i < 10; i++) {
}
if (!found) m_capture.device_list->setCurrentItem(m_capture.device_list->topLevelItem(0));
} else m_capture.v4l_status->setText(i18n("No device found, plug your webcam and refresh."));
+#endif
}
void Wizard::slotUpdateCaptureParameters()