diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2018-10-06 07:18:04 -0700 |
|---|---|---|
| committer | Linux Build Service Account <lnxbuild@localhost> | 2018-10-06 07:18:04 -0700 |
| commit | 4feab910ab9efada7a911a8638856c55ee09b9ca (patch) | |
| tree | 1fd24a47ee24950afa47b60839ad044b33a9bc06 /src/com/android/camera/imageprocessor/ZSLQueue.java | |
| parent | c6cde759cd7d38d28b3b2e75a36161b041cd6e9c (diff) | |
| parent | 9530e578cb7c92f8abd1dbf921113387bfb9b047 (diff) | |
Change-Id: I8cb5d9eee763cfc5df1a95b1148cd054ffda62eb
Diffstat (limited to 'src/com/android/camera/imageprocessor/ZSLQueue.java')
| -rwxr-xr-x[-rw-r--r--] | src/com/android/camera/imageprocessor/ZSLQueue.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/android/camera/imageprocessor/ZSLQueue.java b/src/com/android/camera/imageprocessor/ZSLQueue.java index 0509b8fb5..bf29267e3 100644..100755 --- a/src/com/android/camera/imageprocessor/ZSLQueue.java +++ b/src/com/android/camera/imageprocessor/ZSLQueue.java @@ -207,6 +207,19 @@ public class ZSLQueue { } } + public void clear() { + synchronized (mLock) { + for (int i = 0; i < mBuffer.length; i++) { + if (mBuffer[i] != null) { + mBuffer[i].closeImage(); + mBuffer[i].closeMeta(); + } + } + mImageHead = 0; + mMetaHead = 0; + } + } + private boolean checkImageRequirement(TotalCaptureResult captureResult) { if( (captureResult.get(CaptureResult.LENS_STATE) != null && captureResult.get(CaptureResult.LENS_STATE).intValue() == CaptureResult.LENS_STATE_MOVING) |
