///////////////////////////////////////////////////////////////////////////////
// Simple x264 Launcher
-// Copyright (C) 2004-2015 LoRd_MuldeR <MuldeR2@GMX.de>
+// Copyright (C) 2004-2018 LoRd_MuldeR <MuldeR2@GMX.de>
//
// 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
//
// 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.
+// 51 Franklin Street, Fifth Floory, Boston, MA 02110-1301 USA.
//
// http://www.gnu.org/licenses/gpl-2.0.txt
///////////////////////////////////////////////////////////////////////////////
#include "model_options.h"
#include "encoder_x264.h"
#include "encoder_x265.h"
+#include "encoder_nvencc.h"
//MUtils
#include <MUtils/Exception.h>
case OptionsModel::EncType_X265:
encoder = new X265Encoder(jobObject, options, sysinfo, preferences, jobStatus, abort, pause, semaphorePause, sourceFile, outputFile);
break;
+ case OptionsModel::EncType_NVEnc:
+ encoder = new NVEncEncoder(jobObject, options, sysinfo, preferences, jobStatus, abort, pause, semaphorePause, sourceFile, outputFile);
+ break;
default:
MUTILS_THROW("Unknown encoder type encountered!");
}
return encoder;
}
-const AbstractEncoderInfo& EncoderFactory::getEncoderInfo(const int &encoderType)
+const AbstractEncoderInfo& EncoderFactory::getEncoderInfo(const OptionsModel::EncType &encoderType)
{
switch(encoderType)
{
case OptionsModel::EncType_X264:
- return X264Encoder::getEncoderInfo();
+ return X264Encoder::encoderInfo();
case OptionsModel::EncType_X265:
- return X265Encoder::getEncoderInfo();
+ return X265Encoder::encoderInfo();
+ case OptionsModel::EncType_NVEnc:
+ return NVEncEncoder::encoderInfo();
default:
MUTILS_THROW("Unknown encoder type encountered!");
}