- /** @brief Widget layout holding video and frame preview. */
- QVBoxLayout *m_layout;
-
- /** @brief Current project folder (where the captured frames will be saved). */
- KUrl m_projectFolder;
-
- /** @brief Capture holder that will handle all video operation. */
- CaptureHandler *m_bmCapture;
-
- /** @brief Holds the name of the current sequence.
- * Files will be saved in project folder with name: sequence001.png */
- QString m_sequenceName;
-
- /** @brief Holds the frame number of the current sequence. */
- int m_sequenceFrame;
-
- QAction *m_captureAction;
-
- /** @brief Holds the index of the frame to be displayed in the frame preview mode. */
- int m_animatedIndex;
-
- /** @brief Find all stopmotion sequences in current project folder. */
- void parseExistingSequences();
-
- /** @brief Select a frame in the list. */
- void selectFrame(int ix);
-
- /** @brief This widget will hold the frame preview. */
- MyLabel *m_frame_preview;
-
- /** @brief The list of files in the sequence to create thumbnails. */
- QStringList m_filesList;
-
- /** @brief The index of currently created thumbnail. */
- int m_currentIndex;
-
- /** @brief Holds the state of the threaded thumbnail generation. */
- QFuture<void> m_future;
-
- /** @brief Get the frame number ix. */
- QListWidgetItem *getFrameFromIndex(int ix);
-
+ /** @brief Current project folder (where the captured frames will be saved). */
+ KUrl m_projectFolder;
+
+ /** @brief Capture holder that will handle all video operation. */
+ MltDeviceCapture *m_captureDevice;
+
+ /** @brief Holds the name of the current sequence.
+ * Files will be saved in project folder with name: sequence001.png */
+ QString m_sequenceName;
+
+ /** @brief Holds the frame number of the current sequence. */
+ int m_sequenceFrame;
+
+ QAction* m_captureAction;
+
+ /** @brief Holds the index of the frame to be displayed in the frame preview mode. */
+ int m_animatedIndex;
+
+ /** @brief Find all stopmotion sequences in current project folder. */
+ void parseExistingSequences();
+
+ /** @brief Select a frame in the list. */
+ void selectFrame(int ix);
+
+ /** @brief This widget will hold the frame preview. */
+ MyLabel* m_frame_preview;
+
+ /** @brief The list of files in the sequence to create thumbnails. */
+ QStringList m_filesList;
+
+ /** @brief Holds the state of the threaded thumbnail generation. */
+ QFuture<void> m_future;
+
+ /** @brief Get the frame number ix. */
+ QListWidgetItem* getFrameFromIndex(int ix);
+
+ /** @brief The action triggering display of last frame over current live video feed. */
+ QAction* m_showOverlay;
+
+ /** @brief The list of all frames path. */
+ QStringList m_animationList;
+
+ /** @brief Tells if we are in animation (playback) mode. */
+ bool m_animate;
+
+ /** @brief Timer for interval capture. */
+ QTimer m_intervalTimer;
+
+ 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(const MltVideoProfile &profile, const QString &service, const QString &resource);
+
+ /** @brief A new frame arrived, reload overlay. */
+ void reloadOverlay();
+
+ /** @brief Holds the index of the effect to be applied to the video feed. */
+ int m_effectIndex;
+
+
+public slots:
+ /** @brief Display the live feed from capture device.
+ @param isOn enable or disable the feature */
+ void slotLive(bool isOn = true);
+ void slotStopCapture();
+