2022-10-27 15:07:45 +08:00
|
|
|
#ifndef VIDEOSPLITTHREAD_H
|
|
|
|
#define VIDEOSPLITTHREAD_H
|
|
|
|
|
|
|
|
#include <QThread>
|
2023-04-21 11:06:47 +08:00
|
|
|
#include <QPointF>
|
2022-10-27 15:07:45 +08:00
|
|
|
|
|
|
|
class VideoSplitThread : public QThread {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2024-02-21 18:08:50 +08:00
|
|
|
VideoSplitThread(int elew, int eleh, int maxLen, int sph, std::vector<int> &, bool, QPointF pos, QByteArray file);
|
|
|
|
int mEleW, mEleH, maxLen, mSPH;
|
|
|
|
std::vector<int> mWidths;
|
2022-10-27 15:07:45 +08:00
|
|
|
QPointF pos;
|
|
|
|
QByteArray file;
|
2024-02-21 18:08:50 +08:00
|
|
|
bool isVer;
|
2022-10-27 15:07:45 +08:00
|
|
|
protected:
|
|
|
|
void run();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void emErr(QString);
|
|
|
|
void emProgress(int);
|
|
|
|
public slots:
|
|
|
|
void stop() {
|
|
|
|
stoped = true;
|
|
|
|
}
|
|
|
|
private:
|
|
|
|
int lastPro{0};
|
|
|
|
std::atomic_bool stoped{false};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // VIDEOSPLITTHREAD_H
|