qt/LedOK/program/videosplitthread.h

31 lines
604 B
C
Raw Normal View History

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:
2023-04-18 14:14:46 +08:00
VideoSplitThread(int elew, int eleh, int dpw, int sph, QList<int> &, QPointF pos, QByteArray file);
int mEleW, mEleH, mDPW, mSPH;
QList<int> mWidths;
2022-10-27 15:07:45 +08:00
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