summaryrefslogtreecommitdiffstats
path: root/encodemp4job.h
blob: ea0c1fd6632ce87b5a68b7a747487fe4a685107c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef ENCODEMP4JOB_H
#define ENCODEMP4JOB_H

#include "job.h"
#include "video.h"
#include <QTime>
#include <QMap>

class EncodeMP4Job : public Job
{
	Q_OBJECT
public:
	EncodeMP4Job(Video *video, QString encodePath, QString imagePath);
	Video::Jobs jobType() const;
	static QMap<int, QString> titles(const QString &location);
	QMap<int, QString> titles() const;
protected:
	bool executeJob();
	QWidget* gui();
private:
	QString m_encodePath;
	QString m_imagePath;
signals:
	void encodeProgress(int currentTask, int totalTasks, float percent, float currentFps, float avgFps, QTime timeRemaining);
};

#endif // ENCODEMP4JOB_H