summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorShivaprasad Hongal <shongal@codeaurora.org>2015-07-30 18:00:18 -0700
committerSatish Kamuju <skamuj@codeaurora.org>2015-10-06 17:37:32 +0530
commit1ee2a02ee471d8c5d7b3c3bd3ab720f3dcfea056 (patch)
tree9e6156dc3c8c52168fd56aa0f06b211c5fd36155 /include
parentbc3028750d3438ebf108298e93f12de461f56430 (diff)
downloadframeworks_av-1ee2a02ee471d8c5d7b3c3bd3ab720f3dcfea056.zip
frameworks_av-1ee2a02ee471d8c5d7b3c3bd3ab720f3dcfea056.tar.gz
frameworks_av-1ee2a02ee471d8c5d7b3c3bd3ab720f3dcfea056.tar.bz2
Stagefright: Enable custom allocation mode.
Enable custom allocation mode Change-Id: Idf3f6c0eb9d17d361d2e5b6c36b1fe7586236565
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/ACodec.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/media/stagefright/ACodec.h b/include/media/stagefright/ACodec.h
index aaaf2d1..33fb963 100644
--- a/include/media/stagefright/ACodec.h
+++ b/include/media/stagefright/ACodec.h
@@ -177,6 +177,7 @@ protected:
sp<GraphicBuffer> mGraphicBuffer;
int mFenceFd;
FrameRenderTracker::Info *mRenderInfo;
+ int mCustomData;
// The following field and 4 methods are used for debugging only
bool mIsReadFence;
@@ -275,7 +276,7 @@ protected:
status_t setCyclicIntraMacroblockRefresh(const sp<AMessage> &msg, int32_t mode);
status_t allocateBuffersOnPort(OMX_U32 portIndex);
status_t freeBuffersOnPort(OMX_U32 portIndex);
- status_t freeBuffer(OMX_U32 portIndex, size_t i);
+ virtual status_t freeBuffer(OMX_U32 portIndex, size_t i);
status_t handleSetSurface(const sp<Surface> &surface);
status_t setupNativeWindowSizeFormatAndUsage(
@@ -436,6 +437,12 @@ protected:
virtual status_t getVQZIPInfo(const sp<AMessage> &msg) {
return OK;
}
+ virtual bool canAllocateBuffer(OMX_U32 /* portIndex */) {
+ return false;
+ }
+ virtual void enableCustomAllocationMode(const sp<AMessage> &/* msg */) {}
+ virtual status_t allocateBuffer(
+ OMX_U32 portIndex, size_t bufSize, BufferInfo &info);
sp<IOMXObserver> createObserver();