Skip to content

Commit

Permalink
dxva: add advanced setting for activating hacky hq scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Oct 14, 2014
1 parent 7153a46 commit 85668f9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/cores/VideoRenderers/WinRenderer.cpp
Expand Up @@ -1283,7 +1283,7 @@ bool CWinRenderer::Supports(ESCALINGMETHOD method)
if (method == VS_SCALINGMETHOD_DXVA_HARDWARE ||
method == VS_SCALINGMETHOD_AUTO)
return true;
else
else if (!g_advancedSettings.m_DXVAAllowHqScaling)
return false;
}

Expand Down
2 changes: 2 additions & 0 deletions xbmc/settings/AdvancedSettings.cpp
Expand Up @@ -162,6 +162,7 @@ void CAdvancedSettings::Initialize()
m_DXVACheckCompatibilityPresent = false;
m_DXVAForceProcessorRenderer = true;
m_DXVANoDeintProcForProgressive = false;
m_DXVAAllowHqScaling = false;
m_videoFpsDetect = 1;
m_videoBusyDialogDelay_ms = 500;
m_stagefrightConfig.useAVCcodec = -1;
Expand Down Expand Up @@ -690,6 +691,7 @@ void CAdvancedSettings::ParseSettingsFile(const CStdString &file)

XMLUtils::GetBoolean(pElement,"forcedxvarenderer", m_DXVAForceProcessorRenderer);
XMLUtils::GetBoolean(pElement,"dxvanodeintforprogressive", m_DXVANoDeintProcForProgressive);
XMLUtils::GetBoolean(pElement, "dxvaalowhqscaling", m_DXVAAllowHqScaling);
//0 = disable fps detect, 1 = only detect on timestamps with uniform spacing, 2 detect on all timestamps
XMLUtils::GetInt(pElement, "fpsdetect", m_videoFpsDetect, 0, 2);

Expand Down
1 change: 1 addition & 0 deletions xbmc/settings/AdvancedSettings.h
Expand Up @@ -191,6 +191,7 @@ class CAdvancedSettings : public ISettingCallback, public ISettingsHandler
bool m_DXVACheckCompatibilityPresent;
bool m_DXVAForceProcessorRenderer;
bool m_DXVANoDeintProcForProgressive;
bool m_DXVAAllowHqScaling;
int m_videoFpsDetect;
int m_videoBusyDialogDelay_ms;
StagefrightConfig m_stagefrightConfig;
Expand Down

0 comments on commit 85668f9

Please sign in to comment.