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 | 65a73f4e8c79d05c0d9001b660325748d4ecf37b (patch) | |
tree | 84b658d31134be344fc440355196b7932373471d /include/media | |
parent | ce22d608733953e367a590efd9c7656a68ffc24d (diff) | |
download | frameworks_base-65a73f4e8c79d05c0d9001b660325748d4ecf37b.zip frameworks_base-65a73f4e8c79d05c0d9001b660325748d4ecf37b.tar.gz frameworks_base-65a73f4e8c79d05c0d9001b660325748d4ecf37b.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/media')
-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) |