summaryrefslogtreecommitdiffstats
path: root/include/camera
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2015-07-15 16:04:27 -0700
committerEino-Ville Talvala <etalvala@google.com>2015-07-16 14:55:33 -0700
commitb25e3c87724b6147ed1da7c1d6617c39bfce2fbf (patch)
treec0e95e487b2583b8ba87e2ce5505fb74dec9d2d8 /include/camera
parent1bc88814f530bf67e425cfb8cea0f2b8dce3c03f (diff)
downloadframeworks_av-b25e3c87724b6147ed1da7c1d6617c39bfce2fbf.zip
frameworks_av-b25e3c87724b6147ed1da7c1d6617c39bfce2fbf.tar.gz
frameworks_av-b25e3c87724b6147ed1da7c1d6617c39bfce2fbf.tar.bz2
Camera: Add hidden experimental tearDown method.
Bug: 18949148 Change-Id: Ie86ec7d1ec3db54e1154563b2339a208a935f849
Diffstat (limited to 'include/camera')
-rw-r--r--include/camera/camera2/ICameraDeviceUser.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/camera/camera2/ICameraDeviceUser.h b/include/camera/camera2/ICameraDeviceUser.h
index b3dd140..a7bf8ab 100644
--- a/include/camera/camera2/ICameraDeviceUser.h
+++ b/include/camera/camera2/ICameraDeviceUser.h
@@ -138,6 +138,12 @@ public:
* Preallocate buffers for a given output stream asynchronously.
*/
virtual status_t prepare(int streamId) = 0;
+
+ /**
+ * Free all unused buffers for a given output stream.
+ */
+ virtual status_t tearDown(int streamId) = 0;
+
};
// ----------------------------------------------------------------------------