From 1e1941638398e5e3e1d7b9ad88e66f574576bcfa Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Wed, 6 Oct 2010 16:43:57 -0700 Subject: On this particular device the hardware video decoder spits out buffers that don't actually contain our video data, so we cannot use them to restore the video frame after suspend/resume. Change-Id: I1b8fe68c1766299844fe84ebbff49cb8b3e4cc7c related-to-bug: 3070094 --- include/media/stagefright/MetaData.h | 2 ++ include/media/stagefright/OMXCodec.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/media/stagefright/MetaData.h b/include/media/stagefright/MetaData.h index ab2f11d..d2bd9f2 100644 --- a/include/media/stagefright/MetaData.h +++ b/include/media/stagefright/MetaData.h @@ -97,6 +97,8 @@ enum { kKeyAutoLoop = 'autL', // bool (int32_t) kKeyValidSamples = 'valD', // int32_t + + kKeyIsUnreadable = 'unre', // bool (int32_t) }; enum { diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index 875bc5b..9badf92 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -103,6 +103,7 @@ private: kSupportsMultipleFramesPerInputBuffer = 1024, kAvoidMemcopyInputRecordingFrames = 2048, kRequiresLargerEncoderOutputBuffer = 4096, + kOutputBuffersAreUnreadable = 8192, }; struct BufferInfo { @@ -249,7 +250,8 @@ private: status_t configureCodec(const sp &meta); - static uint32_t getComponentQuirks(const char *componentName); + static uint32_t getComponentQuirks( + const char *componentName, bool isEncoder); static void findMatchingCodecs( const char *mime, -- cgit v1.1