summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge "use dedicated looper for GenericSource" into lmp-devChong Zhang2014-08-158-45/+45
|\ \ \
| * | | use dedicated looper for GenericSourceChong Zhang2014-08-148-45/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - handle setVideoSurface in deferred action, and return to client immediately - handle GenericSource's prepareAsync on its own looper, instead of sharing looper with NuPlayer - let HTTPLiveSource share looper with LiveSession, instead of NuPlayer - remove reflector in RTSPSource Bug: 16892748 Change-Id: I1aed557320052012065f5a90adbcb03c238da988
* | | | nuplayer: create AudioSink early to verify offload is possibleAndy Hung2014-08-152-133/+156
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 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
* | | cache up to 200K bytes (instead of 10 buffers) in DecoderPassThroughChong Zhang2014-08-132-4/+15
|/ / | | | | | | | | Bug: 16892521 Change-Id: I0e2da4134a37e632f9f2c29d1d27d8fded7a7863
* | Merge "propogate heartbeat error code to app" into lmp-devChong Zhang2014-08-111-1/+5
|\ \ | |/ |/|
| * propogate heartbeat error code to appChong Zhang2014-08-111-1/+5
| | | | | | | | | | Bug: 16885604 Change-Id: Ib6c60f0ef8cf72aa1aac67a75121142bff304018
* | NuPlayer: getSelectedTrackRobert Shih2014-08-084-0/+51
|/ | | | Change-Id: If5251f89b881e7f268e11a06cd3685d794c958b6
* some clean up of video size change notificationChong Zhang2014-08-087-97/+109
| | | | | | | | need to consider rotation when notifying video size change after initial prepare, in addition to after an output format change. Bug: 16870964 Change-Id: Icd1c9e901ac932e720ce95b8a983c0edcf251c35
* delay data source creation for GenericSource prepare timeChong Zhang2014-08-083-21/+80
| | | | | | Bug: 16708180 Change-Id: I9d578ef5e2edaed50279d28d3831c68556468f39
* Revert "NuPlayer: don't feed decoder input data during flushing."Wei Jia2014-08-071-5/+5
| | | | | | | | | | | | The previous patch results in MediaBuffer leakage. This reverts commit 69a85b792c31033a99c8858e3b1a3c2ea68b6278. Bug: 14955925 Bug: 16303659 Bug: 16467066 Bug: 16849601 Change-Id: Ib1892b7603a97e12b7ee228fd5a4009700cdc988
* Merge "httplive: timestamp reporting, track selection" into lmp-devRobert Shih2014-08-061-1/+1
|\
| * httplive: timestamp reporting, track selectionRobert Shih2014-08-051-1/+1
| | | | | | | | | | | | | | Bug: 15153976 Bug: 15763638 Bug: 16351654 Change-Id: I4462276d4b7342647286a0ca4be11692ce52ff6d
* | some fixes for crash when extractor creation failsChong Zhang2014-08-063-51/+73
| | | | | | | | | | | | | | | | | | | | - prefetch data for sniffing - notify error instead of crashing if extractor is NULL Bug: 16818302 Change-Id: I56ff4996d99ac2811d19d141f7ff7acdd7c1da17
* | Merge "NuPlayer: don't feed decoder input data during flushing." into lmp-devWei Jia2014-08-051-5/+5
|\ \
| * | NuPlayer: don't feed decoder input data during flushing.Wei Jia2014-08-051-5/+5
| | | | | | | | | | | | | | | | | | | | | Bug: 14955925 Bug: 16303659 Bug: 16467066 Change-Id: I7c258b986ae711357bd7e636b79853f8f3959d32
* | | Merge "set secure flag for secure file playback" into lmp-devChong Zhang2014-08-052-2/+15
|\ \ \
| * | | set secure flag for secure file playbackChong Zhang2014-08-052-2/+15
| |/ / | | | | | | | | | | | | Bug: 16786456 Change-Id: I06f18b0e9c3f65e3e127369baa1f9ea8c9307762
* | | stagefright: Pass audio aac subformats in offloadinfoaarti jadhav-gaikwad2014-08-051-0/+9
|/ / | | | | | | | | | | | | | | Pass audio aac sub formats in offloadinfo according to aac profile. Audio HAL can take decision about offload using DSP capabilities Change-Id: Ice277e8b6561b7a7db92c474f23f8041ebb35e8c
* | Merge "GenericSource: timed text support" into lmp-devLajos Molnar2014-07-312-77/+199
|\ \
| * | GenericSource: timed text supportLajos Molnar2014-07-312-77/+199
| |/ | | | | | | | | Bug: 16385674 Change-Id: Ib322cc13488dcadf2409921272cd469304b0af37
* | mediaplayer: add looping support to NuPlayerLajos Molnar2014-07-312-4/+27
| | | | | | | | | | Bug: 16641557 Change-Id: I433158e6e585b4714cfd6d89562ecd0587a07ae2
* | NuPlayer: fix av discontinuity raceRobert Shih2014-07-311-7/+8
|/ | | | | | | | | | | | | | | | | | Assumption: NuPlayer must see both (a/v) discontinuities before resuming. Example issue: Suppose we're changing the video track, so the video source queues a DISCONTINUITY_FORMATCHANGE, and the audio source queues a DISCONTINUITY_NONE. Consider this sequence of events without this change: 1. audio discontinuity seen by player 2. mFlushingAudio = FLUSHED 3. video discontinuity seen by player 4. mFlushingAudio != NONE so no performScanSources is queued 5. video decoding shuts down without being restarted Bug: 15153976 Change-Id: I659550d9c0f883828103142abead857f576f25b1
* GenericSource: support track (de)selectionRobert Shih2014-07-312-63/+319
| | | | | | Bug: 15153976 Change-Id: Idfce856b4ca5fa7853da857757490798bc3ffe1e
* mediaplayerservice: initialize mIsWidevineLajos Molnar2014-07-311-1/+2
| | | | | Bug: 16641557 Change-Id: I77aad6e710117a16093726bf3b36360904fbe148
* Merge "handle rotation in NuPlayer" into lmp-devChong Zhang2014-07-251-2/+17
|\
| * handle rotation in NuPlayerChong Zhang2014-07-301-2/+17
| | | | | | | | | | Bug: 16653284 Change-Id: I54165041da5a13498d627eee1b3ec59ef3c923b0
* | Revert GenericSource track selection changesWei Jia2014-07-302-441/+63
|/ | | | | | | | This reverts commit bace25b0fbcd5101d2db288b0c70c4a239f0e815. This reverts commit eb1735e343a93830df259ae8882160bb0d79dcb5. This reverts commit 05312bc7478feec11d9ae88e951c0857a7a3f28d. Bug: 16660839
* GenericSource: start/stop tracks correctly on selectionRobert Shih2014-07-281-1/+11
| | | | Change-Id: I10343151f930a4ab778a6d2574ab5165af2013ba
* GenericSource: timed text supportRobert Shih2014-07-252-73/+195
| | | | | Bug: 16385674 Change-Id: I954cc463b55af4b93c6a6e714115db4fda729dc8
* Merge "NuPlayer: timed text support" into lmp-devRobert Shih2014-07-254-0/+78
|\
| * NuPlayer: timed text supportRobert Shih2014-07-254-0/+78
| | | | | | | | | | Bug: 16385674 Change-Id: Ifa9fbc17a1276aa774d57b82cdce500876a0b543
* | Reset the value for Vector of pointers.Wei Jia2014-07-241-0/+6
| | | | | | | | | | Bug: 16467066 Change-Id: I3674e07779a59f4d4fa639d066ed1988df89b3f5
* | Merge "GenericSource: support track (de)selection" into lmp-devRobert Shih2014-07-222-65/+311
|\ \ | |/
| * GenericSource: support track (de)selectionRobert Shih2014-07-222-65/+311
| | | | | | | | | | Bug: 15153976 Change-Id: I522b1f9f0ffedf4edbea03a6654a6dbc0262860a
* | Fall back to s/w decoding when audio offloading fails.Wei Jia2014-07-223-1/+48
|/ | | | Change-Id: Icde3d65c964b2a13fb1c6636adcce52ae048a3fb
* nuplayer: support widevine sourcesLajos Molnar2014-07-175-2/+185
| | | | | | | | | | | | | | | | | | | | - handle widevine:// scheme - add separate looper for renderer (as it can block initial buffer handling if all buffers are used) - initiate secure codecs before source is started - don't read secure buffers - share ACodec's input buffers with Widevine source on the decoder side - keep track of mediabuffers released by widevine source - keep track of dequeued input buffers (for safety) - release mediabuffer when buffer is subsequently dequeued. (This was hardcoded into OMXCodec to do this when buffer-empties message was handled, but MediaCodec does not support such functionality.) Bug: 15699665 Change-Id: I4a369443294e45c644be8b0257010e52db1d7c9b
* nuplayer: add widevine support to GenericSourceLajos Molnar2014-07-173-11/+84
| | | | | Bug: 15699665 Change-Id: Ided823bd0b1118bbabb288cf62d6389518f820a9
* GenericSource: implement getTrackCount/getTrackInfoRobert Shih2014-07-162-3/+61
| | | | | Bug: 15153976 Change-Id: I0204c4188d485cda026497469c7cde24f7bd5c95
* Add support of audio offloading for NuPlayer.Wei Jia2014-07-099-46/+636
| | | | Change-Id: Ic83973339fb46a83b48382e6097925f45d200867
* Merge "HLS: do not discard packets when queuing explicit discontinuity"Chong Zhang2014-07-072-3/+10
|\
| * HLS: do not discard packets when queuing explicit discontinuityChong Zhang2014-06-262-3/+10
| | | | | | | | | | | | | | | | | | | | | | in case of explicit discontinuity (#EXT-X-DISCONTINUITY tag in the playlist), do not discard packets that's already queued. (when seeking, the old fetcher will be discarded so this won't affect seeking case.) Bug: 15020526 Change-Id: I5d3fc489df35e3bc44acb1ee7851571cb99cb56b
* | handle emulation_prevention_three_bytes for AVCChong Zhang2014-07-081-2/+2
|/ | | | | bug: 15917805 Change-Id: I824fe7eea807f8faba6b149c31890b7a5df87825
* Parse trex and mehd boxesMarco Nelissen2014-06-231-0/+8
| | | | | | | | | | | | Also get duration from mvhd if available, use that in addition to track durations to determine total length of file, clear track header struct so we don't read uninitialized garbage from it, and take composition time offset into account for proper ordering when B frames are used. b/15669839 Change-Id: Ibf3e35b5c7299bac11d0e78a391545fc325dd2d0
* support for CEA-608 closed captionChong Zhang2014-06-134-3/+376
| | | | | | Bug: 15470448 Change-Id: Ic6a527f5c35a8ee0a08a5b043336e4d193216083
* refactor getTrackInfo()Chong Zhang2014-06-135-30/+97
| | | | | | | | | | | | | (this is in preparation for supporting other cc source) - split into two methods: getTrackCount() and getTrackInfo() - move track info parcelling to NuPlayer - parcel in the mime type of the subtitle format Bug: 15470448 Change-Id: If00724d8c3a2b2319cb9c5f29d3fe76347bfe947
* Added paused state to NuPlayerDecoderWei Jia2014-06-052-2/+20
| | | | | | | | | | This prevents decoder from requesting new buffer until the decoder is resumed, and prevents processing a potential DISCONTINUITY while the player is still flushing. Bug: 13133027 Change-Id: I2f9fa9f00c8583aa6908809cb7c31ddde07cfaf0
* Fix some NuPlayer issues.Marco Nelissen2014-05-282-7/+10
| | | | | | | Fixes OnSeekCompleted callback and calling getDuration immediately after prepare(). Change-Id: Ie58c509005cded278a0e50c87240b0a2d920b7d7
* NuPlayer: use MediaCodec instead of ACodecLajos Molnar2014-03-104-108/+446
| | | | | Bug: 11785204 Change-Id: I1455bfc683469c7a69e565b179aceacbc5c459f5
* Revert "NuPlayer: Use a software renderer when using software codecs"Lajos Molnar2014-03-104-42/+2
| | | | | | | Remove software renderer support from NuPlayer because it is included in MediaCodec. Change-Id: I06e001df76df2e18ea8169620ff33aeec57e5ca2
* NuPlayer side support for seamless format switch.Robert Shih2014-02-243-1/+74
| | | | | | Avoid reinstantiating decoder if seamless format switch is supported. Change-Id: I2c2be08d6da90cc835ec747d04a76db2313dfc7c