Index: skin/Project Mayhem III/PAL/Home.xml
===================================================================
--- skin/Project Mayhem III/PAL/Home.xml (revision 30588)
+++ skin/Project Mayhem III/PAL/Home.xml (working copy)
@@ -680,6 +680,7 @@
96
9
5
+ XBMC.System.PWMControl(#FF0000)
home-focus.gif
-
30
@@ -705,6 +706,7 @@
96
2
3
+ XBMC.System.PWMControl(#00FF00)
home-focus.gif
-
30
@@ -730,6 +732,7 @@
96
5
4
+ XBMC.System.PWMControl(#FFFFFF,#000000,#000000,#000000,firework,500)
home-focus.gif
-
30
@@ -755,6 +758,7 @@
96
3
7
+ XBMC.System.PWMControl(#FF00FF)
home-focus.gif
-
30
@@ -780,6 +784,7 @@
96
4
9
+ XBMC.System.PWMControl(#FFFF00)
home-focus.gif
-
30
@@ -820,6 +825,7 @@
6
10
5
+ XBMC.System.PWMControl(#00FFFF)
home-focus.gif
-
20
@@ -838,6 +844,7 @@
96
10
5
+ XBMC.System.PWMControl(#FFFFFF)
home-focus.gif
-
20
Index: userdata/AdvancedSettings.xml
===================================================================
--- userdata/AdvancedSettings.xml (revision 0)
+++ userdata/AdvancedSettings.xml (revision 0)
@@ -0,0 +1,13 @@
+
+
+ true
+ 30
+ 1
+ 1.2
+ 1.0
+ 0.8
+ 2
+ 50
+ 20
+
+
Index: xbmc/AdvancedSettings.cpp
===================================================================
--- xbmc/AdvancedSettings.cpp (revision 30588)
+++ xbmc/AdvancedSettings.cpp (working copy)
@@ -217,6 +217,22 @@
m_bAutoFatxLimit = true;
m_bgInfoLoaderMaxThreads = 1;
+
+ m_ambiLight = false;
+ m_ambiLightSpaceBetweenPixels = 30;
+ m_ambiLightFloatingAverageFrames = 1;
+ m_ambiLightMinRGB = 2;
+ m_ambiLightMaxRGB = 255;
+ m_ambiLightMode = "linear";
+ m_ambiLightPosition = "all";
+ m_ambiLightGammaR = 1.2f;
+ m_ambiLightGammaG = 1.0f;
+ m_ambiLightGammaB = 0.8f;
+ m_ambiLightIntensityR = 1.0f;
+ m_ambiLightIntensityG = 1.0f;
+ m_ambiLightIntensityB = 1.0f;
+ m_ambiLightFilterThreshold = 50;
+ m_ambiLightDarknessLimit = 20;
}
bool CAdvancedSettings::Load()
@@ -432,6 +448,26 @@
XMLUtils::GetBoolean(pElement, "verbose", m_bPythonVerbose);
}
+ pElement = pRootElement->FirstChildElement("ambilight");
+ if (pElement)
+ {
+ XMLUtils::GetBoolean(pElement, "enabled", m_ambiLight);
+ XMLUtils::GetInt(pElement, "spaceBetweenPixels", m_ambiLightSpaceBetweenPixels);
+ XMLUtils::GetInt(pElement, "floatingAverageFrames", m_ambiLightFloatingAverageFrames);
+ XMLUtils::GetInt(pElement, "minRGB", m_ambiLightMinRGB);
+ XMLUtils::GetInt(pElement, "maxRGB", m_ambiLightMaxRGB);
+ XMLUtils::GetString(pElement, "mode", m_ambiLightMode);
+ XMLUtils::GetString(pElement, "position", m_ambiLightPosition);
+ XMLUtils::GetFloat(pElement, "gammaR", m_ambiLightGammaR);
+ XMLUtils::GetFloat(pElement, "gammaG", m_ambiLightGammaG);
+ XMLUtils::GetFloat(pElement, "gammaB", m_ambiLightGammaB);
+ XMLUtils::GetFloat(pElement, "intensityR", m_ambiLightIntensityR);
+ XMLUtils::GetFloat(pElement, "intensityG", m_ambiLightIntensityG);
+ XMLUtils::GetFloat(pElement, "intensityB", m_ambiLightIntensityB);
+ XMLUtils::GetInt(pElement, "filterThreshold", m_ambiLightFilterThreshold);
+ XMLUtils::GetInt(pElement, "darknessLimit", m_ambiLightDarknessLimit);
+ }
+
XMLUtils::GetBoolean(pRootElement, "autofatxlimit", m_bAutoFatxLimit);
XMLUtils::GetString(pRootElement, "cddbaddress", m_cddbAddress);
@@ -487,7 +523,7 @@
XMLUtils::GetInt(pElement, "commbreakautowait", m_iEdlCommBreakAutowait, 0, 10); // Between 0 and 10 seconds
XMLUtils::GetInt(pElement, "commbreakautowind", m_iEdlCommBreakAutowind, 0, 10); // Between 0 and 10 seconds
}
-
+
// picture exclude regexps
TiXmlElement* pPictureExcludes = pRootElement->FirstChildElement("pictureexcludes");
if (pPictureExcludes)
Index: xbmc/AdvancedSettings.h
===================================================================
--- xbmc/AdvancedSettings.h (revision 30588)
+++ xbmc/AdvancedSettings.h (working copy)
@@ -218,6 +218,22 @@
bool m_bPythonVerbose;
bool m_bAutoFatxLimit;
int m_bgInfoLoaderMaxThreads;
+
+ bool m_ambiLight;
+ int m_ambiLightSpaceBetweenPixels;
+ int m_ambiLightFloatingAverageFrames;
+ int m_ambiLightMinRGB;
+ int m_ambiLightMaxRGB;
+ CStdString m_ambiLightMode;
+ CStdString m_ambiLightPosition;
+ float m_ambiLightGammaR;
+ float m_ambiLightGammaG;
+ float m_ambiLightGammaB;
+ float m_ambiLightIntensityR;
+ float m_ambiLightIntensityG;
+ float m_ambiLightIntensityB;
+ int m_ambiLightFilterThreshold;
+ int m_ambiLightDarknessLimit;
};
extern CAdvancedSettings g_advancedSettings;