diff options
author | John Hoford <hoford@google.com> | 2012-10-10 15:45:47 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-10 15:45:48 -0700 |
commit | 35b33ce66ae3fe0abe628da20b1b03242c98e914 (patch) | |
tree | 0c8f80bed9743d4c72265670635a94121ee1bc99 /src/com/android/gallery3d/filtershow/filters/ImageFilterWBalance.java | |
parent | 9d5c9d1c6642ad2e583737fe4d1f66e3a0489027 (diff) | |
parent | f19e1870a01aab99529fc28a586f5190556d302c (diff) | |
download | android_packages_apps_Snap-35b33ce66ae3fe0abe628da20b1b03242c98e914.tar.gz android_packages_apps_Snap-35b33ce66ae3fe0abe628da20b1b03242c98e914.tar.bz2 android_packages_apps_Snap-35b33ce66ae3fe0abe628da20b1b03242c98e914.zip |
Merge "add White balance & disable UI elements" into gb-ub-photos-arches
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterWBalance.java')
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/ImageFilterWBalance.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterWBalance.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterWBalance.java new file mode 100644 index 000000000..163ed0c65 --- /dev/null +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterWBalance.java @@ -0,0 +1,24 @@ + +package com.android.gallery3d.filtershow.filters; + +import android.graphics.Bitmap; +import android.util.Log; + +public class ImageFilterWBalance extends ImageFilter { + private static final String TAG = "ImageFilterWBalance"; + + public ImageFilterWBalance() { + mName = "WBalance"; + } + + native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, int locX, int locY); + + @Override + public Bitmap apply(Bitmap bitmap, float scaleFactor, boolean highQuality) { + int w = bitmap.getWidth(); + int h = bitmap.getHeight(); + Log.v(TAG,"White Balance Call"); + nativeApplyFilter(bitmap, w, h, -1,-1); + return bitmap; + } +} |