diff options
author | James Dong <jdong@google.com> | 2010-08-16 18:39:28 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-11-05 15:47:52 -0700 |
commit | aca1fe35480ae76dd6bae167ade40adc955e2d0d (patch) | |
tree | ed1cb95800d38e5937ae59d01dc60cbdf3803a3a /include | |
parent | ff5bfcf19da45e6bb0136ef818b7c4bf8fd8db3d (diff) | |
download | frameworks_av-aca1fe35480ae76dd6bae167ade40adc955e2d0d.zip frameworks_av-aca1fe35480ae76dd6bae167ade40adc955e2d0d.tar.gz frameworks_av-aca1fe35480ae76dd6bae167ade40adc955e2d0d.tar.bz2 |
Rotation support
- We only support 0, 90, 180, and 270 degree clockwise rotation
- Some players are known to ignore composition matrix in the MP4 file,
although this is part of the MP4 file standard.
Both QT and YT are supporting the rotation
Change-Id: I1b7f66a801e9d9c49d889c9b06dd6173fa7e76c4
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/MPEG4Writer.h | 1 | ||||
-rw-r--r-- | include/media/stagefright/MetaData.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/media/stagefright/MPEG4Writer.h b/include/media/stagefright/MPEG4Writer.h index bb469e5..7bf07eb 100644 --- a/include/media/stagefright/MPEG4Writer.h +++ b/include/media/stagefright/MPEG4Writer.h @@ -154,6 +154,7 @@ private: bool exceedsFileDurationLimit(); bool isFileStreamable() const; void trackProgressStatus(const Track* track, int64_t timeUs, status_t err = OK); + void writeCompositionMatrix(int32_t degrees); MPEG4Writer(const MPEG4Writer &); MPEG4Writer &operator=(const MPEG4Writer &); diff --git a/include/media/stagefright/MetaData.h b/include/media/stagefright/MetaData.h index d2bd9f2..cffcef2 100644 --- a/include/media/stagefright/MetaData.h +++ b/include/media/stagefright/MetaData.h @@ -90,6 +90,7 @@ enum { // Track authoring progress status // kKeyTrackTimeStatus is used to track progress in elapsed time kKeyTrackTimeStatus = 'tktm', // int64_t + kKeyRotationDegree = 'rdge', // int32_t (clockwise, in degree) kKeyNotRealTime = 'ntrt', // bool (int32_t) |