summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/imageprocessor/FrameProcessor.java
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2019-11-16 02:52:13 -0800
committerLinux Build Service Account <lnxbuild@localhost>2019-11-16 02:52:13 -0800
commit4c363f83c0bb3a88639d736757ecb0ca49caca6c (patch)
tree6b5d250f095748fdee0a835c7fd877a2193759c6 /src/com/android/camera/imageprocessor/FrameProcessor.java
parentadf5d41ce1b6a0d69b7b0a1ef2b22e9d2a35deb3 (diff)
parentf3b7cacf2b53b3239fc29ffddc2028be6dba89a2 (diff)
downloadandroid_packages_apps_Snap-4c363f83c0bb3a88639d736757ecb0ca49caca6c.tar.gz
android_packages_apps_Snap-4c363f83c0bb3a88639d736757ecb0ca49caca6c.tar.bz2
android_packages_apps_Snap-4c363f83c0bb3a88639d736757ecb0ca49caca6c.zip
Merge f3b7cacf2b53b3239fc29ffddc2028be6dba89a2 on remote branch
Change-Id: I082200d89429742edeb5ad05a0603c4a09c6db7c
Diffstat (limited to 'src/com/android/camera/imageprocessor/FrameProcessor.java')
-rwxr-xr-xsrc/com/android/camera/imageprocessor/FrameProcessor.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/com/android/camera/imageprocessor/FrameProcessor.java b/src/com/android/camera/imageprocessor/FrameProcessor.java
index 6397229f0..cd1a5f8a2 100755
--- a/src/com/android/camera/imageprocessor/FrameProcessor.java
+++ b/src/com/android/camera/imageprocessor/FrameProcessor.java
@@ -81,8 +81,6 @@ public class FrameProcessor {
private ListeningTask mListeningTask;
private RenderScript mRs;
private Activity mActivity;
- ScriptC_YuvToRgb mRsYuvToRGB;
- ScriptC_rotator mRsRotator;
private Size mSize;
private Object mAllocationLock = new Object();
private boolean mIsAllocationEverUsed;
@@ -108,8 +106,6 @@ public class FrameProcessor {
mFinalFilters = new ArrayList<ImageFilter>();
mRs = RenderScript.create(mActivity);
- mRsYuvToRGB = new ScriptC_YuvToRgb(mRs);
- mRsRotator = new ScriptC_rotator(mRs);
}
private void init(Size previewDim) {
@@ -158,11 +154,6 @@ public class FrameProcessor {
Type.Builder nv21TypeBuilder = new Type.Builder(mRs, Element.U8(mRs));
nv21TypeBuilder.setX(width * height * 3 / 2);
mProcessAllocation = Allocation.createTyped(mRs, nv21TypeBuilder.create(), Allocation.USAGE_SCRIPT);
- mRsRotator.set_gIn(mInputAllocation);
- mRsRotator.set_gOut(mProcessAllocation);
- mRsRotator.set_width(width);
- mRsRotator.set_height(height);
- mRsRotator.set_pad(stridePad);
int degree = 90;
if(mModule.getMainCameraCharacteristics() != null) {
degree = mModule.getMainCameraCharacteristics().
@@ -171,10 +162,6 @@ public class FrameProcessor {
degree = Math.abs(degree - 90);
}
}
- mRsRotator.set_degree(degree);
- mRsYuvToRGB.set_gIn(mProcessAllocation);
- mRsYuvToRGB.set_width(height);
- mRsYuvToRGB.set_height(width);
}
public ArrayList<ImageFilter> getFrameFilters() {
@@ -491,8 +478,6 @@ public class FrameProcessor {
createAllocation(stride, height, stride - width);
}
mInputAllocation.copyFrom(yvuBytes);
- mRsRotator.forEach_rotate90andMerge(mInputAllocation);
- mRsYuvToRGB.forEach_nv21ToRgb(mOutputAllocation);
mOutputAllocation.ioSend();
if (mVideoOutputAllocation != null) {
mVideoOutputAllocation.copyFrom(mOutputAllocation);