summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2011-06-13 18:47:03 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-13 18:47:03 -0700
commitdecbe327d1515dd6c9fd1b6773f57b0a879f9149 (patch)
treec569409f1cc461e367b7fe21493a7f33b45a07ee /include
parent2714abff5cc50b1487c0979c99cc685f5ea113b1 (diff)
parent4108b1edc61ef91c63bc94a699f9a95e65c3e684 (diff)
downloadframeworks_base-decbe327d1515dd6c9fd1b6773f57b0a879f9149.zip
frameworks_base-decbe327d1515dd6c9fd1b6773f57b0a879f9149.tar.gz
frameworks_base-decbe327d1515dd6c9fd1b6773f57b0a879f9149.tar.bz2
Merge "Add B frame support for MPEG4Writer"
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/MetaData.h1
-rw-r--r--include/media/stagefright/OMXCodec.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/include/media/stagefright/MetaData.h b/include/media/stagefright/MetaData.h
index 4044c5d..deade5e 100644
--- a/include/media/stagefright/MetaData.h
+++ b/include/media/stagefright/MetaData.h
@@ -55,6 +55,7 @@ enum {
kKeyIsSyncFrame = 'sync', // int32_t (bool)
kKeyIsCodecConfig = 'conf', // int32_t (bool)
kKeyTime = 'time', // int64_t (usecs)
+ kKeyDecodingTime = 'decT', // int64_t (decoding timestamp in usecs)
kKeyNTPTime = 'ntpT', // uint64_t (ntp-timestamp)
kKeyTargetTime = 'tarT', // int64_t (usecs)
kKeyDriftTime = 'dftT', // int64_t (usecs)
diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h
index 70daafa..589cefd 100644
--- a/include/media/stagefright/OMXCodec.h
+++ b/include/media/stagefright/OMXCodec.h
@@ -202,6 +202,10 @@ private:
bool mOnlySubmitOneBufferAtOneTime;
bool mEnableGrallocUsageProtected;
+ // Used to record the decoding time for an output picture from
+ // a video encoder.
+ List<int64_t> mDecodingTimeList;
+
OMXCodec(const sp<IOMX> &omx, IOMX::node_id node, uint32_t quirks,
bool isEncoder, const char *mime, const char *componentName,
const sp<MediaSource> &source,
@@ -317,6 +321,8 @@ private:
status_t applyRotation();
+ int64_t retrieveDecodingTimeUs(bool isCodecSpecific);
+
OMXCodec(const OMXCodec &);
OMXCodec &operator=(const OMXCodec &);
};