File indexing completed on 2024-12-01 04:28:37

0001 /*
0002     SPDX-FileCopyrightText: 2021 Jean-Baptiste Mardelle <jb@kdenlive.org>
0003 
0004 SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #pragma once
0008 
0009 #include "abstracttask.h"
0010 
0011 class QProcess;
0012 
0013 class SceneSplitTask : public AbstractTask
0014 {
0015 public:
0016     SceneSplitTask(const ObjectId &owner, double threshold, int markersCategory, bool addSubclips, int minDuration, QObject* object);
0017     static void start(QObject* object, bool force = false);
0018 
0019 protected:
0020     void run() override;
0021 
0022 private Q_SLOTS:
0023     void processLogInfo();
0024     void processLogErr();
0025 
0026 private:
0027     double m_threshold;
0028     int m_jobDuration;
0029     int m_markersType;
0030     bool m_subClips;
0031     int m_minInterval;
0032     std::unique_ptr<QProcess> m_jobProcess;
0033     QString m_errorMessage;
0034     QString m_logDetails;
0035     QList<double> m_results;
0036 };