From df7e6ea0c755fb95a77d21010105e3a2eac69ff8 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 29 Mar 2012 17:12:13 -0700 Subject: reduce IPCs in BufferQueue Change-Id: I1f8c32a771a411476d225adc62d1f07c24f39a3e --- include/media/stagefright/SurfaceMediaSource.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include') diff --git a/include/media/stagefright/SurfaceMediaSource.h b/include/media/stagefright/SurfaceMediaSource.h index 936b057..c0dc074 100644 --- a/include/media/stagefright/SurfaceMediaSource.h +++ b/include/media/stagefright/SurfaceMediaSource.h @@ -101,6 +101,7 @@ public: // (zero point, etc) are client-dependent and should be documented by the // client. virtual status_t queueBuffer(int buf, int64_t timestamp, + const Rect& crop, int scalingMode, uint32_t transform, uint32_t* outWidth, uint32_t* outHeight, uint32_t* outTransform); virtual void cancelBuffer(int buf); @@ -111,13 +112,8 @@ public: // Make sure this is called when the mutex is locked virtual status_t onFrameReceivedLocked(); - virtual status_t setScalingMode(int mode) { return OK; } // no op for encoding virtual int query(int what, int* value); - // Just confirming to the ISurfaceTexture interface as of now - virtual status_t setCrop(const Rect& reg) { return OK; } - virtual status_t setTransform(uint32_t transform) {return OK;} - // setSynchronousMode set whether dequeueBuffer is synchronous or // asynchronous. In synchronous mode, dequeueBuffer blocks until // a buffer is available, the currently bound buffer can be dequeued and -- cgit v1.1