summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2012-10-23 11:26:38 -0700
committernicolasroard <nicolasroard@google.com>2012-10-23 11:26:38 -0700
commit983f612476c394dffcd2b73869ed3c92f531e5e1 (patch)
treea6b23f1cb5eb9bc55180ca12b505bf7006162a5b /src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java
parent3a6614628f8d33f8ce881d85355cebf2b9523252 (diff)
downloadandroid_packages_apps_Snap-983f612476c394dffcd2b73869ed3c92f531e5e1.tar.gz
android_packages_apps_Snap-983f612476c394dffcd2b73869ed3c92f531e5e1.tar.bz2
android_packages_apps_Snap-983f612476c394dffcd2b73869ed3c92f531e5e1.zip
Add copyright notices
bug:7387634 Change-Id: Iaac0b55c9857f609312b78a613d074d323174ea1
Diffstat (limited to 'src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java')
-rw-r--r--src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java
index 00a18091b..c77de330f 100644
--- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java
+++ b/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java
@@ -1,10 +1,22 @@
+/*
+ * Copyright (C) 2012 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package com.android.gallery3d.filtershow.filters;
import android.graphics.Bitmap;
-import android.util.Log;
-
-import java.util.Arrays;
public class ImageFilterRedEye extends ImageFilter {
private static final String TAG = "ImageFilterRedEye";
@@ -24,6 +36,7 @@ public class ImageFilterRedEye extends ImageFilter {
native protected void nativeApplyFilter(Bitmap bitmap, int w, int h, short []matrix);
+ @Override
public Bitmap apply(Bitmap bitmap, float scaleFactor, boolean highQuality) {
int w = bitmap.getWidth();
int h = bitmap.getHeight();