summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-10-18 09:57:42 -0700
committerAndreas Huber <andih@google.com>2010-10-18 10:16:08 -0700
commit5a40e394f1e6b0511542e171eaf4c3e5927efc13 (patch)
treed83620f903022c1bc2b0087d71c2b257dd5a0719 /include
parentd1f7f4a68375f879671d300510f23d3ee78a500e (diff)
downloadframeworks_base-5a40e394f1e6b0511542e171eaf4c3e5927efc13.zip
frameworks_base-5a40e394f1e6b0511542e171eaf4c3e5927efc13.tar.gz
frameworks_base-5a40e394f1e6b0511542e171eaf4c3e5927efc13.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')
-rw-r--r--include/media/stagefright/OMXCodec.h6
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,