summaryrefslogtreecommitdiffstats
path: root/media
Commit message (Collapse)AuthorAgeFilesLines
* 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
* libstagefright: Increase raw decoder buffers to 8Yamit Mehta2015-10-061-1/+1
| | | | | | | | | | | | | | For WAV clips with wrong header values, the first attempt at PCM offloading is unsuccessful. This leads to the creation of a raw decoder and another attempt at offloading is tried with decoded PCM offload. This attempt succeeds, and the graph now has a GenericSource, NuPlayerDecoder and NuPlayerRenderer in it. Raw decoder has 4 output buffers, but this is not enough to fill the data at the rate NuPlayerRenderer needs for offloading. Fix this by increasing the buffer count for raw decoder. Change-Id: I29acc6b35fa9d5ab94e1df551f4cd89685527162
* nuplayer: Fix max buffer size for audio only streaming playbackAmit Shekhar2015-10-061-1/+3
| | | | | | | | | | Currently, audio only streaming playback with very low frame size faces underrun in compressed playback. This causes underruns while playing initial frames. By increasing the max buffer accumulation limit in Generic source, the underrun is avoided. Change-Id: I37949f65b9a08d0776f2346d665399be2ecd0265 CRs-Fixed: 875129
* Stagefright: video: Default thumbnail generation to hardware decoderPraveen Chavan2015-10-061-1/+1
| | | | | | | | | Prefer hardware decoder over software for better performance and more coverage of supported content. Eg: Software decoder may not handle interlaced content properly Change-Id: I045ab87cb6877f3318f38c50f06d32e19595d83b CRs-Fixed: 899714
* Stagefright: Update start-time once input-time reaches expected start-timePraveen Chavan2015-10-061-0/+6
| | | | | | | | | Not doing so will result in CameraSource always dropping frames since updated-timestamp (0-based) will never intersect start-timestamp (based on system-time). Change-Id: I696aef51398ed59be0bad7e0e6f9a85504c1f408 CRs-Fixed: 899460
* NuPlayer: Fix ANR while resetting RTSP playbacklubiny2015-10-061-0/+11
| | | | | | | | | | - When network is poor, the response of RTSP teardown won't be received in time, so ANR will happen. - With this patch, a teardown message will be sent when timeout expires, in order to avoid ANR. Change-Id: I3f9efd9fefa66104ad452559ced5ff5218d73a66 CRs-Fixed: 650866
* rtsp: Limit subframe processing to available buffer rangelubiny2015-10-061-0/+5
| | | | | | | | | | With some RTSP servers, the mpeg4 audio subframe count is inconsistent with the available data. When attempting to process subframes that would exceed that available buffer boundaries, this causes a memory access violation. Add buffer size checks to avoid this crash. Change-Id: I030c6f02c478e216c20d9b24fbd6b3a9c1530889 CRs-Fixed: 737819
* rtsp: Don't post AUTimeout check during pause when EOS is nearingLi Sun2015-10-062-0/+17
| | | | | | | | | | | | | | | | Fix crash issues while repeated pause/resume. The root cause is: While doing repeated pause-resume operation in RTSP streaming, some times, the accessunit timeout check is being posted when the streaming paused, and even after receving the EOS. Due to this check, after the EOS, the number of packets received will be zero and the session gets Teardown while the streaming is paused. Upon resume, it leads to check failure and crash. Cancel the timeout check if pause is not issued to MyHandler when nearing EOS. Change-Id: I897d8e18b0dbc29fc1099e7b3d1b5ccc16426a4d CRs-Fixed: 636312, 676054
* rtsp: Add a property "rtsp.transport.TCP"Surajit Podder2015-10-061-0/+9
| | | | | | | | | | | | | | - Add property "rtsp.transport.TCP" Value "true" - TCP Value "false" - UDP default value - false - This property can be used to test rtsp streaming over TCP directly for network compatibility testing Change-Id: Ic27b440067af49e7e3bcc45d86eb7a17ae9db54f CRs-Fixed: 435538
* AudioTrack: Fix for offload to BT/SSR fallback at EOSPreetam Singh Ranawat2015-10-061-0/+6
| | | | | | | | | | | -With big offload buffer size, connect BT or trigger SSR while waiting for stream to be completed, playback is moving to next clip. -avoid notifying EOS to client on any error while waiting for stream end event if it is offload playback. Change-Id: I748ed299df106385eaa030faecd0df6dc8e3c176
* audio: add encoding support for linear PCM formatMingming Yin2015-10-062-1/+18
| | | | | | - add encoding support for linear PCM format. Change-Id: Iecf402064d67d35d5057b814c842d79af92756d0
* stagefright: Stop MediaSource if buffer setup failsApurupa Pattapu2015-10-061-0/+2
| | | | | | | | | extractVideoFrame can be called multiple times with the same MediaSource object. This fix will ensure that MediaSource state is cleared for all failure cases. CRs-Fixed: 894140 Change-Id: Iecfcae7c78d74a1aa7b5a218b9ba28b2ab1ed4a9
* libmedia: avoid processing stale callback events when track recycledYamit Mehta2015-10-061-0/+6
| | | | | | | | | | | | when track is reused from SoundPool and started again, the previous callback events could be processed immediately after track started, the new playback will be stopped then clear the stale cblk flags when recycled track is started again to avoid triggering unexpected callback events Change-Id: Ifc6fd973c655e9c7866391e7004016a7df9a9b9c CRs-Fixed: 819973
* video: Add support for MPEG4 DP video clipsSurajit Podder2015-10-062-1/+9
| | | | | | | | | Hardware decoder does not support MPEG4 DP clips Add changes to use software decoder MPEG4 DP streams: * Add mapping for MPEG4DP mime to compression type * Add MPEG4 DP mime to software MPEG4 decoder Change-Id: Ic763b7b5714ce6533c07e8bb65f0ecd09dc24e9e
* NuPlayer : send the correct streaming info while opening audio sinkPreetam Singh Ranawat2015-10-065-9/+17
| | | | | | | | | -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: use updated method for getting sample bitsSharad Sangle2015-10-063-5/+5
| | | | | | | method getPcmSampleBits is now getAudioSampleBits as it is extended for WMA, so use the updated method Change-Id: Ic0620fd009a8544db138f088cfd2e7e4a4ff390c
* NuPlayer: Clear stale track packets on seekXiaoming Yang2015-10-061-0/+1
| | | | | | | | | | | | | | EOS isn't notified to nuplayer immediately upon seek. Stale packets before seeking is still held by track, thus EOS won't be returned until all packets are consumed. To fix this issue and align nuplayer's behavior with awesome player, stale packets needs to be cleared on seek. Change-Id: I00d825cad7a9f3de1daf494078e7379dca8eba2e CRs-Fixed: 828785
* AudioOutput: Consider output bit width when reusing offload outputHaynes Mathew George2015-10-062-0/+19
| | | | | | | | Consider bit width of the incoming audio stream before deciding to recycle the previously used AudioTrack object. CRs-Fixed: 802834 Change-Id: I33058fb4af2fb3b10714b14d8591f5f6b81e57d1
* libmedia: fix for underrun and gapless issue.Preetam Singh Ranawat2015-10-062-0/+5
| | | | | | | | | | | -change offload shared buffer size to avoid failure to restart on an underrun. (Merged changeid I4dd9e5e5a7c8aebb34b13f2e6626b73adc2ba557) -fix for gap seen during gapless playback due to big buffer size. (Merged changeid If5234059aa4629e9eb02e236a43214de9ef2204b) Change-Id: I1ad25d3789aced6b804aa695485341bfa4e97eae
* NuPlayer: Add support for getFormatMeta for HLSPreetam Singh Ranawat2015-10-062-0/+16
| | | | | | | | | | | HTTPLiveSource does not support getFormatMeta API. Because of this, offloading is not possible as offloading requires access to format info. Fix this by implementing getFormatMeta API for HLS use cases. CRs-Fixed: 780001 Change-Id: Ia5121892efe4c7ee534f7220c6f33ff9100f0402
* AudioSink: Fix for gapless offload playbackPreetam Singh Ranawat2015-10-061-2/+2
| | | | | | | | | | | | | | | Gapless mode is not working for offload playback due to mismatch in flags of current track and next track to be played. AUDIO_OUTPUT_FLAG_DIRECT is added in AudioTrack flags for current track which does not match exactly with requested flags for next track. Because of this mismatch, reuse of the AudioTrack is not allowed. To fix this, update audio sink flags with requested flags and use track flags only to setPlaybackRate if AUDIO_OUTPUT_FLAG_DIRECT flag is not set Change-Id: I52761ccd854b66a7bc218e83c9b44598771c46f7
* NuPlayer: Fix for audio mute after call terminationPreetam Singh Ranawat2015-10-061-2/+4
| | | | | | | | | | | | | - Audio is muted while resuming music after call termination - Offload track is tear down by audio flinger/policy manager during call & TEAR_DOWN event is propgated to audio track. Audio track returned error on resume of playback since track is already closed - Add error handling in nuplayer during resume & force recreation of audio track from NuPlayerRenderer if resume fails CRs-fixed: 759500 Change-Id: Ic84e692511b085e75a96ae711e5b1585fce47758
* RTSP: add RTSP extensions for customization supportLi Sun2015-10-067-6/+67
| | | | | | | | Add extensions for customization support in rtsp stack. Provide default implementations in AVMediaServiceUtils. Change-Id: I67adeb54b35d1f01911625bb9bad27e94ad0caf0
* audio: Support for compress offload recoveryPreetam Singh Ranawat2015-10-061-7/+15
| | | | | | | | | | | | - Add support for time stamp calculation on time stamp query failure during SSR for playback session - Make sure the timestamp query is made does not acquire the same lock. I2ea8eacb1269895f3254da356ed0eab3bc1c2b9b,n,z CRs-Fixed: 683288 Change-Id: I08a5ea333732b76bb9df110d905daae074b7864b
* libstagefright: Update extractor for specific formatsApurupa Pattapu2015-10-063-4/+14
| | | | | | | | | - New API updateExtractor is used to either keep default extractor or use extended extractor based on media track's mime types. CRs-Fixed: 884793 Change-Id: I63dcc4b2d3901dbc3287eb43a1f4ce2767897258
* audio: add support for 5.1 channel recordingMingming Yin2015-10-062-2/+2
| | | | | | - Add support for 5.1 channel recording Change-Id: If060fffb2e198f516f40e85390489de2108be5d1
* audio: add support for wma-pro wma-lossless decodingSathishKumar Mani2015-10-063-3/+3
| | | | | | | added support for wma-pro and wma-lossless audio decoding Change-Id: I73ae2c2ccabafebc49d4b2e074da23cb4e51a3ce
* Audio: post error to client during SSRDhanalakshmi Siddani2015-10-062-5/+14
| | | | | | | - Add support to post error to client if SSR is triggered during NT mode encoding Change-Id: Idf10939f1eb0c719a692e4f53f6e3040633fab40
* libstagefright: Increase raw decoder buffer size to 192 kPreetam Singh Ranawat2015-10-061-2/+2
| | | | | | | | - Currently raw decoder's buffer size is 64K which causes assertion failure for media files having higher frame size Change-Id: I33258213726d9ed5f730c877ab464868cc951652 CRs-Fixed: 761465
* video: Add key to indicate thumbnail modeSurajit Podder2015-10-061-0/+2
| | | | | | | Add key "thumbnail-mode" in metadata to signal thumbnail decoding. Change-Id: I9d78f026989c48f62c403cbb88dc24c5f74771a4
* audio: add parameters for device shutdown notificationDhanalakshmi Siddani2015-10-061-0/+1
| | | | | | - Add new define and variable to receive device shutdown notification Change-Id: I06d7a8a36a5bf5490818561ec3bb9c5d43c5bf37
* audio: add support for vorbis offloadingWeiyin Jiang2015-10-067-14/+29
| | | | | | add support for vorbis offload playback Change-Id: Ic51a9d3e0fad1114908f59bfbc6ce62c6fd9fdea
* frameworks/av: Changes related to DASHManikanta Sivapala2015-10-063-4/+13
| | | | | | | | | 1) Add MEDIA_QOE event type 2) Open certain methods for extension by declaring them as virtual 3) Add DASH_PLAYER as a new player type 4) Creating DASH Player factory Change-Id: I0376841530218703fabd9d4f45d2c9a32a1f52b2
* libeffects: validate channel mask in downmixer configureDhananjay Kumar2015-10-061-3/+6
| | | | | | | | | | Validate channel mask in downmixer configure, this returns early warning to calling module which can fallback to another downmixing module or return error instead of playing improper data. CRs-Fixed: 862105 Change-Id: Ic19c4913608468d5c5197f65bb5d6a640c9d2d74
* AVCustomizations: include audio header files explicitlyDeva Ramasubramanian2015-10-061-0/+2
| | | | | | | Fixes compilation errors due to audio_format_t and AudioTrack not being found. Change-Id: Ib30f94c2b4540a3dbfd2388f43f5d229be047ec7
* stagefright: Fix to play a specific Mp4 clip due to SYNCH_LOST_ERROR.Mingming Yin2015-10-061-5/+8
| | | | | | | | - Unable to play a Specific Mp4 clip. - Mp3 playback is stopped if the Decoder errors out with SYNCH_LOST_ERROR. - Ignore the frame with SYNCH_LOST_ERROR and play silence instead. Change-Id: I6b94a83cf89e8bc6792d8ee3804042d629aa505b
* Stagefright: Extensions for HTTP progressive streaming.Apurupa Pattapu2015-10-0610-19/+53
| | | | | | | | | - 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