summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2012-05-15 10:43:30 -0700
committerJames Dong <jdong@google.com>2012-05-15 16:14:25 -0700
commit8c460498c028888c533ab442be12b6d4b669b965 (patch)
treef821306b7a59d4dcc9116f1948f193c78f5ad413 /include
parent5d3d12bf58da5b48b1edb7c20b5d1edec0773f75 (diff)
downloadframeworks_av-8c460498c028888c533ab442be12b6d4b669b965.zip
frameworks_av-8c460498c028888c533ab442be12b6d4b669b965.tar.gz
frameworks_av-8c460498c028888c533ab442be12b6d4b669b965.tar.bz2
Speed up stsz box write in MPEG4Writer
With this patch, the write time for 30+ minutes recording session is reduced from 10+ seconds down to around 2-3 seconds. related-to-bug: 6435176 Change-Id: I83b705cea42d8de798e7032c770c5c7b033e267e
Diffstat (limited to 'include')
-rw-r--r--include/media/stagefright/MPEG4Writer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/media/stagefright/MPEG4Writer.h b/include/media/stagefright/MPEG4Writer.h
index 0409b30..cd4e129 100644
--- a/include/media/stagefright/MPEG4Writer.h
+++ b/include/media/stagefright/MPEG4Writer.h
@@ -50,6 +50,7 @@ public:
void writeCString(const char *s);
void writeFourcc(const char *fourcc);
void write(const void *data, size_t size);
+ inline size_t write(const void *ptr, size_t size, size_t nmemb);
void endBox();
uint32_t interleaveDuration() const { return mInterleaveDurationUs; }
status_t setInterleaveDuration(uint32_t duration);
@@ -168,7 +169,6 @@ private:
off64_t addSample_l(MediaBuffer *buffer);
off64_t addLengthPrefixedSample_l(MediaBuffer *buffer);
- inline size_t write(const void *ptr, size_t size, size_t nmemb);
bool exceedsFileSizeLimit();
bool use32BitFileOffset() const;
bool exceedsFileDurationLimit();