qt/LedOK/program/videosplitthread.h
2023-04-18 14:14:46 +08:00

30 lines
585 B
C++

#ifndef VIDEOSPLITTHREAD_H
#define VIDEOSPLITTHREAD_H
#include <QThread>
class VideoSplitThread : public QThread {
Q_OBJECT
public:
VideoSplitThread(int elew, int eleh, int dpw, int sph, QList<int> &, QPointF pos, QByteArray file);
int mEleW, mEleH, mDPW, mSPH;
QList<int> mWidths;
QPointF pos;
QByteArray file;
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