diff options
Diffstat (limited to 'services/camera/libcameraservice/device3/Camera3ZslStream.h')
-rw-r--r-- | services/camera/libcameraservice/device3/Camera3ZslStream.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/services/camera/libcameraservice/device3/Camera3ZslStream.h b/services/camera/libcameraservice/device3/Camera3ZslStream.h index c7f4490..5323a49 100644 --- a/services/camera/libcameraservice/device3/Camera3ZslStream.h +++ b/services/camera/libcameraservice/device3/Camera3ZslStream.h @@ -37,10 +37,10 @@ class Camera3ZslStream : public Camera3OutputStream { public: /** - * Set up a ZSL stream of a given resolution. Depth is the number of buffers + * Set up a ZSL stream of a given resolution. bufferCount is the number of buffers * cached within the stream that can be retrieved for input. */ - Camera3ZslStream(int id, uint32_t width, uint32_t height, int depth); + Camera3ZslStream(int id, uint32_t width, uint32_t height, int bufferCount); ~Camera3ZslStream(); virtual void dump(int fd, const Vector<String16> &args) const; @@ -59,8 +59,10 @@ class Camera3ZslStream : /** * Clears the buffers that can be used by enqueueInputBufferByTimestamp + * latestTimestamp will be filled with the largest timestamp of buffers + * being cleared, 0 if there is no buffer being clear. */ - status_t clearInputRingBuffer(); + status_t clearInputRingBuffer(nsecs_t* latestTimestamp); protected: @@ -96,6 +98,12 @@ class Camera3ZslStream : bool output, /*out*/ sp<Fence> *releaseFenceOut); + + // Disconnet the Camera3ZslStream specific bufferQueues. + virtual status_t disconnectLocked(); + + status_t clearInputRingBufferLocked(nsecs_t* latestTimestamp); + }; // class Camera3ZslStream }; // namespace camera3 |