summaryrefslogtreecommitdiff
path: root/indra/integration_tests
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-01-03 17:31:04 -0800
committerMerov Linden <merov@lindenlab.com>2014-01-03 17:31:04 -0800
commit90cbda6db0d075dccc2369a68b02919b40f53cca (patch)
tree5aba103dfb23727ac8f5a101864f752789fe12fd /indra/integration_tests
parent35e30759c82e0fa425e2ee5ba235868a25b44169 (diff)
ACME-1236 : WIP : Add 2 new color correction filters. Add a la Instagram composite filters for testing in llimage_libtest
Diffstat (limited to 'indra/integration_tests')
-rwxr-xr-xindra/integration_tests/llimage_libtest/llimage_libtest.cpp40
1 files changed, 39 insertions, 1 deletions
diff --git a/indra/integration_tests/llimage_libtest/llimage_libtest.cpp b/indra/integration_tests/llimage_libtest/llimage_libtest.cpp
index 6c23a6a866..58d7f53dd1 100755
--- a/indra/integration_tests/llimage_libtest/llimage_libtest.cpp
+++ b/indra/integration_tests/llimage_libtest/llimage_libtest.cpp
@@ -716,7 +716,45 @@ int main(int argc, char** argv)
{
raw_image->filterEqualize((S32)(filter_param));
}
-
+ // Test for some "a la Instagram" filters
+ else if (filter_name == "Lomofi")
+ {
+ raw_image->setVignette(VIGNETTE_MODE_BLEND,4.0,0.0);
+ raw_image->filterLinearize(0.2);
+ }
+ else if (filter_name == "Sutro")
+ {
+ raw_image->filterLinearize(0.2);
+ raw_image->setVignette(VIGNETTE_MODE_FADE,4.0,0.5);
+ raw_image->filterSepia();
+ }
+ else if (filter_name == "Inkwell")
+ {
+ raw_image->filterLinearize(0.0);
+ raw_image->filterGrayScale();
+ }
+ else if (filter_name == "Poprocket")
+ {
+ LLColor4U color = LLColor4U::red;
+ color.setAlpha((U8)(0.2 * 255.0));
+ raw_image->filterLinearize(0.0);
+ raw_image->setVignette(VIGNETTE_MODE_FADE,4.0,0.5);
+ raw_image->filterColorize(color);
+ }
+ else if (filter_name == "Gotham")
+ {
+ raw_image->filterLinearize(0.0);
+ raw_image->filterColorBalance(1.0,1.0,20.0);
+ raw_image->filterGrayScale();
+ }
+ else if (filter_name == "Toaster")
+ {
+ raw_image->filterContrast(0.8);
+ raw_image->setVignette(VIGNETTE_MODE_FADE,4.0,0.5);
+ raw_image->filterBrightness(10);
+ raw_image->filterColorBalance(0.5,1.0,1.0);
+ }
+
// Save file
if (out_file != out_end)
{