summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/imageprocessor/FrameProcessor.java
diff options
context:
space:
mode:
authorWeijie Wang <weijiew@codeaurora.org>2017-09-05 10:42:58 +0800
committerWeijie Wang <weijiew@codeaurora.org>2017-09-05 11:02:23 +0800
commitb59cf61c82d6c4af43a9f76a101b29f2a8b5ac17 (patch)
tree02dde6e1d3d923baf4feb2074f8e49c1f4141207 /src/com/android/camera/imageprocessor/FrameProcessor.java
parent454d5b45b6b08e9213dc590fa0ebd084b50408fe (diff)
downloadandroid_packages_apps_Snap-b59cf61c82d6c4af43a9f76a101b29f2a8b5ac17.tar.gz
android_packages_apps_Snap-b59cf61c82d6c4af43a9f76a101b29f2a8b5ac17.tar.bz2
android_packages_apps_Snap-b59cf61c82d6c4af43a9f76a101b29f2a8b5ac17.zip
SnapdragonCamera: Refactor
1. Add some logs 2. Change the layout of beautify seekbar 3. Add attribute android:visibleToInstantApps="true" for CTS 4. keep capturing until AeState becomes right on chrommaflash mode Change-Id: I295d5d6f42250254d613123a7d58f7f7fb0e7f3d
Diffstat (limited to 'src/com/android/camera/imageprocessor/FrameProcessor.java')
-rw-r--r--src/com/android/camera/imageprocessor/FrameProcessor.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/com/android/camera/imageprocessor/FrameProcessor.java b/src/com/android/camera/imageprocessor/FrameProcessor.java
index b1b415acd..6b0c97732 100644
--- a/src/com/android/camera/imageprocessor/FrameProcessor.java
+++ b/src/com/android/camera/imageprocessor/FrameProcessor.java
@@ -401,7 +401,11 @@ public class FrameProcessor {
}
} else {
filter.init(mSize.getWidth(), mSize.getHeight(), stride, stride);
- filter.addImage(bY, bVU, 0, new Boolean(true));
+ if (filter instanceof BeautificationFilter) {
+ filter.addImage(bY, bVU, 0, new Boolean(false));
+ } else {
+ filter.addImage(bY, bVU, 0, new Boolean(true));
+ }
needToFeedSurface = true;
}
bY.rewind();
@@ -485,7 +489,11 @@ public class FrameProcessor {
mBY.rewind();
mBVU.rewind();
mFilter.init(mWidth, mHeight, mStride, mStride);
- mFilter.addImage(mBY, mBVU, 0, new Boolean(true));
+ if (mFilter instanceof BeautificationFilter) {
+ mFilter.addImage(mBY, mBVU, 0, new Boolean(false));
+ } else {
+ mFilter.addImage(mBY, mBVU, 0, new Boolean(true));
+ }
mMutureLock.release();
} catch (InterruptedException e) {
}