summaryrefslogtreecommitdiffstats
path: root/include/media
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
commit9e36b5a5c630c303b5007fdeb5c0df83b953adf4 (patch)
treec4d3e6bd23765db7ba644aa817f5c13144d62dfa /include/media
parentde5cdcae51d3afd9b14e818087be14288c0c6b8c (diff)
parente0fb528f8e3bbab04620c8534177168b358e837b (diff)
downloadframeworks_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/media')
-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
};