diff --git a/indra/newview/app_settings/filters/Heatwave.xml b/indra/integration_tests/llimage_libtest/filters/heatwave.xml
similarity index 100%
rename from indra/newview/app_settings/filters/Heatwave.xml
rename to indra/integration_tests/llimage_libtest/filters/heatwave.xml
diff --git a/indra/newview/app_settings/filters/JulesVerne.xml b/indra/integration_tests/llimage_libtest/filters/julesverne.xml
similarity index 100%
rename from indra/newview/app_settings/filters/JulesVerne.xml
rename to indra/integration_tests/llimage_libtest/filters/julesverne.xml
diff --git a/indra/integration_tests/llimage_libtest/filters/lensflare.xml b/indra/integration_tests/llimage_libtest/filters/lensflare.xml
index ec8afc8daa..0b5af9c82b 100644
--- a/indra/integration_tests/llimage_libtest/filters/lensflare.xml
+++ b/indra/integration_tests/llimage_libtest/filters/lensflare.xml
@@ -7,43 +7,36 @@
1.0
1.0
-
- brighten
- 0.1
- 1.0
- 1.0
- 1.0
-
stencil
- vignette
+ gradient
add
+ 1.0
0.0
- 0.4
- -0.5
- 0.5
- 0.15
- 20.0
+ -1.0
+ 1.0
+ 1.0
+ -1.0
colorize
1.0
1.0
1.0
- 0.15
- 0.15
- 0.15
+ 0.1
+ 0.1
+ 0.0
stencil
vignette
add
0.0
- 0.4
- -0.5
- 0.5
- 0.20
- 20.0
+ 1.0
+ -1.0
+ 1.0
+ 1.5
+ 5.0
colorize
@@ -59,11 +52,11 @@
vignette
add
0.0
- 0.5
- -0.7
- 0.7
- 0.10
- 20.0
+ 1.0
+ -1.0
+ 1.0
+ 1.0
+ 5.0
colorize
diff --git a/indra/newview/app_settings/filters/Overcast.xml b/indra/integration_tests/llimage_libtest/filters/overcast.xml
similarity index 100%
rename from indra/newview/app_settings/filters/Overcast.xml
rename to indra/integration_tests/llimage_libtest/filters/overcast.xml
diff --git a/indra/llimage/llimagefilter.cpp b/indra/llimage/llimagefilter.cpp
index 3d0c488768..6e9ea2f948 100755
--- a/indra/llimage/llimagefilter.cpp
+++ b/indra/llimage/llimagefilter.cpp
@@ -55,6 +55,7 @@ LLImageFilter::LLImageFilter(const std::string& file_path) :
{
// Load filter description from file
llifstream filter_xml(file_path);
+ llinfos << "Merov : load filter : " << file_path << llendl;
if (filter_xml.is_open())
{
// Load and parse the file
@@ -88,6 +89,7 @@ void LLImageFilter::executeFilter(LLPointer raw_image)
{
mImage = raw_image;
+ llinfos << "Merov : execute filter on image size " << mImage->getWidth() << "x" << mImage->getHeight() << llendl;
//std::cout << "Filter : size = " << mFilterData.size() << std::endl;
for (S32 i = 0; i < mFilterData.size(); ++i)
{
diff --git a/indra/newview/app_settings/filters/Autocontrast.xml b/indra/newview/app_settings/filters/Autocontrast.xml
new file mode 100755
index 0000000000..ec3d7561bd
--- /dev/null
+++ b/indra/newview/app_settings/filters/Autocontrast.xml
@@ -0,0 +1,11 @@
+
+
+
+ linearize
+ 0.01
+ 1.0
+ 1.0
+ 1.0
+
+
+
diff --git a/indra/newview/app_settings/filters/LensFlare.xml b/indra/newview/app_settings/filters/LensFlare.xml
new file mode 100644
index 0000000000..0b5af9c82b
--- /dev/null
+++ b/indra/newview/app_settings/filters/LensFlare.xml
@@ -0,0 +1,131 @@
+
+
+
+ linearize
+ 0.01
+ 1.0
+ 1.0
+ 1.0
+
+
+ stencil
+ gradient
+ add
+ 1.0
+ 0.0
+ -1.0
+ 1.0
+ 1.0
+ -1.0
+
+
+ colorize
+ 1.0
+ 1.0
+ 1.0
+ 0.1
+ 0.1
+ 0.0
+
+
+ stencil
+ vignette
+ add
+ 0.0
+ 1.0
+ -1.0
+ 1.0
+ 1.5
+ 5.0
+
+
+ colorize
+ 1.0
+ 1.0
+ 1.0
+ 0.6
+ 0.0
+ 0.0
+
+
+ stencil
+ vignette
+ add
+ 0.0
+ 1.0
+ -1.0
+ 1.0
+ 1.0
+ 5.0
+
+
+ colorize
+ 1.0
+ 1.0
+ 1.0
+ 0.6
+ 0.6
+ 0.0
+
+
+ stencil
+ vignette
+ add
+ 0.0
+ 0.5
+ 0.5
+ -0.5
+ 0.10
+ 20.0
+
+
+ colorize
+ 1.0
+ 1.0
+ 1.0
+ 0.7
+ 0.0
+ 0.0
+
+
+ stencil
+ vignette
+ add
+ 0.0
+ 0.5
+ 0.6
+ -0.6
+ 0.05
+ 20.0
+
+
+ colorize
+ 1.0
+ 1.0
+ 1.0
+ 0.7
+ 0.0
+ 0.0
+
+
+ stencil
+ vignette
+ add
+ 0.0
+ 0.5
+ 0.4
+ -0.4
+ 0.025
+ 20.0
+
+
+ colorize
+ 1.0
+ 1.0
+ 1.0
+ 0.7
+ 0.0
+ 0.0
+
+
+
diff --git a/indra/newview/app_settings/filters/Miniature.xml b/indra/newview/app_settings/filters/Miniature.xml
new file mode 100755
index 0000000000..9aa8a87c6f
--- /dev/null
+++ b/indra/newview/app_settings/filters/Miniature.xml
@@ -0,0 +1,118 @@
+
+
+
+ linearize
+ 0.02
+ 1.0
+ 1.0
+ 1.0
+
+
+ contrast
+ 1.02
+ 1.0
+ 1.0
+ 1.0
+
+
+ saturate
+ 1.2
+
+
+ stencil
+ vignette
+ blend
+ 0.0
+ 0.25
+ 0.0
+ 0.0
+ 0.25
+ 2.0
+
+
+ sharpen
+
+
+ stencil
+ gradient
+ blend
+ 1.0
+ 0.0
+ 0.0
+ -1.0
+ 0.0
+ -0.25
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ stencil
+ gradient
+ blend
+ 1.0
+ 0.0
+ 0.0
+ 1.0
+ 0.0
+ 0.25
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+ blur
+
+
+
\ No newline at end of file
diff --git a/indra/newview/app_settings/filters/Spotlight.xml b/indra/newview/app_settings/filters/Spotlight.xml
index 044b2c0b3a..0e2e0ad68c 100644
--- a/indra/newview/app_settings/filters/Spotlight.xml
+++ b/indra/newview/app_settings/filters/Spotlight.xml
@@ -2,47 +2,43 @@
linearize
- 0.1
+ 0.0
1.0
1.0
1.0
-
- contrast
- 0.8
- 1.0
- 1.0
- 1.0
-
-
- saturate
- 1.5
-
stencil
vignette
- fade
- 0.75
- 1.0
+ add
+ 0.0
+ 0.4
0.0
0.0
1.0
- 5.0
-
-
- saturate
- 0.8
+ 2.0
contrast
- 1.1
+ 1.0
1.0
1.0
1.0
- brighten
- 0.1
+ stencil
+ vignette
+ add
+ -0.8
+ 0.0
+ 0.0
+ 0.0
+ 1.0
+ 2.0
+
+
+ contrast
+ 1.0
1.0
1.0
1.0
diff --git a/indra/newview/app_settings/filters/Toycamera.xml b/indra/newview/app_settings/filters/Toycamera.xml
new file mode 100755
index 0000000000..4e76f6b2fb
--- /dev/null
+++ b/indra/newview/app_settings/filters/Toycamera.xml
@@ -0,0 +1,46 @@
+
+
+
+ stencil
+ vignette
+ fade
+ 0.0
+ 1.0
+ 0.0
+ 0.0
+ 1.2
+ 3.0
+
+
+ linearize
+ 0.05
+ 1.0
+ 1.0
+ 1.0
+
+
+ grayscale
+
+
+ contrast
+ 1.1
+ 1.0
+ 1.0
+ 1.0
+
+
+ stencil
+ vignette
+ blend
+ 1.0
+ 0.0
+ 0.0
+ 0.0
+ 0.5
+ 2.0
+
+
+ blur
+
+
+
\ No newline at end of file
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index afc4ac617c..43c82c3005 100755
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -11268,6 +11268,17 @@
Value
0
+ SnapshotFiltersEnabled
+
SnapshotFormat