qt/LedOK/program/videosplitthread.h
2024-02-21 18:08:50 +08:00

32 lines
643 B
C++

#ifndef VIDEOSPLITTHREAD_H
#define VIDEOSPLITTHREAD_H
#include <QThread>
#include <QPointF>
class VideoSplitThread : public QThread {
Q_OBJECT
public:
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;
QPointF pos;
QByteArray file;
bool isVer;
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