summaryrefslogtreecommitdiffstats
path: root/media
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Opt out of clang till issues are fixed"Linux Build Service Account2015-10-152-0/+4
|\
| * Opt out of clang till issues are fixedAravind Asam2015-10-092-0/+4
| | | | | | | | | | | | Needed for moving to clang Change-Id: I984ce0d452bcd9025d743c0f081bb0d22587b106
* | Merge "libstagefright: Allow for CameraSourceTimeLapse to be extended"Linux Build Service Account2015-10-133-4/+33
|\ \
| * | libstagefright: Allow for CameraSourceTimeLapse to be extendedDeva Ramasubramanian2015-10-093-4/+33
| |/ | | | | | | | | | | | | Add in hooks to route CameraSourceTimeLapse creation to AVFactory so that we can add our customizations. Change-Id: I309a247ba6e3c5626cfba096677a6dbfeae543f3
* | Merge "NuPlayer: Teardown sequence for pcm offload"Linux Build Service Account2015-10-122-0/+49
|\ \
| * | NuPlayer: Teardown sequence for pcm offloadHaynes Mathew George2015-10-092-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "NuPlayer: Fix for PCM offload fallback on BT"Linux Build Service Account2015-10-122-0/+18
|\ \ \ | |/ /
| * | NuPlayer: Fix for PCM offload fallback on BTPreetam Singh Ranawat2015-10-092-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -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
* | | Merge "nuplayer: handle error from MediaCodec in Decoder handleAnOutputBuffer"Linux Build Service Account2015-10-121-0/+5
|\ \ \
| * | | nuplayer: handle error from MediaCodec in Decoder handleAnOutputBufferShalaj Jain2015-10-091-0/+5
| | |/ | |/| | | | | | | | | | | | | | | | MediaCodec could send out message of output buffer available right before it hits an error and clears its buffers. Change-Id: I1b11c88cdcb3fca7ddd6103c6d3d28642304f079
* | | Merge "Stagefright: Transition to uninitialized state after freeing node"Linux Build Service Account2015-10-121-0/+1
|\ \ \
| * | | Stagefright: Transition to uninitialized state after freeing nodePraveen Chavan2015-10-081-0/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the component is force-released after timeout, there could be a race condition where component posted a message just before it was released. This posted message will cause ACodec to wrongly invoke OMX API on the component which was freed already. Move ACodec to uninitialized state where all component messages will be safely ignored. Change-Id: I71da7c7d021210fd6bed44761740161a5d8894e7 CRs-Fixed: 884165
* | | Merge "Revert "Revert "mediaplayer: make frame-accurate avsync configurable"""Linux Build Service Account2015-10-111-0/+18
|\ \ \
| * | | Revert "Revert "mediaplayer: make frame-accurate avsync configurable""Surajit Podder2015-10-061-0/+18
| |/ / | | | | | | | | | | | | | | | This reverts commit e17afa888040eb5fbd31249305efd88ee03bb5bc. Change-Id: I7afb6a055d3efb08fdbdff19f0bbad01934614e8
* | | Merge "libmedia: return error if getRenderPosition fails"Linux Build Service Account2015-10-101-3/+7
|\ \ \
| * | | libmedia: return error if getRenderPosition failsSatya Krishna Pindiproli2015-10-061-3/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | Currently, if the call getRenderPosition() fails, no error is propagated to the caller. As the handling is already present in NuPlayerRenderer, return an error if the call fails. CRs-Fixed: 912730 Change-Id: I01e3348ffd696ce781287451b9a9478b50037ade
* | | Merge "httplive: Ignore seek request for livestreaming"Linux Build Service Account2015-10-091-1/+5
|\ \ \
| * | | httplive: Ignore seek request for livestreamingSanthosh Behara2015-10-061-1/+5
| |/ / | | | | | | | | | | | | | | | | | | Check added in HTTPLiveSource to throw error if seek is called in live streaming usecase. Change-Id: I1d478ea506734bd9b6bbfba4f04649be398f3c7a
* | | Merge "NuPlayer: Use ".m3u8" in substring search to determine HLS URL"Linux Build Service Account2015-10-091-1/+1
|\ \ \
| * | | NuPlayer: Use ".m3u8" in substring search to determine HLS URLSanthosh Behara2015-10-061-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In IsHTTPLiveURL(), "m3u8" is being used in sub-string comparison to determine if the given URL is HTTPLiveURL or not. This can lead to false results incase if the given URL has "m3u8" as part of it. Hence use ".m3u8" in strstr() instead of "m3u8". Change-Id: I7f4a3c641d831b3ef77d166701f3e3edabdaebc0
* | | Merge "AudioSystem: Fix race condition in accessing ioDescriptors"Linux Build Service Account2015-10-091-4/+10
|\ \ \
| * | | AudioSystem: Fix race condition in accessing ioDescriptorsPraveen Chavan2015-10-061-4/+10
| |/ / | | | | | | | | | | | | | | | | | | | | | The vector mIoDescriptors can be simultaneouly modified and accessed by 2 threads. Acquire a lock while wrapping the ioDescriptor in a sp<> Change-Id: I73c79ef8eca092b500a7ead3a5ebd0bcf75f9920
* | | Merge "Stagefright: add a NULL check before accessing camera params"Linux Build Service Account2015-10-091-0/+5
|\ \ \ | |_|/ |/| |
| * | Stagefright: add a NULL check before accessing camera paramsPraveen Chavan2015-10-071-0/+5
| |/ | | | | | | | | | | | | | | Camera may return NULL params if the remote object is dead. Check for NULL and report error rather than crash. Change-Id: Id1fcd04dc187aadf00ca4ec5e48fb495c3369c92 CRs-Fixed: 906099
* | libstagefright: Set Intra periodManikanta Kanamarlapudi2015-10-073-0/+15
|/ | | | | | set intra period for HEVC encoder Change-Id: Id2b3e71b746eaaed76118126d44ad83458d68520
* libmedia: close secure buffer file descriptorManikanta Kanamarlapudi2015-10-061-1/+1
| | | | | | | call closeFileDesciptor for secureBufferId to avoid fd leaks. Change-Id: I8fe8923795f8cfb7f67fc82a1f7d99334940964b
* httplive: refactor for HLS customizationLi Sun2015-10-069-13/+31
| | | | | | Change access modifiers and add overridable methods in HLS stack. Change-Id: Iae8e77246cc6643735af18617717fba713d0038c
* Stagefright: Addition of DS capabilityManoj Kumar AVM2015-10-061-1/+4
| | | | | | | Adding support for sending and receiving DS Mode events. Change-Id: I5be1c1e9b7c33b55f0f3aa71725b90cd0f90f0ad
* Stagefright: Enable custom allocation mode.Shivaprasad Hongal2015-10-064-7/+29
| | | | | | Enable custom allocation mode Change-Id: Idf3f6c0eb9d17d361d2e5b6c36b1fe7586236565
* stagefright: Add support for custom size i/p buffervivek mehta2015-10-068-10/+119
| | | | | | | - handle non default input buffer size - fix issues associated with non-default buffer size Change-Id: Iad31f5c85601983b01e18e130b1c3eecb3988e30
* video: Modify classes to support camcorder pause/resumeSurajit Podder2015-10-0610-16/+81
| | | | | | | | | * Modify MediaRecorder, CameraSource, AudioSource to be extendable. * Add hooks to instantiate extended implementations to implement pause/resume. Change-Id: I847263fc69e4f613c5ea60fb6809c7da176d3a8d
* video: Port AOSP fixesSurajit Podder2015-10-067-4/+38
| | | | | | | | | | | | Includes following fixes: f510d0c libstagefright: Disable multi slice mode for video encode ca46843 audio: Fix for failure in CTS MediaRecorderTest cases b4d0490 libstagefright: check the audio source when adding to MPEG4Writer 89c6c3f libstagefright: Allocate cached camera buffers for sw encoders f2c387b libstagefright: Choose target specific media_codecs.xml f3e7122 libstagefright: Implement fallback mechanism to SW decoder Change-Id: I90398b2fead1f4e163935bf1db342e24275f7933
* audio: add support for extended audio encodingMingming Yin2015-10-062-8/+20
| | | | | | - add support for EVRC, QCELP, and LPCM encoding. Change-Id: I2f93a88ed5c9bd502399ef145a5802d1a15fcc45
* libstagefright: MPEG4Writer: Add support for HEVC muxingLubin Yin2015-10-067-10/+128
| | | | | | | | | | | | Changes done to enable HEVC muxing - writing HVCC atom - configure HEVC encoder Fix HEVC flag initialization Check for HEVC for single track usecase Change-Id: I1757d0c442e7cc3ef251431f220395131a1eb4ec
* audio: add support for HW AAC encoderSathishKumar Mani2015-10-062-2/+7
| | | | | | | | Add support for HW AAC encoder by including it in the list of available encoders and use it for encoding only if system property 'qcom.hw.aac.encoder' is set Change-Id: I08279fb077f4675736ed76d26c2681a2d1776aab
* avextensions: Add support for Codec Extension featuresShalaj Jain2015-10-0614-14/+57
| | | | | | | | | | Add support for Codec extension features like skype, vqzip, b-frame encoding, prefer adaptive playback etc. Add extensions to support encode batching. Also enable Werror for libavextensions. Change-Id: Ia342d4abe4bb1e21b9ff2b8213fb96421485a333
* Stagefright: Add Checks for allocationsSathishKumar Mani2015-10-0610-7/+25
| | | | | | | Warn allocation failures explicitly rather than crash trying to access unallocated memory Change-Id: Ie86c3ac130917e1f4030eb8207ac8350cba7711d
* audio: Audio resampler support for 192Khz playbackYamit Mehta2015-10-061-0/+9
| | | | | | | | | | | | | | | | | | | | | Add support for QTI audio resampler audio: Audio resampler support for 192Khz playback Change-Id: Ia8f24a0874ebf6e16ef7bd1f2759a14f47149875 audio: Add audio mixing support for qti resampler Change-Id: Ib657aa12b2a72323564148c302ff8891e1bb7433 AudioMixer: Extend use of QTI resampler for 44.1Khz sampling rate Change-Id: I2a819dbc9f1e3e280cb4fa79328e331883a3e981 AudioMixer: fill 0s at right place when no more buffers available Change-Id: I50504c5a02eb0c69abfc9b047792b0f6f85b9ce8 audioflinger: add channel count check to use QTI resampler Change-Id: I8f76dd82b72a0dd8b77343e77e0d0545e1be2114 Change-Id: Ia8f24a0874ebf6e16ef7bd1f2759a14f47149875
* libstagefright: Copy the entire buffer from/to OMX componentDeva Ramasubramanian2015-10-061-2/+5
| | | | | | | Presence of OMX extradata in buffers isn't reflected as part of nFilledLen. To avoid omitting the extradata, copy the entire buffer. Change-Id: Ib310dda3dc93693d4ab380912a9997d7ea120be1
* MediaRecorder: Handle 24-hour timelapse durationParas Nagda2015-10-061-1/+1
| | | | | | | | | | Use float operations to derive the max-time-between- frames from capture-rate. With default (double) precision, calculated value exceeds 86,400 seconds (1 day) limit if app configures captureRate = 1 / 24 hours. Change-Id: Ia171cfa6a45ad315beb55340651abb8066566b26
* stagefright: Stability fixesShalaj Jain2015-10-062-1/+4
| | | | | | | | | | | Add a null check around MediaCodec release to avoid the warning from AMessage about target handler being gone. Add bufferlock in updateBuffer to avoid race condition between info->mFormat being assigned to mOutputFormat while mOutputFormat is being updated at the same time. Change-Id: Ibc5a9a79a840d1c15a99be7c74ded1588edf3918
* NuPlayerRenderer: Handle AMessage post error in openAudioSinkLeena Winterrowd2015-10-061-2/+2
| | | | | | | | | AMessage::postAndAwaitResponse can fail if the target looper no longer exists or if allocation of the reply token fails. Check for error in these cases to avoid deferencing a NULL response. CRs-Fixed: 902117 Change-Id: I52d838e93768ba5b431a0ed8c74a67a5575f6685
* SEEMP: add more framework instrumentationWilliam Clark2015-10-061-0/+3
| | | | | | Instrument framework files to log events of interest. Change-Id: I5157649ccd88a20459c1a72562960f6d5b43e7c0
* libstagefright: Use stride/slice-height instead of w/h for buffer dimsDeva Ramasubramanian2015-10-061-2/+4
| | | | | | | | | | The stride and slice are better suited as dimension parameters to ColorConvertor, as it considers the width to be be "line length". This fixes thumbnail generation issues for clips with strange resolutions, where the stride != width. Change-Id: I84143956a113cf1976202bd9c4ddac988278a5c0
* libstagefright: Add mime type for VC1 codecManikanta Kanamarlapudi2015-10-061-0/+1
| | | | | | | WMV can support different codec-id formats WMV3 and VC1. Added corresponding mime types. Change-Id: Id9110ad20eba4d1a053d058d496637e91feb3a35
* stagefright: Update extended extractor APIsApurupa Pattapu2015-10-063-6/+7
| | | | | | | - Fix create APIs to pass metadata as constant reference CRs-Fixed: 884793 Change-Id: If8cfc9cff9dd48fbe764f438463c3e24763d4f44
* Stagefright: Delay the force-shutdown of node after 10 secondsPraveen Chavan2015-10-061-2/+2
| | | | | | | | | | | | since the node can take more than (default) 3 seconds to transition to Exec --> Idle -> Loaded. In the event of freeing node before the component has transitioned to loaded, there may be race-conditions trying to invoke methods on a non-existant component and bad things can happen. Increase timeout to 10 seconds till the checks are in place. Change-Id: I97f698422dfe99b47b3bafb605b642a247b44110 CRs-Fixed: 884165
* rtsp: notify the client when receiving BYE message in RTCPLi Sun2015-10-064-0/+24
| | | | | | | RTSP stack would parse "BYE" message from RTCP packets and notify NuPlayer which will send the notification to the client. Change-Id: I461960f28610f998b71a6e1322fe79f9856c7a92
* httplive: Do not remove audio only playlistSanthosh Behara2015-10-061-1/+2
| | | | | | | | Do not remove audio only playlist. This will enable the player to switch to Audio only from Audio Video and vice versa. Change-Id: I56b9245f3d28ef9f8e31651cc59b494b763f3feb
* rtsp: do not drop early access units of seekable rtspLubin Yin2015-10-061-1/+1
| | | | | | | | | Access units of seekable RTSP will be mapped to normal playtime in RTSPSource, so the negative media time can be adjusted and played normally. Change-Id: I12793dbbf367650e66532195324adb5b5ad8fe85 CRs-Fixed: 866580