diff options
author | James Dong <jdong@google.com> | 2011-06-07 19:45:54 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-06-13 17:06:29 -0700 |
commit | 965e4239ca1cf6c824c1f8ce23116f9ba8cf6ebd (patch) | |
tree | 96463de989057f23bb9c9670e434282ba2778185 /include | |
parent | afcedc9e6f17d8213d9bd8f6c36643dcc816d0ef (diff) | |
download | frameworks_av-965e4239ca1cf6c824c1f8ce23116f9ba8cf6ebd.zip frameworks_av-965e4239ca1cf6c824c1f8ce23116f9ba8cf6ebd.tar.gz frameworks_av-965e4239ca1cf6c824c1f8ce23116f9ba8cf6ebd.tar.bz2 |
Add B frame support for MPEG4Writer
o requires the support of negative ctts duration values (ctts version 1)
Change-Id: Ib14130c9359c3bff3c76f20a7380d468a065dcaf
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/MetaData.h | 1 | ||||
-rw-r--r-- | include/media/stagefright/OMXCodec.h | 6 |
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 &); }; |