diff options
author | Andreas Huber <andih@google.com> | 2011-06-28 10:51:41 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-06-28 10:51:41 -0700 |
commit | e366f52b1520f13306d5fef1c3c8a2b2c653d935 (patch) | |
tree | 3b4fc6abef0e786bddbdd316b5cb19385e3ba321 /include/media | |
parent | 84e297238f53f83c9e7de499e711b997d09514e0 (diff) | |
download | frameworks_base-e366f52b1520f13306d5fef1c3c8a2b2c653d935.zip frameworks_base-e366f52b1520f13306d5fef1c3c8a2b2c653d935.tar.gz frameworks_base-e366f52b1520f13306d5fef1c3c8a2b2c653d935.tar.bz2 |
Multiple changes to ACodec/codec tools:
Make sure sf2 does not coalesce input buffers, generalize ACodec's codec
instantiation based on OMXCodec's list of eligible component names.
Some changes/additions to the "sf2" commandline tool
Make surface options consistent with stagefright tool, i.e. use '-S' instead of '-s'
New option '-R' renders surface-allocated buffers.
Also fixes a longstanding bug introduced when generalizing from surfaces to native windows that never used surface-allocated buffers in sf2 even when the option was specified.
Change-Id: I59fd533f0f6ef0337ebe2806ddc81a46878eb3ae
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/stagefright/OMXCodec.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index 589cefd..92331a1 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -79,6 +79,13 @@ struct OMXCodec : public MediaSource, // from MediaBufferObserver virtual void signalBufferReturned(MediaBuffer *buffer); + // for use by ACodec + static void findMatchingCodecs( + const char *mime, + bool createEncoder, const char *matchComponentName, + uint32_t flags, + Vector<String8> *matchingCodecs); + protected: virtual ~OMXCodec(); @@ -311,12 +318,6 @@ private: static uint32_t getComponentQuirks( const char *componentName, bool isEncoder); - static void findMatchingCodecs( - const char *mime, - bool createEncoder, const char *matchComponentName, - uint32_t flags, - Vector<String8> *matchingCodecs); - void restorePatchedDataPointer(BufferInfo *info); status_t applyRotation(); |