summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-10-07 11:59:53 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-10-07 11:59:53 -0700
commit949f7d9066e09768e570686a5695aaba4a1dafd0 (patch)
tree42cfae518787ec6a118d755444a894df835f511a /include
parentb74941e32e068ec03f90b9a53670328cd17ff4b4 (diff)
parent4c19bf9833f59f58a9aaea566f0eb98a7fb7e2ea (diff)
downloadframeworks_base-949f7d9066e09768e570686a5695aaba4a1dafd0.zip
frameworks_base-949f7d9066e09768e570686a5695aaba4a1dafd0.tar.gz
frameworks_base-949f7d9066e09768e570686a5695aaba4a1dafd0.tar.bz2
Merge "Work to support switching transport streams mid-stream and signalling discontinuities to the decoder." into gingerbread
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/MediaErrors.h1
-rw-r--r--include/media/stagefright/OMXCodec.h5
2 files changed, 4 insertions, 2 deletions
diff --git a/include/media/stagefright/MediaErrors.h b/include/media/stagefright/MediaErrors.h
index 73d0f77..e44122d 100644
--- a/include/media/stagefright/MediaErrors.h
+++ b/include/media/stagefright/MediaErrors.h
@@ -39,6 +39,7 @@ enum {
// Not technically an error.
INFO_FORMAT_CHANGED = MEDIA_ERROR_BASE - 12,
+ INFO_DISCONTINUITY = MEDIA_ERROR_BASE - 13,
};
} // namespace android
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h
index 9badf92..2bb7783 100644
--- a/include/media/stagefright/OMXCodec.h
+++ b/include/media/stagefright/OMXCodec.h
@@ -32,7 +32,8 @@ struct CodecProfileLevel;
struct OMXCodec : public MediaSource,
public MediaBufferObserver {
enum CreationFlags {
- kPreferSoftwareCodecs = 1,
+ kPreferSoftwareCodecs = 1,
+ kIgnoreCodecSpecificData = 2
};
static sp<MediaSource> Create(
const sp<IOMX> &omx,
@@ -248,7 +249,7 @@ private:
void dumpPortStatus(OMX_U32 portIndex);
- status_t configureCodec(const sp<MetaData> &meta);
+ status_t configureCodec(const sp<MetaData> &meta, uint32_t flags);
static uint32_t getComponentQuirks(
const char *componentName, bool isEncoder);