Initial import of the new image editor

bug:7165910
Change-Id: I756d6594f5bddd233772c979410362ca22e232a3
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterSaturated.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterSaturated.java
new file mode 100644
index 0000000..7c03be6
--- /dev/null
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterSaturated.java
@@ -0,0 +1,25 @@
+
+package com.android.gallery3d.filtershow.filters;
+
+import android.graphics.Bitmap;
+
+public class ImageFilterSaturated extends ImageFilter {
+
+    public String name() {
+        return "Saturated";
+    }
+
+    public ImageFilter copy() {
+        return new ImageFilterSaturated();
+    }
+
+    native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, float saturation);
+
+    public void apply(Bitmap bitmap) {
+        int w = bitmap.getWidth();
+        int h = bitmap.getHeight();
+        int p = 100;
+        float value = 2 * p / 100.0f;
+        nativeApplyFilter(bitmap, w, h, value);
+    }
+}