summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayer.h
Commit message (Collapse)AuthorAgeFilesLines
* NuPlayer:seek handling on kWhatAudioTearDownRobert Shih2015-08-051-0/+2
| | | | | | | | Restart from previous seek time on kWhatAudioTearDown if mRenderer didn't supply a useful positionUs. Bug: 22662968 Change-Id: Ic21957f676ba25fb92694f71093bed60b630390b
* libmediaplayerservice: propagate caller pid to MediaCodec.Ronghua Wu2015-07-211-1/+2
| | | | | Bug: 22630317 Change-Id: I0337d74f4ef04bf96f2de83f33d98d0d7da47c12
* NuPlayer: determine audio mode before instantiating audio decoder.Wei Jia2015-07-141-0/+1
| | | | | Bug: 22460159 Change-Id: I334c6dc5e1163a462155d251eaa985ff5e3858e6
* NuPlayer: disable pre-start preview for audio only sourcesRobert Shih2015-07-071-0/+1
| | | | | Bug: 22117876 Change-Id: I0e00ff8f081d80946cbd19028f1f786c1b8268f3
* NuPlayer: Enhance dumpsys statisticsPraveen Chavan2015-06-101-1/+1
| | | | | | | | Account for dropped output-frames (rather than input-frames) in percentage dropped frames. Print mime and component name for each active track Change-Id: I3491d336c696d8ed0fd1503b80afe1df47c787c8
* mediaplayer: display one frame when seek is called before start.Wei Jia2015-05-211-1/+2
| | | | | Bug: 18608164 Change-Id: I83252421278aeeb1c1611138994bfdaf86d7a363
* mediaplayer: remove unused parameter needNotify in NuPlayer::performSeek.Wei Jia2015-05-151-1/+1
| | | | Change-Id: I5ee4c3ba968a2ac52266cda0425d1a709e5c0fb2
* Merge "nuplayer: fixes for subtitle pause/resume" into mnc-devChong Zhang2015-05-071-0/+3
|\
| * nuplayer: fixes for subtitle pause/resumeChong Zhang2015-05-061-0/+3
| | | | | | | | | | | | | | | | | | | | - pause after the current block when select track - ignore metadata timestamps as they're too sparse - use smaller range when searching for next segment to prevent resumeUntil from downloading too much data bug: 20500732 Change-Id: Ibda57a39ec86efd96a8dd0db95adeb92d076697a
* | nuplayer: get playback frame rate from video track meta instead of file meta.Ronghua Wu2015-05-041-0/+1
|/ | | | | Bug: 20481562 Change-Id: Ifb4b89cce5bc810f3f411c27ba61c996a488a1c0
* stagefright: remove NativeWindowWrapperLajos Molnar2015-04-301-4/+3
| | | | | | | | Now that Surface and SurfaceTextureClient are the same and Surface, it does not add value. Bug: 19489395 Change-Id: I016ecd1cf5cc51ce6244b6fa34ecd75f84e3db01
* stagefright: support setting/getting playback/sync config in MediaSyncLajos Molnar2015-04-301-3/+15
| | | | | | | Bug: 18249558 Bug: 19666434 Bug: 20057497 Change-Id: I5868b17423d7c20cfaf4a399f3eb67bfba440605
* stagefright: warnings be gone, some are now errors, use clangLajos Molnar2015-04-171-1/+1
| | | | Change-Id: I81f438ae444f04c12ae27ae4ef6d073033de172c
* stagefright: initial timed id3 support in hlsRobert Shih2015-04-161-0/+1
| | | | Change-Id: I00a8a786b3f4b74742c34770edd94e937abe20a8
* Unhide the android.media.[Media]DataSource interface.Chris Watkins2015-04-151-0/+3
| | | | | | | | | | | | | | | | | | | | | 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
* mediaplayer: ensure secure decoders are instantiated before starting sourceLajos Molnar2015-04-011-0/+2
| | | | | Bug: 19984798 Change-Id: Iff13cf03c4ce3141380f4d7ab4a2b1045c5ce747
* mediaplayer: support dynamic playback rateWei Jia2015-02-241-0/+3
| | | | | | Bug: 19196501 Change-Id: I856b1507d5fa2cedfb645706d2435683a7d3e050
* am 3a7ed550: am efbb6195: NuPlayer: pause playback when buffering is lowChong Zhang2015-02-041-0/+9
|\ | | | | | | | | * commit '3a7ed550579b5ecd99439c44ce13a48b3f0639ae': NuPlayer: pause playback when buffering is low
| * NuPlayer: pause playback when buffering is lowChong Zhang2015-02-031-0/+9
| | | | | | | | | | | | | | also fix buffering percentage report (should be the buffered position) bug: 18730095 Change-Id: I11e7ca4ba9e772a1ae76861ca1ff1725b62f65ae
* | am 4c56f8e0: am b65842dd: Merge "Fix NuPlayer assertion on failure to create ↵Andy Hung2014-12-081-1/+1
|\ \ | |/ | | | | | | | | | | AudioTrack" into lmp-mr1-dev * commit '4c56f8e0329cbdd0f3406bde96fc6f0bba65664d': Fix NuPlayer assertion on failure to create AudioTrack
| * Fix NuPlayer assertion on failure to create AudioTrackAndy Hung2014-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | Under heavy media load or monkey/stress testing, more than 32 AudioTracks may be created or memory resources may be scarce. Remove the assertion on failure to create AudioTrack and signal MEDIA_ERROR. Bug: 17319843 Change-Id: I5d4e200b5f50d800046851a33e035cdc6ff10075
* | am 3253bef3: am d8731629: Merge "notify seek complete upon first video ↵Chong Zhang2014-12-021-1/+7
|\ \ | |/ | | | | | | | | | | output frame" into lmp-mr1-dev * commit '3253bef38cd6653768e7858f95d8baf371d58bf0': notify seek complete upon first video output frame
| * notify seek complete upon first video output frameChong Zhang2014-12-011-1/+7
| | | | | | | | | | Bug: 18541814 Change-Id: Ie4e0976885f26eb253460eab371cb181ea85f2db
* | am e9e6a930: am 3a8d7d10: Merge "tunnel NuPlayer source and decoder input" ↵Chong Zhang2014-11-211-25/+7
|\ \ | |/ | | | | | | | | | | into lmp-mr1-dev * commit 'e9e6a9306c42e0902d31f32dffc75135ff9dca49': tunnel NuPlayer source and decoder input
| * tunnel NuPlayer source and decoder inputChong Zhang2014-11-201-25/+7
| | | | | | | | | | | | Bug: 18342383 Change-Id: Ieff1cd3bad2b39d46f127ddd5d5139b919992461
* | am 2f65ada8: am 993d57ec: Merge "NuPlayer: pass media time to selectTrack ↵Robert Shih2014-11-191-1/+1
|\ \ | |/ | | | | | | | | | | for responsiveness" into lmp-mr1-dev * commit '2f65ada84cced6704e8fcdb03835fe218d917fcb': NuPlayer: pass media time to selectTrack for responsiveness
| * NuPlayer: pass media time to selectTrack for responsivenessRobert Shih2014-11-191-1/+1
| | | | | | | | Bug: 18020001 Change-Id: Id50f8473992f39d8c0aa86a1fabb2601093d2572
* | am d86450b9: am c80b9b83: Merge "Fix struct vs. class mismatches"Chih-hung Hsieh2014-11-171-1/+1
|\ \ | |/ |/| | | | | * commit 'd86450b93ab3960ccd68aed14563aaa76b43ce9b': Fix struct vs. class mismatches
| * Fix struct vs. class mismatchesBernhard Rosenkränzer2014-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | Fix something being declared a struct and forward-declared a class and vice versa. gcc doesn't care, clang complains about the mismatch. Change-Id: I7a7a8e9040e3c86fa1d73eb112631ea140861657 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
* | NuPlayer: tunnel decoder with renderer for data buffer passing.Wei Jia2014-11-141-3/+0
| | | | | | | | | | | | Bug: 18342383 Change-Id: I182928007814c146c01a86196c4fda1d46e74ea4
* | AnotherPacketSource.cpp: Do not queue discontinity signal buffer resulted ↵Wei Jia2014-11-061-3/+8
| | | | | | | | | | | | | | | | | | from seek. This will remove the unnecessary flush for seek. Bug: 17511837 Change-Id: I4b7acfc71a410372f5c630afb94b6a95d09d8974
* | NuPlayer: merge start() and resume().Wei Jia2014-10-281-1/+3
|/ | | | | | | NuPlayerDriver: allow seekTo called in STOPPED_AND_PREPARED state. Bug: 18127606 Change-Id: I92ff9f7e0a176c434202762d30966d8c4643d1ef
* move audio sink open/close to NuPlayerRendererChong Zhang2014-10-161-1/+0
| | | | | Bug: 17675112 Change-Id: I7eb3d02380658f848baedafe2aea287586ccf016
* NuPlayer: query current position from NuPlayerRenderer.Ronghua Wu2014-10-131-2/+2
| | | | | Bug: 17653702 Change-Id: Ie0b1f92420b071a0cfcd389f5e7917a54d332541
* NuPlayer: wait for renderer flush before decoder shutdownAndy Hung2014-10-061-2/+11
| | | | | Bug: 17679341 Change-Id: Ie3883686891e7ee6fb45ceb01af1eb60b559d3a0
* NuPlayer: add audioDecoderStillNeeded.Ronghua Wu2014-10-031-0/+2
| | | | | Bug: 17752358 Change-Id: Ia3b3ee4df65e5564afd0723943d2d747f3a604af
* Merge "NuPlayer will notify SeekComplete only when requested so." into lmp-devWei Jia2014-09-241-3/+4
|\
| * NuPlayer will notify SeekComplete only when requested so.Wei Jia2014-09-231-3/+4
| | | | | | | | | | Bug: 17596535 Change-Id: I6b744fdcf80f11d521d26c7c8b45f7de70aa0dc3
* | NuPlayer: use generation to filter out stale message from renderer.Wei Jia2014-09-221-0/+1
|/ | | | | | | Clean up generation number for decoders. Bug: 17507846 Change-Id: Ibd2cfe11f89f404882d66c384b5198dc641f5e71
* Add support for ANDROID_LOOP to NuPlayerMarco Nelissen2014-09-171-0/+2
| | | | | Bug: 17518139 Change-Id: I9355ddd4c998d967013dd8bd32d670a9a83dea31
* mediaplayer: optimize buffer queue managementPhil Burk2014-09-121-0/+5
| | | | | | | | | | Various changes for power consumption including: Restrict the number of messages in flight. Buffer more frames in the GenericSource so reads occur in a burst. Bug: 15094301 Change-Id: I783481fd91f3fdd445b95e88ab82178f649f1a38 Signed-off-by: Phil Burk <philburk@google.com>
* Merge "[audio][nuplayer] Aggregate buffers to reduce power." into lmp-devPhil Burk2014-09-081-0/+3
|\
| * [audio][nuplayer] Aggregate buffers to reduce power.Phil Burk2014-09-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Combine audio data from multiple buffers into one. This reduces churn between threads and saves battery power. Only use buffer aggregation when offloading the decoder. Pend buffer if it won't fit in the bigger buffer. Bug: 15094301 Change-Id: Iad3dac90b5d6b0fa43432b0e6776652ee2eafaa1 Signed-off-by: Phil Burk <philburk@google.com>
* | NuPlayer: add seek operation when change video texture surface.Wei Jia2014-09-031-0/+1
|/ | | | | | Bug: 17278770 Change-Id: I9fd5207e1eccb91e64644d2d1da4183d4bf7ac2c
* NuPlayer: remember and resubmit CSDs after flushLajos Molnar2014-08-231-1/+8
| | | | | Bug: 17118001 Change-Id: I09bbefd4c05de0db1c593e8d6d38859358a20ebb
* Merge "Allow audio and video flushed separately." into lmp-devWei Jia2014-08-191-1/+0
|\
| * Allow audio and video flushed separately.Wei Jia2014-08-191-1/+0
| | | | | | | | | | | | | | | | Bug: 14955925 Bug: 16303659 Bug: 16467066 Bug: 13133027 Change-Id: I956a9f55513970115119c7639a5e33b39e6d2f55
* | NuPlayer: use generation to detect stale requests from old decoders.Wei Jia2014-08-191-0/+2
|/ | | | | | | | Bug: 14955925 Bug: 16303659 Bug: 16467066 Bug: 13133027 Change-Id: I3e66b25b2302c0eb795361629b03bf2e96ed34e4
* nuplayer: create AudioSink early to verify offload is possibleAndy Hung2014-08-151-0/+4
| | | | | | | | | Offload audio playback is not guaranteed even if AudioSystem says it is allowed. Create AudioSink early to verify offload is really possible. Move AudioSink open / close into functions. Bug: 16732303 Bug: 16978805 Change-Id: Ie1c73a96656863c1281bed3280a84b86d3cbadf5
* NuPlayer: getSelectedTrackRobert Shih2014-08-081-0/+2
| | | | Change-Id: If5251f89b881e7f268e11a06cd3685d794c958b6