summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-08-25 14:26:05 -0700
committerAndreas Huber <andih@google.com>2009-08-25 14:26:05 -0700
commit404cc418be3eeaef93729fab51a0124ed65e1adc (patch)
tree1b63086bed495522df346c5de0bc5557ec88c0cf /include
parent4804c3e23b0bb8e77b690df177ebd4d6fb949aa8 (diff)
downloadframeworks_base-404cc418be3eeaef93729fab51a0124ed65e1adc.zip
frameworks_base-404cc418be3eeaef93729fab51a0124ed65e1adc.tar.gz
frameworks_base-404cc418be3eeaef93729fab51a0124ed65e1adc.tar.bz2
Make sure not to ask for more buffers when we know that there won't be any, added a quirk for the aac decoder.
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/OMXCodec.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h
index 0b94118..e4f6a4e 100644
--- a/include/media/stagefright/OMXCodec.h
+++ b/include/media/stagefright/OMXCodec.h
@@ -82,6 +82,7 @@ private:
kWantsNALFragments = 2,
kRequiresLoadedToIdleAfterAllocation = 4,
kRequiresAllocateBufferOnInputPorts = 8,
+ kRequiresFlushCompleteEmulation = 16,
};
struct BufferInfo {
@@ -165,7 +166,13 @@ private:
void drainInputBuffers();
void fillOutputBuffers();
- void flushPortAsync(OMX_U32 portIndex);
+ // Returns true iff a flush was initiated and a completion event is
+ // upcoming, false otherwise (A flush was not necessary as we own all
+ // the buffers on that port).
+ // This method will ONLY ever return false for a component with quirk
+ // "kRequiresFlushCompleteEmulation".
+ bool flushPortAsync(OMX_U32 portIndex);
+
void disablePortAsync(OMX_U32 portIndex);
void enablePortAsync(OMX_U32 portIndex);