summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Stoza <stoza@google.com>2014-11-04 11:32:52 -0800
committerDan Stoza <stoza@google.com>2014-11-04 11:32:52 -0800
commit04f101c35eaa90b1f95939afac30674ec1611e6f (patch)
tree638649883fdc1e7329b9334b5a1a7461b7421942 /include
parent151b3f41ffcdf187580542ba0c0d3b84df16beed (diff)
downloadframeworks_av-04f101c35eaa90b1f95939afac30674ec1611e6f.zip
frameworks_av-04f101c35eaa90b1f95939afac30674ec1611e6f.tar.gz
frameworks_av-04f101c35eaa90b1f95939afac30674ec1611e6f.tar.bz2
Add a BufferItem parameter to onFrameAvailable
Passes the BufferItem for the queued buffer to the onFrameAvailable callback so the consumer can track the BufferQueue's contents. Bug: 18111837 Change-Id: If9d07229c9b586c668e5f99074e9b63b0468feb0
Diffstat (limited to 'include')
-rw-r--r--include/camera/ProCamera.h2
-rw-r--r--include/media/stagefright/SurfaceMediaSource.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/camera/ProCamera.h b/include/camera/ProCamera.h
index 83a3028..e9b687a 100644
--- a/include/camera/ProCamera.h
+++ b/include/camera/ProCamera.h
@@ -265,7 +265,7 @@ private:
}
protected:
- virtual void onFrameAvailable() {
+ virtual void onFrameAvailable(const BufferItem& /* item */) {
sp<ProCamera> c = mCamera.promote();
if (c.get() != NULL) {
c->onFrameAvailable(mStreamId);
diff --git a/include/media/stagefright/SurfaceMediaSource.h b/include/media/stagefright/SurfaceMediaSource.h
index 43b75fd..d15a226 100644
--- a/include/media/stagefright/SurfaceMediaSource.h
+++ b/include/media/stagefright/SurfaceMediaSource.h
@@ -124,7 +124,7 @@ protected:
// Implementation of the BufferQueue::ConsumerListener interface. These
// calls are used to notify the Surface of asynchronous events in the
// BufferQueue.
- virtual void onFrameAvailable();
+ virtual void onFrameAvailable(const BufferItem& item);
// Used as a hook to BufferQueue::disconnect()
// This is called by the client side when it is done