summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Hoford <hoford@google.com>2012-10-09 18:13:49 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-10-09 18:13:49 -0700
commitf1e5ae54ec658440fe3df7fa480a253d3bbb2643 (patch)
treee562bc20bf59ae23ab8b0b675fa49470f9c6a0ad
parente903e0b39d311c3691561804599dfc189c97f8e0 (diff)
parent945a768725130741205b2ae949facce2de64c568 (diff)
downloadandroid_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.java3
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;
}
}