This commit is contained in:
Wiesław Šoltés 2018-02-25 12:32:16 +01:00
Родитель c2f6c685a5
Коммит fe1cd54f73
2 изменённых файлов: 26 добавлений и 0 удалений

Просмотреть файл

@ -745,6 +745,30 @@ namespace config
m_DefaultEngine = CEngine(L"Aften", L"libaften.dll"); m_DefaultEngine = CEngine(L"Aften", L"libaften.dll");
} }
void CConfiguration::DefaultPresets()
{
this->m_Presets.clear();
this->m_Presets.emplace_back(this->m_DefaultPreset);
this->nCurrentPreset = 0;
}
void CConfiguration::DefaultEngines()
{
this->m_Engines.clear();
#if defined(_WIN32) & !defined(_WIN64)
this->m_Engines.emplace_back(config::CEngine(L"Aften x86", L"libaftendll_x86\\libaften.dll"));
this->m_Engines.emplace_back(config::CEngine(L"Aften x86 (SSE)", L"libaftendll_x86_SSE\\libaften.dll"));
this->m_Engines.emplace_back(config::CEngine(L"Aften x86 (SSE2)", L"libaftendll_x86_SSE2\\libaften.dll"));
this->m_Engines.emplace_back(config::CEngine(L"Aften x86 (SSE3)", L"libaftendll_x86_SSE3\\libaften.dll"));
#else
this->m_Engines.emplace_back(this->m_DefaultEngine);
this->m_Engines.emplace_back(config::CEngine(L"Aften x64", L"libaftendll_AMD64\\libaften.dll"));
this->m_Engines.emplace_back(config::CEngine(L"Aften x64 (SSE2)", L"libaftendll_AMD64_SSE2\\libaften.dll"));
this->m_Engines.emplace_back(config::CEngine(L"Aften x64 (SSE3)", L"libaftendll_AMD64_SSE3\\libaften.dll"));
#endif
this->nCurrentEngine = 0;
}
CPreset& CConfiguration::GetCurrentPreset() CPreset& CConfiguration::GetCurrentPreset()
{ {
if (this->m_Presets.size() > 0) if (this->m_Presets.size() > 0)

Просмотреть файл

@ -176,6 +176,8 @@ namespace config
std::wstring GetSupportedInputFilesFilter(); std::wstring GetSupportedInputFilesFilter();
void InitDefaultPreset(); void InitDefaultPreset();
void InitDefaultEngine(); void InitDefaultEngine();
void DefaultPresets();
void DefaultEngines();
CPreset& GetCurrentPreset(); CPreset& GetCurrentPreset();
CEngine& GetCurrentEngine(); CEngine& GetCurrentEngine();
void SetEncoderOptions(); void SetEncoderOptions();