} \
while(0)
+static QString MAKE_NAME(const char *baseName, const OptionsModel *options)
+{
+ const QString arch = (options->encArch() == OptionsModel::EncArch_x64) ? "x64" : "x86";
+ const QString vari = (options->encVariant() == OptionsModel::EncVariant_HiBit ) ? "16-Bit" : "8-Bit";
+ return QString("%1, %2, %3").arg(QString::fromLatin1(baseName), arch, vari);
+}
+
// ------------------------------------------------------------
// Constructor & Destructor
// ------------------------------------------------------------
X265Encoder::X265Encoder(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, const QString &outputFile)
:
AbstractEncoder(jobObject, options, sysinfo, preferences, jobStatus, abort, pause, semaphorePause, sourceFile, outputFile),
+ m_encoderName(MAKE_NAME("x265 (H.265/HEVC)", m_options)),
m_binaryFile(ENC_BINARY(sysinfo, options))
{
if(options->encType() != OptionsModel::EncType_X265)
/*Nothing to do here*/
}
+const QString &X265Encoder::getName(void)
+{
+ return m_encoderName;
+}
+
// ------------------------------------------------------------
// Check Version
// ------------------------------------------------------------