| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Warn allocation failures explicitly rather than crash
trying to access unallocated memory
Change-Id: Ie86c3ac130917e1f4030eb8207ac8350cba7711d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Instrument framework files to log events of interest.
Change-Id: I5157649ccd88a20459c1a72562960f6d5b43e7c0
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
WMV can support different codec-id formats
WMV3 and VC1. Added corresponding mime types.
Change-Id: Id9110ad20eba4d1a053d058d496637e91feb3a35
|
|
|
|
|
|
|
| |
- Fix create APIs to pass metadata as constant reference
CRs-Fixed: 884793
Change-Id: If8cfc9cff9dd48fbe764f438463c3e24763d4f44
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 stack would parse "BYE" message from RTCP packets and
notify NuPlayer which will send the notification to the client.
Change-Id: I461960f28610f998b71a6e1322fe79f9856c7a92
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
| |
-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
|
|
|
|
|
|
| |
- add encoding support for linear PCM format.
Change-Id: Iecf402064d67d35d5057b814c842d79af92756d0
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
-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
|
|
|
|
|
|
|
| |
method getPcmSampleBits is now getAudioSampleBits as it is
extended for WMA, so use the updated method
Change-Id: Ic0620fd009a8544db138f088cfd2e7e4a4ff390c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Consider bit width of the incoming audio stream before
deciding to recycle the previously used AudioTrack object.
CRs-Fixed: 802834
Change-Id: I33058fb4af2fb3b10714b14d8591f5f6b81e57d1
|
|
|
|
|
|
|
|
|
|
|
| |
-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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
| |
Add extensions for customization support in rtsp stack.
Provide default implementations in AVMediaServiceUtils.
Change-Id: I67adeb54b35d1f01911625bb9bad27e94ad0caf0
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
- Add support for 5.1 channel recording
Change-Id: If060fffb2e198f516f40e85390489de2108be5d1
|
|
|
|
|
|
|
| |
added support for wma-pro and wma-lossless audio
decoding
Change-Id: I73ae2c2ccabafebc49d4b2e074da23cb4e51a3ce
|
|
|
|
|
|
|
| |
- Add support to post error to client if SSR is triggered during
NT mode encoding
Change-Id: Idf10939f1eb0c719a692e4f53f6e3040633fab40
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
| |
Add key "thumbnail-mode" in metadata to
signal thumbnail decoding.
Change-Id: I9d78f026989c48f62c403cbb88dc24c5f74771a4
|
|
|
|
|
|
| |
- Add new define and variable to receive device shutdown notification
Change-Id: I06d7a8a36a5bf5490818561ec3bb9c5d43c5bf37
|
|
|
|
|
|
| |
add support for vorbis offload playback
Change-Id: Ic51a9d3e0fad1114908f59bfbc6ce62c6fd9fdea
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Fixes compilation errors due to audio_format_t and AudioTrack not being
found.
Change-Id: Ib30f94c2b4540a3dbfd2388f43f5d229be047ec7
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
| |
- 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
|