summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/CallbackDataSource.cpp
Commit message (Collapse)AuthorAgeFilesLines
* stagefright: fix clang buildWonsik Kim2015-06-111-1/+2
| | | | Change-Id: I4f10e4af6f0b5fb0b90513ad516b36b444d3bd68
* stagefright: TinyCacheSource to read continuouslyWonsik Kim2015-06-111-3/+19
| | | | | | | | | | | If the seek operation of underlying MediaDataSource implementation is expensive and each read is relatively small (e.g. Live MPEG2 TS stream), current TinyCacheSource implementation requests seek too frequently. Bug: 21764375 Change-Id: Ic620bf027bc4ef48822549c83c5c98109986884a
* stagefright: add a 2kb cache for CallbackDataSource.Chris Watkins2015-04-201-3/+49
| | | | | | | | | | | | Without a cache the mediaserver does a lot of small reads which result in round trips through binder and jni to the app MediaDataSource. On a Nexus 5 I measured time to first frame from MediaPlayer for 1) 1350kbps h264, and 2) 20480kbps vp8. Without a cache, MediaDataSource was ~250ms slower than an fd. With a 2kb cache it's 30ms slower for (1) and 70ms slower for (2). Change-Id: If1e811db7b853c4f79430603318d4744ac30acb9
* stagefright: warnings be gone, some are now errors, use clangLajos Molnar2015-04-171-1/+1
| | | | Change-Id: I81f438ae444f04c12ae27ae4ef6d073033de172c
* Unhide the android.media.[Media]DataSource interface.Chris Watkins2015-04-151-0/+97
This allows apps to implement MediaDataSource, which is modeled on stagefright's DataSource, to supply media data to the framework. This was already implemented for MediaExtractor, but it was renamed from DataSource. MediaExtractor, MediaPlayer and MediaMetadataRetriever each have a new overload: #setDataSource(android.media.MediaDataSource) Only NuPlayer supports this new data source. The change introduces: * IDataSource: The binder interface for DataSource. * JMediaDataSource: The native counterpart to the java interface. It implements IDataSource. * CallbackDataSource: A stagefright DataSource that wraps an IDataSource. Change-Id: Ib3c944b49cc8a792c8eb9c85e5015c07f298ebc1