#define STOPMOTION_H
#include "ui_stopmotion_ui.h"
-#include "../blackmagic/capture.h"
#include <KUrl>
#include <QLabel>
class MltDeviceCapture;
class MonitorManager;
class VideoPreviewContainer;
+class MltVideoProfile;
class MyLabel : public QLabel
{
MltDeviceCapture *m_captureDevice;
VideoPreviewContainer *m_videoBox;
-
- //CaptureHandler* m_bmCapture;
/** @brief Holds the name of the current sequence.
* Files will be saved in project folder with name: sequence001.png */
MonitorManager *m_manager;
+ /** @brief The monitor is used to control the v4l capture device from the monitormanager class. */
StopmotionMonitor *m_monitor;
+ /** @brief Create the XML playlist. */
+ const QString createProducer(MltVideoProfile profile, const QString &service, const QString &resource);
+
+ /** @brief A new frame arrived, reload overlay. */
+ void reloadOverlay();
-#ifdef QIMAGEBLITZ
+ /** @brief Holds the index of the effect to be applied to the video feed. */
int m_effectIndex;
-#endif
+
public slots:
/** @brief Display the live feed from capture device.
void slotPrepareThumbs();
/** @brief Called when user switches the video capture backend. */
- void slotUpdateHandler();
+ void slotUpdateDeviceHandler();
/** @brief Show / hide sequence thumbnails. */
void slotShowThumbs(bool show);
void slotConfigure();
/** @brief Prepare to crete thumb for newly captured frame. */
- void slotNewThumb(const QString path);
+ void slotNewThumb(const QString &path);
/** @brief Set the effect to be applied to overlay frame. */
void slotUpdateOverlayEffect(QAction* act);
/** @brief Enable / disable frame analysis (in color scopes). */
void slotSwitchAnalyse(bool isOn);
+
+ /** @brief Enable / disable horizontal mirror effect. */
+ void slotSwitchMirror(bool isOn);
/** @brief Send a notification a few seconds before capturing. */
void slotPreNotify();
signals:
/** @brief Ask to add sequence to current project. */
- void addOrUpdateSequence(const QString);
+ void addOrUpdateSequence(const QString &);
void doCreateThumbs(QImage, int);
void gotFrame(QImage);