summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayerDecoderPassThrough.cpp
Commit message (Collapse)AuthorAgeFilesLines
* NuPlayerDecoder: add synchronous call pause() to ensure decoder will not ↵Wei Jia2015-12-191-1/+0
| | | | | | | | | | request or send out data. Port of AOSP commit: 3bc667014875aba35102941b3997d242c303aa0d Bug: 25372978 CRs-Fixed: 941002 Change-Id: Id66ab9b9961d5a3b9fb783ae73c27ed1c8054db8
* frameworks/av: fix channelmask and source format for pcm filesAmit Shekhar2015-12-191-0/+1
| | | | | | | | | -Update channel mask from channel count if parser reports channel mask to be 0 -Update source format for each buffer by extending call to setPcmFormat when aggregation is not done Change-Id: I1f4ce07e3e784d85e63be03a69ac1395bfa913e2 CRs-Fixed: 948222
* stagefright: Resurrect PCM offloadSteve Kondik2015-12-131-1/+11
| | | | | | | | | | | | | * 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
* NuPlayer : send the correct streaming info while opening audio sinkPreetam Singh Ranawat2015-10-061-1/+1
| | | | | | | | | -For any offload playback NuPlayerRenderer always open the audio sink with isStreaming info as true. -Pass the streaming info to the NuPlayerRenderer while opening audio sink Change-Id: Ic9d5e7ae0b82a316ec4b4a72037519448f1a011c
* audio: add support for vorbis offloadingWeiyin Jiang2015-10-061-5/+5
| | | | | | add support for vorbis offload playback Change-Id: Ic51a9d3e0fad1114908f59bfbc6ce62c6fd9fdea
* AVCustomizations: Enable 16 and 24 bit PCM offload.Preetam Singh Ranawat2015-10-061-0/+2
| | | | | | | | | | | | -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
* NuPlayer: Enhance dumpsys statisticsPraveen Chavan2015-06-101-6/+0
| | | | | | | | 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
* DO NOT MERGE libmediaplayerservice: set priority and operating rate for the ↵Ronghua Wu2015-04-271-0/+4
| | | | | | | | codec used by nuplayer. Bug: 20481562 Change-Id: I9806414962352fbcda726f8274f1cd348c961de0 (cherry picked from commit f19f5d716b39a5d9dc1abdcd5a16a7aaf1b1ab8b)
* NuPlayer: queue a deferred scan sources when flushing during scanChong Zhang2015-04-171-5/+6
| | | | | | | also refactor code to move scheduleRequestBuffers to decoder base. bug: 20267388 Change-Id: I48f16adc6b4d4008f8fcda8b3b01c595ad199f8b
* nuplayer: Has video hint for offloadHaynes Mathew George2015-04-021-1/+4
| | | | | | | | | | | Send a hint indicating whether the clip being played has a video stream from NuPlayer to NuPlayerDecoderPassThrough. This hint is used to open the audio sink with the correct offload config. Currently, NuPlayerDecoderPassthrough always calls openAudioSink with hasVideo set to false causing an unnecessary recreation of AudioTrack. Change-Id: I7bc6c73818b65f9237a6e606721b7d48e1d807b9 CRs-Fixed: 811510
* NuPlayer: play out pending frames on discontinuityChong Zhang2015-03-101-9/+12
| | | | | | bug: 19567254 Change-Id: Iff689e1eea54283095068d68bcdff4c2674af554
* media: switch to new AMessage handlingLajos Molnar2015-03-051-1/+1
| | | | | Bug: 19607784 Change-Id: I94cddcb81f671422ad4982a23dc4acfe57a9f1aa
* Fix NuPlayer assertion on failure to create AudioTrackAndy Hung2014-12-031-12/+9
| | | | | | | | | | 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
* nuplayer: clear pending audio access unit on flush.Ronghua Wu2014-12-011-5/+12
| | | | | | | Also add flag to avoid reading on flush. Bug: 18540219 Change-Id: I2fc351c32c87db9a8c8c2aad12ee2bd56a0370ab
* notify seek complete upon first video output frameChong Zhang2014-12-011-1/+7
| | | | | Bug: 18541814 Change-Id: Ie4e0976885f26eb253460eab371cb181ea85f2db
* tunnel NuPlayer source and decoder inputChong Zhang2014-11-201-125/+225
| | | | | | Bug: 18342383 Change-Id: Ieff1cd3bad2b39d46f127ddd5d5139b919992461
* NuPlayer: tunnel decoder with renderer for data buffer passing.Wei Jia2014-11-141-18/+67
| | | | | | Bug: 18342383 Change-Id: I182928007814c146c01a86196c4fda1d46e74ea4
* mediaplayer: optimize buffer queue managementPhil Burk2014-09-121-22/+40
| | | | | | | | | | 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>
* mediaplayer: limit number of outstanding buffer requestsLajos Molnar2014-09-091-6/+7
| | | | | Bug: 14679336 Change-Id: I94a20ada30a9a25065329a85fc884d32d154d029
* cache up to 200K bytes (instead of 10 buffers) in DecoderPassThroughChong Zhang2014-08-131-3/+13
| | | | | Bug: 16892521 Change-Id: I0e2da4134a37e632f9f2c29d1d27d8fded7a7863
* Add support of audio offloading for NuPlayer.Wei Jia2014-07-091-0/+237
Change-Id: Ic83973339fb46a83b48382e6097925f45d200867