diff options
author | ztenghui <ztenghui@google.com> | 2013-03-20 17:00:50 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-03-20 17:00:50 +0000 |
commit | 9e36b5a5c630c303b5007fdeb5c0df83b953adf4 (patch) | |
tree | c4d3e6bd23765db7ba644aa817f5c13144d62dfa /include | |
parent | de5cdcae51d3afd9b14e818087be14288c0c6b8c (diff) | |
parent | e0fb528f8e3bbab04620c8534177168b358e837b (diff) | |
download | frameworks_av-9e36b5a5c630c303b5007fdeb5c0df83b953adf4.zip frameworks_av-9e36b5a5c630c303b5007fdeb5c0df83b953adf4.tar.gz frameworks_av-9e36b5a5c630c303b5007fdeb5c0df83b953adf4.tar.bz2 |
Merge "Add the presentation rotation support" into jb-mr2-dev
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 }; |