diff options
author | ztenghui <ztenghui@google.com> | 2013-03-12 15:43:56 -0700 |
---|---|---|
committer | ztenghui <ztenghui@google.com> | 2013-03-15 16:16:16 -0700 |
commit | 11287471298193ff51ffb429686f5d63a84a621b (patch) | |
tree | b3a4e927f0887148de2cce86b01947c699790d9f /include | |
parent | 4f4c2655dc3f6fcef766db6e793b1642ad0fd605 (diff) | |
download | frameworks_av-11287471298193ff51ffb429686f5d63a84a621b.zip frameworks_av-11287471298193ff51ffb429686f5d63a84a621b.tar.gz frameworks_av-11287471298193ff51ffb429686f5d63a84a621b.tar.bz2 |
Add the presentation rotation support
bug:7991013
Change-Id: I10cb034b432876c724baa4974efcb3d67b8a99b6
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/MediaMuxer.h | 14 |
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 }; |