Skip to content

Commit

Permalink
vdpau: advanced settings for auto deinterlacing
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Dec 11, 2015
1 parent bae4540 commit ddf71d6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/VDPAU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1987,10 +1987,10 @@ EINTERLACEMETHOD CMixer::GetDeinterlacingMethod(bool log /* = false */)
if (method == VS_INTERLACEMETHOD_AUTO)
{
int deint = -1;
// if (m_config.outHeight >= 720)
// deint = g_advancedSettings.m_videoVDPAUdeintHD;
// else
// deint = g_advancedSettings.m_videoVDPAUdeintSD;
if (m_config.outHeight >= 720)
deint = g_advancedSettings.m_videoVDPAUdeintHD;
else
deint = g_advancedSettings.m_videoVDPAUdeintSD;

if (deint != -1)
{
Expand Down
4 changes: 4 additions & 0 deletions xbmc/settings/AdvancedSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ void CAdvancedSettings::Initialize()
m_videoAutoScaleMaxFps = 30.0f;
m_videoDisableBackgroundDeinterlace = false;
m_videoCaptureUseOcclusionQuery = -1; //-1 is auto detect
m_videoVDPAUdeintHD = -1;
m_videoVDPAUdeintSD = -1;
m_videoVDPAUtelecine = false;
m_videoVDPAUdeintSkipChromaHD = false;
m_useFfmpegVda = true;
Expand Down Expand Up @@ -537,6 +539,8 @@ void CAdvancedSettings::ParseSettingsFile(const std::string &file)
XMLUtils::GetFloat(pElement,"autoscalemaxfps",m_videoAutoScaleMaxFps, 0.0f, 1000.0f);
XMLUtils::GetBoolean(pElement, "disablebackgrounddeinterlace", m_videoDisableBackgroundDeinterlace);
XMLUtils::GetInt(pElement, "useocclusionquery", m_videoCaptureUseOcclusionQuery, -1, 1);
XMLUtils::GetInt(pElement,"vdpauHDdeint",m_videoVDPAUdeintHD);
XMLUtils::GetInt(pElement,"vdpauSDdeint",m_videoVDPAUdeintSD);
XMLUtils::GetBoolean(pElement,"vdpauInvTelecine",m_videoVDPAUtelecine);
XMLUtils::GetBoolean(pElement,"vdpauHDdeintSkipChroma",m_videoVDPAUdeintSkipChromaHD);
XMLUtils::GetBoolean(pElement,"useffmpegvda", m_useFfmpegVda);
Expand Down
2 changes: 2 additions & 0 deletions xbmc/settings/AdvancedSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ class CAdvancedSettings : public ISettingCallback, public ISettingsHandler
std::vector<int> m_seekSteps;
std::string m_videoPPFFmpegDeint;
std::string m_videoPPFFmpegPostProc;
int m_videoVDPAUdeintHD;
int m_videoVDPAUdeintSD;
bool m_videoVDPAUtelecine;
bool m_videoVDPAUdeintSkipChromaHD;
bool m_musicUseTimeSeeking;
Expand Down

0 comments on commit ddf71d6

Please sign in to comment.