Fixed help screen for NVEncC.
This commit is contained in:
parent
762ccde74c
commit
586d1a19c1
@ -32,20 +32,20 @@
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>48</width>
|
||||
<height>40</height>
|
||||
<height>48</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>48</width>
|
||||
<height>40</height>
|
||||
<height>48</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap resource="../res/resources.qrc">:/images/x264.png</pixmap>
|
||||
<pixmap resource="../res/resources.qrc">:/images/help.png</pixmap>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
|
BIN
res/images/help.png
Normal file
BIN
res/images/help.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
@ -56,6 +56,7 @@
|
||||
<file>buttons/x264.png</file>
|
||||
<file>buttons/x265.png</file>
|
||||
<file>images/avisynth.png</file>
|
||||
<file>images/help.png</file>
|
||||
<file>images/loading.gif</file>
|
||||
<file>images/movie.png</file>
|
||||
<file>images/nvencc.png</file>
|
||||
|
@ -63,6 +63,7 @@ public:
|
||||
virtual bool isInputTypeSupported(const int format) const = 0;
|
||||
virtual QString getBinaryPath(const SysinfoModel *sysinfo, const quint32 &encArch, const quint32 &encVariant) const = 0;
|
||||
virtual QStringList getDependencies(const SysinfoModel *sysinfo, const quint32 &encArch, const quint32 &encVariant) const;
|
||||
virtual QString getHelpCommand(void) const = 0;
|
||||
|
||||
//Utilities
|
||||
QString archToString (const quint32 &index) const;
|
||||
|
@ -198,6 +198,11 @@ public:
|
||||
<< QString("%1/toolset/%2/avutil-55.dll" ).arg(sysinfo->getAppPath(), arch)
|
||||
<< QString("%1/toolset/%2/swresample-2.dll").arg(sysinfo->getAppPath(), arch);
|
||||
}
|
||||
|
||||
virtual QString getHelpCommand(void) const
|
||||
{
|
||||
return "--help";
|
||||
}
|
||||
};
|
||||
|
||||
static const NVEncEncoderInfo s_nvencEncoderInfo;
|
||||
|
@ -179,6 +179,11 @@ public:
|
||||
}
|
||||
return QString("%1/toolset/%2/x264_%3_%2.exe").arg(sysinfo->getAppPath(), arch, variant);
|
||||
}
|
||||
|
||||
virtual QString getHelpCommand(void) const
|
||||
{
|
||||
return "--fullhelp";
|
||||
}
|
||||
};
|
||||
|
||||
static const X264EncoderInfo s_x264EncoderInfo;
|
||||
|
@ -175,6 +175,11 @@ public:
|
||||
}
|
||||
return QString("%1/toolset/%2/x265_%3_%2.exe").arg(sysinfo->getAppPath(), arch, variant);
|
||||
}
|
||||
|
||||
virtual QString getHelpCommand(void) const
|
||||
{
|
||||
return "--fullhelp";
|
||||
}
|
||||
};
|
||||
|
||||
static const X265EncoderInfo s_x265EncoderInfo;
|
||||
|
@ -138,7 +138,8 @@ void HelpDialog::finished(void)
|
||||
m_startAgain = false;
|
||||
if(!m_avs2yuv)
|
||||
{
|
||||
m_process->start(EncoderFactory::getEncoderInfo(m_options->encType()).getBinaryPath(m_sysinfo, m_options->encArch(), m_options->encVariant()), QStringList() << "--fullhelp");
|
||||
const AbstractEncoderInfo &encInfo = EncoderFactory::getEncoderInfo(m_options->encType());
|
||||
m_process->start(encInfo.getBinaryPath(m_sysinfo, m_options->encArch(), m_options->encVariant()), QStringList() << encInfo.getHelpCommand());
|
||||
ui->plainTextEdit->appendPlainText("\n--------\n");
|
||||
|
||||
if(!m_process->waitForStarted())
|
||||
|
Loading…
Reference in New Issue
Block a user