diff options
author | John Hoford <hoford@google.com> | 2012-10-09 18:13:49 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-10-09 18:13:49 -0700 |
commit | f1e5ae54ec658440fe3df7fa480a253d3bbb2643 (patch) | |
tree | e562bc20bf59ae23ab8b0b675fa49470f9c6a0ad | |
parent | e903e0b39d311c3691561804599dfc189c97f8e0 (diff) | |
parent | 945a768725130741205b2ae949facce2de64c568 (diff) | |
download | android_packages_apps_Snap-f1e5ae54ec658440fe3df7fa480a253d3bbb2643.tar.gz android_packages_apps_Snap-f1e5ae54ec658440fe3df7fa480a253d3bbb2643.tar.bz2 android_packages_apps_Snap-f1e5ae54ec658440fe3df7fa480a253d3bbb2643.zip |
am 1b72a2f1: small fix to red eye code
* commit '1b72a2f1124610b8050dbbdff9f1bb548199fd2e':
small fix to red eye code
-rw-r--r-- | src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java index c990c1870..00a18091b 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java @@ -24,7 +24,7 @@ public class ImageFilterRedEye extends ImageFilter { native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, short []matrix); - public void apply(Bitmap bitmap) { + public Bitmap apply(Bitmap bitmap, float scaleFactor, boolean highQuality) { int w = bitmap.getWidth(); int h = bitmap.getHeight(); float p = mParameter; @@ -38,5 +38,6 @@ public class ImageFilterRedEye extends ImageFilter { (short) (2*sizex),(short) (2*sizey)}; nativeApplyFilter(bitmap, w, h, rect); + return bitmap; } } |