diff options
author | James Dong <jdong@google.com> | 2011-05-11 19:09:25 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-05-13 16:29:19 -0700 |
commit | 07b1bb529a1ae76c46a71b01338c166f9490629d (patch) | |
tree | 2fff6133d9aba0bed0375fd1099edcff609c6763 /include | |
parent | b5212db69734962f55e1493d3e696794172ced51 (diff) | |
download | frameworks_av-07b1bb529a1ae76c46a71b01338c166f9490629d.zip frameworks_av-07b1bb529a1ae76c46a71b01338c166f9490629d.tar.gz frameworks_av-07b1bb529a1ae76c46a71b01338c166f9490629d.tar.bz2 |
Support for storing geo information in the recorded mp4/3gpp file.
o Geo data (latitude and longitude) is stored in udta box
Change-Id: I76e4aeb741c4b339f3753d3d28190151f3ea4919
related-to-bug: 4260295
Diffstat (limited to 'include')
-rw-r--r-- | include/media/stagefright/MPEG4Writer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/media/stagefright/MPEG4Writer.h b/include/media/stagefright/MPEG4Writer.h index 4b5674e..2d75728 100644 --- a/include/media/stagefright/MPEG4Writer.h +++ b/include/media/stagefright/MPEG4Writer.h @@ -55,6 +55,8 @@ public: status_t setInterleaveDuration(uint32_t duration); int32_t getTimeScale() const { return mTimeScale; } + status_t setGeoData(int latitudex10000, int longitudex10000); + protected: virtual ~MPEG4Writer(); @@ -79,6 +81,9 @@ private: uint32_t mInterleaveDurationUs; int32_t mTimeScale; int64_t mStartTimestampUs; + int mLatitudex10000; + int mLongitudex10000; + bool mAreGeoTagsAvailable; Mutex mLock; @@ -169,6 +174,10 @@ private: void writeMvhdBox(int64_t durationUs); void writeMoovBox(int64_t durationUs); void writeFtypBox(const MetaData *param); + void writeUdtaBox(); + void writeGeoDataBox(); + void writeLatitude(int degreex10000); + void writeLongitude(int degreex10000); void sendSessionSummary(); MPEG4Writer(const MPEG4Writer &); |