summaryrefslogtreecommitdiff
path: root/indra/newview/llimagefiltersmanager.h
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-01-09 17:25:01 -0800
committerMerov Linden <merov@lindenlab.com>2014-01-09 17:25:01 -0800
commit7d8e4020750683412c9f56edf847fd830402aa0f (patch)
tree3c1a1b45662cd7af29d548408152b570f3806cf5 /indra/newview/llimagefiltersmanager.h
parentac3becf8d850c76fdd5cb4913cab57033bfb3648 (diff)
ACME-1244 : WIP : Move files around and introduced an llimagefiltersmanager to get the filters
Diffstat (limited to 'indra/newview/llimagefiltersmanager.h')
-rwxr-xr-xindra/newview/llimagefiltersmanager.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/indra/newview/llimagefiltersmanager.h b/indra/newview/llimagefiltersmanager.h
new file mode 100755
index 0000000000..52b4a56b9b
--- /dev/null
+++ b/indra/newview/llimagefiltersmanager.h
@@ -0,0 +1,74 @@
+/**
+ * @file llimagefilters.h
+ * @brief Load and execute image filters. Mostly used for Flickr at the moment.
+ *
+ * $LicenseInfo:firstyear=2000&license=viewerlgpl$
+ * Second Life Viewer Source Code
+ * Copyright (C) 2014, Linden Research, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation;
+ * version 2.1 of the License only.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
+ * $/LicenseInfo$
+ */
+
+#ifndef LL_LLIMAGEFILTERS_H
+#define LL_LLIMAGEFILTERS_H
+
+#include "llsingleton.h"
+#include "llimage.h"
+/*
+typedef enum e_vignette_mode
+{
+ VIGNETTE_MODE_NONE = 0,
+ VIGNETTE_MODE_BLEND = 1,
+ VIGNETTE_MODE_FADE = 2
+} EVignetteMode;
+
+typedef enum e_screen_mode
+{
+ SCREEN_MODE_2DSINE = 0,
+ SCREEN_MODE_LINE = 1
+} EScreenMode;
+*/
+//============================================================================
+// library initialization class
+
+class LLImageFilters : public LLSingleton<LLImageFilters>
+{
+ LOG_CLASS(LLImageFilters);
+public:
+ // getFilters(); get a vector of std::string containing the filter names
+ //LLSD loadFilter(const std::string& filter_name);
+ //void executeFilter(const LLSD& filter_data, LLPointer<LLImageRaw> raw_image);
+
+protected:
+private:
+ void loadAllFilters();
+ void loadFiltersFromDir(const std::string& dir);
+ LLSD loadFilter(const std::string& path);
+
+ static std::string getSysDir();
+
+ friend class LLSingleton<LLImageFilters>;
+ /*virtual*/ void initSingleton();
+ LLImageFilters();
+ ~LLImageFilters();
+
+ // Needed here:
+ // - a map of filter files with name and path
+};
+
+#endif