summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/device3/Camera3OutputStream.h
diff options
context:
space:
mode:
authorChien-Yu Chen <cychen@google.com>2015-08-28 15:46:12 -0700
committerChien-Yu Chen <cychen@google.com>2015-09-03 17:35:25 -0700
commit85a6455f269d79adf9bf48d757a4b1b3c81cf760 (patch)
tree7ad6b688f9e60e2f8597b7de932cd8c6ff4f628e /services/camera/libcameraservice/device3/Camera3OutputStream.h
parentcfb252cdb748429789f918c4268fcca1331f6cec (diff)
downloadframeworks_av-85a6455f269d79adf9bf48d757a4b1b3c81cf760.zip
frameworks_av-85a6455f269d79adf9bf48d757a4b1b3c81cf760.tar.gz
frameworks_av-85a6455f269d79adf9bf48d757a4b1b3c81cf760.tar.bz2
Camera3Device: Support batch requests
Refactor request threadLoop to three parts: waiting for next batch of requests, preparing HAL requests and output buffers for next batch of requests, and submitting the batch of requests to HAL. Set the batch size to the size of the request list if it's a video recording request in a high speed video configuration. Add a flush lock so that HAL's flush() won't be called while submitting a batch of requests. Bug: 23360060 Change-Id: Icd395b1f955a9b336eec6fa5aff6b17741ce08c7
Diffstat (limited to 'services/camera/libcameraservice/device3/Camera3OutputStream.h')
-rw-r--r--services/camera/libcameraservice/device3/Camera3OutputStream.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/device3/Camera3OutputStream.h b/services/camera/libcameraservice/device3/Camera3OutputStream.h
index 941d693..3c083ec 100644
--- a/services/camera/libcameraservice/device3/Camera3OutputStream.h
+++ b/services/camera/libcameraservice/device3/Camera3OutputStream.h
@@ -64,6 +64,11 @@ class Camera3OutputStream :
*/
status_t setTransform(int transform);
+ /**
+ * Return if this output stream is for video encoding.
+ */
+ bool isVideoStream() const;
+
protected:
Camera3OutputStream(int id, camera3_stream_type_t type,
uint32_t width, uint32_t height, int format,