diff options
author | John Hoford <hoford@google.com> | 2012-10-09 18:05:51 -0700 |
---|---|---|
committer | John Hoford <hoford@google.com> | 2012-10-09 18:05:51 -0700 |
commit | 945a768725130741205b2ae949facce2de64c568 (patch) | |
tree | bea1756a3b745d4328249bf59d13126abdf60f82 /src/com | |
parent | ce41d9869c7f4d747ccc85a6a2e8f285be0197c2 (diff) | |
download | android_packages_apps_Snap-945a768725130741205b2ae949facce2de64c568.tar.gz android_packages_apps_Snap-945a768725130741205b2ae949facce2de64c568.tar.bz2 android_packages_apps_Snap-945a768725130741205b2ae949facce2de64c568.zip |
small fix to red eye code
bug:7234321
Change-Id: I796b11fd3050bf3582749e02f7d8173bc78ea292
Diffstat (limited to 'src/com')
-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; } } |