summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorztenghui <ztenghui@google.com>2013-03-20 17:00:50 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-03-20 17:00:50 +0000
commit3a29ea87c8fdcd45987bcc9cd2b68961ac971d27 (patch)
tree799496b667decd5c7cffeef3e56e3865b393f357 /include
parentaab193b107e302e145b5c3d6e6c87f92ac296186 (diff)
parent11287471298193ff51ffb429686f5d63a84a621b (diff)
downloadframeworks_av-3a29ea87c8fdcd45987bcc9cd2b68961ac971d27.zip
frameworks_av-3a29ea87c8fdcd45987bcc9cd2b68961ac971d27.tar.gz
frameworks_av-3a29ea87c8fdcd45987bcc9cd2b68961ac971d27.tar.bz2
Merge "Add the presentation rotation support" into jb-mr2-dev
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/MediaMuxer.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/media/stagefright/MediaMuxer.h b/include/media/stagefright/MediaMuxer.h
index 167d0d9..fad319f 100644
--- a/include/media/stagefright/MediaMuxer.h
+++ b/include/media/stagefright/MediaMuxer.h
@@ -77,11 +77,20 @@ public:
status_t start();
/**
+ * Set the orientation hint.
+ * @param degrees The rotation degrees. It has to be either 0,
+ * 90, 180 or 270.
+ * @return OK if no error.
+ */
+ status_t setOrientationHint(int degrees);
+
+ /**
* Stop muxing.
* This method is a blocking call. Depending on how
* much data is bufferred internally, the time needed for stopping
* the muxer may be time consuming. UI thread is
* not recommended for launching this call.
+ * @return OK if no error.
*/
status_t stop();
@@ -104,12 +113,13 @@ public:
private:
sp<MPEG4Writer> mWriter;
Vector< sp<MediaAdapter> > mTrackList; // Each track has its MediaAdapter.
+ sp<MetaData> mFileMeta; // Metadata for the whole file.
Mutex mMuxerLock;
enum State {
- UNINITED,
- INITED,
+ UNINITIALIZED,
+ INITIALIZED,
STARTED,
STOPPED
};