OSDN Git Service

small fix to red eye code
authorJohn Hoford <hoford@google.com>
Wed, 10 Oct 2012 01:05:51 +0000 (18:05 -0700)
committerJohn Hoford <hoford@google.com>
Wed, 10 Oct 2012 01:05:51 +0000 (18:05 -0700)
bug:7234321
Change-Id: I796b11fd3050bf3582749e02f7d8173bc78ea292

src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java

index c990c18..00a1809 100644 (file)
@@ -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;
     }
 }