diff options
author | Andreas Huber <andih@google.com> | 2010-10-18 09:57:42 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-10-18 10:16:08 -0700 |
commit | f3712f026aad1fc46b1df18d1dba718281e39726 (patch) | |
tree | 8bc7bbfef7a223939d093cd5595d4ccfe8fdac5e /include/media | |
parent | 56cfa2376ae87cba730ea7ce4a9e0ca4f0d07627 (diff) | |
download | frameworks_av-f3712f026aad1fc46b1df18d1dba718281e39726.zip frameworks_av-f3712f026aad1fc46b1df18d1dba718281e39726.tar.gz frameworks_av-f3712f026aad1fc46b1df18d1dba718281e39726.tar.bz2 |
For thumbnail extraction make sure we instantiate a decoder that allows access to the framebuffer. Implement the samsung workaround to support this by reconfiguring the decoder.
related-to-bug: 3106534
Change-Id: Ie28d72af2f9e93818d1840ac83aa7bc11fa57b3b
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/stagefright/OMXCodec.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index 2bb7783..1d94160 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -33,7 +33,11 @@ struct OMXCodec : public MediaSource, public MediaBufferObserver { enum CreationFlags { kPreferSoftwareCodecs = 1, - kIgnoreCodecSpecificData = 2 + kIgnoreCodecSpecificData = 2, + + // The client wants to access the output buffer's video + // data for example for thumbnail extraction. + kClientNeedsFramebuffer = 4, }; static sp<MediaSource> Create( const sp<IOMX> &omx, |