diff options
author | James Dong <jdong@google.com> | 2010-07-07 15:00:28 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-07-07 15:00:28 -0700 |
commit | bf21177ccede8f01c0da0bd53392a289a5a84462 (patch) | |
tree | 2c949bac7ef2da54093fa8a47c66fd7c48921bbd /include | |
parent | 5bb4809a27ae962be32c67b705671cdada03be00 (diff) | |
parent | c61334edce8bd000543fa2c8172b305a887b9124 (diff) | |
download | frameworks_av-bf21177ccede8f01c0da0bd53392a289a5a84462.zip frameworks_av-bf21177ccede8f01c0da0bd53392a289a5a84462.tar.gz frameworks_av-bf21177ccede8f01c0da0bd53392a289a5a84462.tar.bz2 |
am b3598832: am c4243342: Merge "Allow application to set two more encoding paramters: video profile and level" into gingerbread
Merge commit 'b35988329ac1a574898db9226039e37e352c57a8'
* commit 'b35988329ac1a574898db9226039e37e352c57a8':
Allow application to set two more encoding paramters: video profile and level
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/MetaData.h | 4 | ||||
-rw-r--r-- | include/media/stagefright/OMXCodec.h | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/media/stagefright/MetaData.h b/include/media/stagefright/MetaData.h index 95fe6f6..73f5547 100644 --- a/include/media/stagefright/MetaData.h +++ b/include/media/stagefright/MetaData.h @@ -69,6 +69,10 @@ enum { kKeyDate = 'date', // cstring kKeyWriter = 'writ', // cstring + // video profile and level + kKeyVideoProfile = 'vprf', // int32_t + kKeyVideoLevel = 'vlev', // int32_t + // Set this key to enable authoring files in 64-bit offset kKey64BitFileOffset = 'fobt', // int32_t (bool) diff --git a/include/media/stagefright/OMXCodec.h b/include/media/stagefright/OMXCodec.h index 99ec8e6..214f43a 100644 --- a/include/media/stagefright/OMXCodec.h +++ b/include/media/stagefright/OMXCodec.h @@ -27,6 +27,7 @@ namespace android { class MemoryDealer; struct OMXCodecObserver; +struct CodecProfileLevel; struct OMXCodec : public MediaSource, public MediaBufferObserver { @@ -178,6 +179,12 @@ private: status_t setupMPEG4EncoderParameters(const sp<MetaData>& meta); status_t setupAVCEncoderParameters(const sp<MetaData>& meta); + // If profile/level is set in the meta data, its value in the meta + // data will be used; otherwise, the default value will be used. + status_t getVideoProfileLevel(const sp<MetaData>& meta, + const CodecProfileLevel& defaultProfileLevel, + CodecProfileLevel& profileLevel); + status_t setVideoOutputFormat( const char *mime, OMX_U32 width, OMX_U32 height); |