2014-02-24 23:13:42 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Simple x264 Launcher
|
2015-01-31 19:56:04 +01:00
|
|
|
// Copyright (C) 2004-2015 LoRd_MuldeR <MuldeR2@GMX.de>
|
2014-02-24 23:13:42 +01:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License along
|
|
|
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
//
|
|
|
|
// http://www.gnu.org/licenses/gpl-2.0.txt
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "source_abstract.h"
|
|
|
|
|
|
|
|
class AvisynthSource : public AbstractSource
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AvisynthSource(JobObject *jobObject, const OptionsModel *options, const SysinfoModel *const sysinfo, const PreferencesModel *const preferences, JobStatus &jobStatus, volatile bool *abort, volatile bool *pause, QSemaphore *semaphorePause, const QString &sourceFile);
|
|
|
|
virtual ~AvisynthSource(void);
|
2014-02-26 16:08:06 +01:00
|
|
|
|
|
|
|
virtual const QString &getName(void);
|
2014-02-24 23:13:42 +01:00
|
|
|
|
2014-02-25 22:44:39 +01:00
|
|
|
virtual bool isSourceAvailable(void);
|
2014-02-26 17:39:36 +01:00
|
|
|
virtual QString printVersion(const unsigned int &revision, const bool &modified);
|
2014-02-24 23:13:42 +01:00
|
|
|
virtual bool isVersionSupported(const unsigned int &revision, const bool &modified);
|
|
|
|
|
|
|
|
virtual void flushProcess(QProcess &processInput);
|
|
|
|
|
|
|
|
protected:
|
2014-02-26 00:55:11 +01:00
|
|
|
virtual void checkVersion_init(QList<QRegExp*> &patterns, QStringList &cmdLine);
|
2014-05-06 00:22:18 +02:00
|
|
|
virtual void checkVersion_parseLine(const QString &line, QList<QRegExp*> &patterns, unsigned int &core, unsigned int &build, bool &modified);
|
2014-02-26 00:55:11 +01:00
|
|
|
virtual bool checkVersion_succeeded(const int &exitCode);
|
2014-02-24 23:13:42 +01:00
|
|
|
|
|
|
|
virtual void checkSourceProperties_init(QList<QRegExp*> &patterns, QStringList &cmdLine);
|
|
|
|
virtual void checkSourceProperties_parseLine(const QString &line, QList<QRegExp*> &patterns, unsigned int &frames, unsigned int &fSizeW, unsigned int &fSizeH, unsigned int &fpsNom, unsigned int &fpsDen);
|
|
|
|
virtual const QString &getBinaryPath() { return m_binaryFile; }
|
|
|
|
virtual void buildCommandLine(QStringList &cmdLine);
|
|
|
|
|
2014-02-26 16:08:06 +01:00
|
|
|
const QString m_sourceName;
|
2014-02-24 23:13:42 +01:00
|
|
|
const QString m_binaryFile;
|
|
|
|
};
|