summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayer.h
Commit message (Collapse)AuthorAgeFilesLines
* NuPlayer: extend onResume funtionSidipotu Ashok2016-04-131-1/+1
| | | | | | | - Extend onResume in-order to implement the Audio Voice Concurrency changes. Change-Id: I2b02f644df23f35b6d37d07a99d74ad56470b142
* Revert "NuPlayer: Teardown sequence for pcm offload"Haynes Mathew George2015-12-191-2/+0
| | | | | | | This reverts commit 00208bc4c6d725ea9ce0795a897d42b5a32360c3. CRs-Fixed: 941002 Change-Id: I22c9954fc3ed3207f218dde0c02f7dddc8751df9
* Revert "nuplayer: Perform proper shutdown sequence for offload teardown"Haynes Mathew George2015-12-191-1/+1
| | | | | | | This reverts commit 9944bae1fda19634b04cd4e2b755c3d368405a8b. CRs-Fixed: 941002 Change-Id: Ief7c6a1a8d9fd290da49867b1fef9f6e9e2a51a1
* stagefright: Resurrect PCM offloadSteve Kondik2015-12-131-4/+6
| | | | | | | | | | | | | * Forward-port the open-source code from L which was moved to closed-source in M. This is being done out of necessity- the architecture chosen by Qualcomm is not optimal and doesn't work well with a singular codebase which attempts to service a large number of devices. * This patch brings in the code to support PCM offload (AudioFlinger bypass). This allows for playback of high resolution clips without decimation stages, and enables reduced power consumption for audio pipelines which take advantage of the Hexagon DSP (effects). Change-Id: I0ef15fc3df538ab723f3c12ce0ed71d0e607c99e
* Merge branch 'LA.BF64.1.2.2_rb4.8' of ↵Steve Kondik2015-11-291-1/+1
|\ | | | | | | git://codeaurora.org/platform/frameworks/av into cm-13.0
| * Merge "nuplayer: Perform proper shutdown sequence for offload teardown"Linux Build Service Account2015-11-161-1/+1
| |\
| | * nuplayer: Perform proper shutdown sequence for offload teardownHaynes Mathew George2015-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend shutdown sequence used for pcm offload to compress offload as well. The current tear down sequence for compress offload calls clear on the NuPlayerDecoderPassthrough object directly. This is not guaranteed to prevent an encoded buffer from getting queued into the Renderer. Going through a proper flush+shutdown sequence helps prevent this (rare) scenario. CRs-Fixed: 914308 Change-Id: Ie2040cbbd42b8c67bb53a7ef8a628faf1ab7acda
| * | nuplayer: don't resume if player is reseting.Ronghua Wu2015-11-031-0/+1
| |/ | | | | | | | | | | | | cherry-pick of AOSP commit b75de9d4ba6725104342b5376a1047ff1c9b2765 Bug: 24712426 Change-Id: I58cca0bde708a5c3b073ed77e18b62fe81d6c017
* | nuplayer: don't resume if player is resetingRonghua Wu2015-11-051-0/+1
| | | | | | | | | | Bug: 24712426 Change-Id: I58cca0bde708a5c3b073ed77e18b62fe81d6c017
* | RTSP: add default implementations in NuPlayer for rtsp changesLi Sun2015-10-291-1/+1
|/ | | | | | | Change access modifiers in NuPlayer and add the util function in AVNuUtils Change-Id: I365cce317b4478cd1d12e458b5849ea842062a28
* NuPlayer: Teardown sequence for pcm offloadHaynes Mathew George2015-10-091-0/+2
| | | | | | | | | | | | On a teardown event, follow proper shutdown sequence if the decoder instance type is not passthrough. This is needed to ensure NuPlayerDecoder, MediaCodec do not enter an invalid state due to forced clear while handling a teardown event. CRs-Fixed: 916643 Change-Id: Ied5df07dc8567974ef02e3a0bb415795f31f2ed2
* NuPlayer: Fix for PCM offload fallback on BTPreetam Singh Ranawat2015-10-091-0/+1
| | | | | | | | | | | | | | -Start the Decoded PCM offload playback on speaker or headset and connect BT, audio is not played on BT. -During tear down event on BT connection, instantiation of decoder is initated before actual shut down of decoder completes.So decoder is not getting instantiated again after tear down event. It is a race condition between instantiation of Decoder and shut down of decoder. -Defer the instantiation of decoder in intermediate state CRs-Fixed: 916643, 829392 Change-Id: Ic346cb7bb7b1babe21618daa8f8746c00f4b61b3
* httplive: refactor for HLS customizationLi Sun2015-10-061-1/+1
| | | | | | Change access modifiers and add overridable methods in HLS stack. Change-Id: Iae8e77246cc6643735af18617717fba713d0038c
* Stagefright: Extensions for HTTP progressive streaming.Apurupa Pattapu2015-10-061-2/+3
| | | | | | | | | - Extend NuPlayer setDataSource for streaming - Create ExtendedCachedSource only for MediaPlayer streaming usecases by passing a flag to DataSource to use extended cache - Add extension for MediaHTTP Change-Id: Ic87c3744bf905eb8742863951b809e38d0a60339
* AVCustomizations: Enable 16 and 24 bit PCM offload.Preetam Singh Ranawat2015-10-061-2/+5
| | | | | | | | | | | | -create extended decoder and renderer -add change to pass bit width and format info to renderer. -add change for PCM conversions -add changes for time calucation Conflicts: media/libmediaplayerservice/nuplayer/NuPlayer.cpp Change-Id: I3363140fad441a7746884076c40b46e777f2e06e
* Stagefright: Make classes customizable and add AV extensionsPraveen Chavan2015-10-061-2/+2
| | | | | | | | | | | Change access modifiers and qualify methods with virtual, to allow extensions. Add facility for loading customizations (Extended classes) dynamically. Conflicts: media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp Change-Id: Icc8965754fb1c73175a13a9ad24c19665ad60988
* 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