summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-10-06 16:43:57 -0700
committerAndreas Huber <andih@google.com>2010-10-07 09:19:25 -0700
commit1e1941638398e5e3e1d7b9ad88e66f574576bcfa (patch)
treee6c89a82b8298503ff96a891e706a55d48c0d574 /include/media
parentf8d2acdc57fd747278bb909c9e15b959e07d63b6 (diff)
downloadframeworks_base-1e1941638398e5e3e1d7b9ad88e66f574576bcfa.zip
frameworks_base-1e1941638398e5e3e1d7b9ad88e66f574576bcfa.tar.gz
frameworks_base-1e1941638398e5e3e1d7b9ad88e66f574576bcfa.tar.bz2
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
Diffstat (limited to 'include/media')
-rw-r--r--include/media/stagefright/MetaData.h2
-rw-r--r--include/media/stagefright/OMXCodec.h4
2 files changed, 5 insertions, 1 deletions
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<MetaData> &meta);
- static uint32_t getComponentQuirks(const char *componentName);
+ static uint32_t getComponentQuirks(
+ const char *componentName, bool isEncoder);
static void findMatchingCodecs(
const char *mime,