| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Change access modifiers in NuPlayer and add the util
function in AVNuUtils
Change-Id: I365cce317b4478cd1d12e458b5849ea842062a28
|
|
|
|
|
|
|
|
|
|
|
| |
After the initial ctts entry is written, cttsSampleCount
is set to 0, and the next ctts is written with 0 sample
count.
Add change to write ctts entry only for non-zero sample
count.
Change-Id: I457c3c9bdd402138338c340db4187f1d2b9bdbe6
|
|
|
|
|
|
|
|
|
|
|
|
| |
InstantiateDecoderAction is executed after performing reset.
By the time performReset call is over, mSource is cleared and
instantiateDecoderAction is executed on a NULL mSource - causing
crash. At this point of time, mSource is already reset and it is
not intended to be used in future, so, we can safely return.
Check for NULL to avoid crash.
CRs-Fixed: 902831
Change-Id: If438da2b8c778c6db3640c0bc2e53d3ef68d286c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
MPEG4Writer makes a copy of encoded buffer to avoid holding on
to the read buffer. This is not needed with MediaCodecSource,
as the encoded-output buffer is already copied to a heap buffer.
This saves a copy and some power.
However, cloning the buffer is still needed for upstream sources
that cannot afford to keep the buffers with writer up until they
are released.
So, pass a hint in buffer's metadata to indicate if it is OK
to delay the release and not copy the buffer
Change-Id: Ib59ac29ebc6ce4afd6fc272688a8260438ab1517
|
|
|
|
|
|
| |
size_t should use the portable %zu
Change-Id: I974d4be7d4921a8c3fc684d24721a231c5b91170
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Original work by Michael Chen - https://github.com/omxcodec
* Kitkat port by Chih-Wei Huang / Android X86 project
* Additional fixes by Arcee and Cyanogen
* High resolution support by Cyanogen
* Lollipop port and refactoring by Cyanogen
* Marshmallow port and refactoring by Cyanogen
------
libstagefright: add null checking to addPlugin
libstagefright: fix error handling of dlsym()
According 'man dlsym', a NULL return from dlsym() doesn't indicate an error.
The correct way to test for an error is to call dlerror() to clear any old
error conditions, then call dlsym(), and then call dlerror() again to check
whether its return value is not NULL.
libstagefright: add more media mimetypes
This is the first step to add the ffmpeg plugins.
libstagefright: add ExtractorPlugin
The patch allows to load an ExtractorPlugin to extend the functions of
DataSource::sniff and MediaExtractor. A plugin has to implement a C
function getExtractorPlugin to fill the MediaExtractor::Plugin struct.
The filename of the plugin could be specified by the
media.stagefright.extractor-plugin property.
Change-Id: I995a37a4f1ab4bba6ca3c24c7001a27a1e3ccb90
FLACExtractor: Add more sample rates support
In FLACExtractor.cpp, it has function to check file's sample rate.
If the input sample rate is not in its list, it will return "unsupported
sample rate" issue. Modify code to make other sample rates (100,1k,42k,46k)
pass the check
Issue: AXIA-1441
Change-Id: I48f91119275560ec6d00feb0dedc70d10aa55262
Signed-off-by: Xiaobing Feng <xiaobing.feng@windriver.com>
Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>
libstagefright: add ffmpeg components
libstagefright: add more decoders
Add support for wma, wmv, ra, ape, dts decoders.
Change-Id: Iaf48a806aa0cef7d9bcb848383fc3d778c8bd248
libstagefright: allow to use the extended extractor in priority
If the meta contains the string "extended-extractor-use",
use the extended extractor first.
add support for rv20, rv30
add ffmpeg heuristic decoder
Change-Id: I5eed11b563ca7f15d44bacfb795d6f3da08ab883
add HEVC(H.265) decoder and cleanup
Squashed the following commits of branch cm_maguro-10.1 from
https://github.com/omxcodec/android_frameworks_av.git
by Michael Chen <omxcodec@gmail.com>
defb904 remove MEDIA_MIMETYPE_AUDIO_MP2
8036958 add fetchUriFromFd func to get file name
91bc7d5 fix videoCompressionFormatString and audioCodingTypeString funcs
f03069f reset FRAME_DROP_FREQ to 0
718b99a add HEVC(H.265) decoder
84f8bf6 cleanup
f026c93 cleanup
440614a add debug info
Change-Id: Ie75db0778f633357e2280aef6d47a0fa3beb823e
AwesomePlayer: use AwesomeLocalRenderer for OMX.ffmpeg.* components
stagefright: Remove duplicate types from QC media defs
Change-Id: I50ecafe79a2985d0868a1ac82464d6ca448aa2c5
Conflicts:
media/libstagefright/ExtendedMediaDefs.cpp
media/libstagefright/OMXCodec.cpp
libstagefright: Re-introduce a QCOM_HARDWARE ifdef after the FFMPEG commit
Fixes a build error on non QCOM hardware.
Change-Id: I4a4268b351d0d8bf748dd03ccea0fbab20ed4314
DataSource: Split off ffmpeg sniffer to a second pass, and only if necessary
ffmpeg's sniffer is intended as a grab-all-that-doesn't-work-elsewhere
extractor. Unfortunately, this causes two issues:
- As written, it requires ffmpeg to whitelist any extractors supported
by stagefright, or else it will blindly override them. This has codebase
sync issues, as shown by the VP9 and WAV accidental overrides
- It imposes an in-depth analysis of _all_ media, even that which we
want to be processed quickly by shipping stagefright plugins (hardware
or not). This is mostly noticeable in network streams and thumbnail
generation.
This patch moves FFmpegExtractor to an independent sniffer queue, and
it only invokes it when the regular MediaExtractor hits 1 of 3 conditions:
1 - The confidence in the identified container type is low
2 - No container is identified at all
3 - A video container was found by other extractors, but only 1 stream
(audio or video) was identified.
Change-Id: Ib96ff4f6bc06223fe0e819a57560d3c872a79ddd
stagefright: OMX.ffmpeg.* are software decoders, ensure they're treated as such
Wherever the component name for OMX.google soft decoders is used to identify
a software-based component, do the same for ffmpeg. Things like memory management
and window buffers care about this.
Change-Id: Ib83561936c7383e8726edb073cea9d78f7d1312f
libstagefright: Don't invoke FFMPEG for MP3
Change-Id: Ia30d25d1a994328827f14a286661cd2e1eaa1181
stagefright: Fix audio codec fallthru
* We shouldn't return an error from setAudioFormat unless it's
really an error since fallthru is necessary.
* We don't even need to do this, since the component name is
checked before calling into mm-parser or FFMPEG.
* Fixes Vorbis decoding after FFMPEG patch.
Change-Id: I4871c62044c6693e5698119dee3a10c20c26e2c7
stagefright: Fix codec lookup bugs on NuPlayer
* Fix use of WMA/WMV software codecs
* Fix mpeg2 software codec name
* Don't override the component name in ACodec. This actually breaks
stuff because the format isn't available in the kInit message.
Change-Id: I93c292e039de5f24c2ccbd6ae2242b06d28fe518
stagefright: Cleanup and improve format parsing
* Move FFMPEG-specific exceptions to FFMPEGSoftCodec
* Add handling for AAC MAIN profile
* Use the new OMX_AUDIO_CodingAndroidAC3 to handle AC3
Change-Id: Ibb806cd2b9dd23dc1e1b2c862fcde40605023a49
stagefright: Keep track of the bit width in the RAW codec
* We need this to push 24-bit PCM around Stagefright and OMX
Change-Id: Ic94ec972162a01545d5dd0ad0bf3eb6c6731f42e
stagefright: Adjust confidence threshold for extended sniffers
* Some sniffers return 0.2 for cases where they only find an audio
track in some containers.
* Change the comparison to also examine files right on this threshold.
* This allows us to score ONE FUCKING HUNDRED PERCENT on the Antutu
Video Test \o/
Change-Id: I78b6ab8a634771e0e290f669801f5b08d6a32a51
stagefright: Fix FFMPEG catchall decoders
* Get this metadata properly flowing
* Allows us to play tracks such as Apple Lossless :)
Change-Id: I2990b30eef5b672da339d24444424c61a43b85c2
stagefright: Fix metadata/message conversion issues
* Remove duplication of code between ExtendedCodec and FFMPEGSoftCodec,
just call into ExtendedCodec and properly ifdef QCOM-only parts.
* Fix CSD not being converted when AV_ENHANCEMENTS wasn't set- this
was breaking the software video codecs on Hammerhead.
Change-Id: I9cd4316ce19b15baabf12b78b992498ce48e2697
Fix compile error after I9cd4316ce19b15baabf12b78b992498ce48e2697
frameworks/av/media/libstagefright/ExtendedCodec.cpp:1187:1: error:
expected '}' at end of input
Change-Id: I7d75e69160f794b177f4235f4a6bb5a188dc0d08
stagefright: Fix AC3 playback
* Skip setupAC3Codec in ACodec for non-Google components.
Change-Id: I5090485ba020f7ad1c0962fc977e38675b4c8314
stagefright: Guard against crash with mismatched codecs
* Return unsupported error if WMV file can't be scanned.
Change-Id: Ia4a1ac7a299990f8b9c05a93736cb2fa9d0ee965
stagefright: Correct ifdeffage of some QC codecs
Change-Id: Ie8cc7287967b84e09941283559ca542efd928d91
stagefright: Create native window for FFMPEG software codecs
Change-Id: I178f334f1fa1ea9edc6898fb61e72902c2cb2651
stagefright: Don't ever try to use extended sniffers on DRM
* This can cause long retry intervals during key exchange. Don't do it!
Change-Id: Id9a87dcbe43cd0cc9919fe07f0a963e087baccad
stagefright: Be more tolerant of missing metadata for FFMPEG codecs
* If these codecs are instantiated programatically and required
metadata isn't sent, just set some defaults instead of crashing on
an assert.
* This fixes testAllNonTunneledVideoCodecsSupportFlexibleYUV in MR1 CTS
Change-Id: I69bf6105a1be529298de574bd5d3b6813e7a4e8f
stagefright: Fix issues with software decoders
* Fix MKV thumbnails
* Fix VC1 thumbnails
* Fix FFMPEG thumbnails
* Fix trial decoder
* Fix edge cases with WMV3/VC1 playback
* Fix a state issue which caused some codecs to get wrong configuration
Change-Id: I09599166aa24bcff53f91e43de096c4fad8ca7ad
stagefright: ffmpeg: Slightly raise the threshold for the ffmpeg scanner
0.2 is the success value for the OMX.google soft audio sniffers, which
was making ffmpeg own the unpacking of those streams needlessly.
Fixes CYNGNOS-282
Change-Id: I75f50ed838cb8af9acdf99aa284b80a070555284
stagefright: Add support for loading a custom OMXPlugin
* To facilitate moving the stagefright-plugins glue out of the
framework, support is added to OMXMaster to load multiple
external plugins besides internal/vendor versions.
* This is currently limited to one plugin, defined by the
"mm.sf.omx-plugin" system property. The code will allow any
number of libraries to be loaded, though.
* Should also be useful for nonstandard vendor implementations too.
Change-Id: I27d7e16ad56baa17754d8ea47a8c608a0d73d6f1
stagefright: Move a bunch of FFMPEG stuff out of here
* Get rid of some of the glue code for stagefright-plugins
and use the new extension header and plugin.
* Still a bunch of TODOs on this, but it works.
Change-Id: If07d3213952b624d48035e5f58ad883b2a4049b0
stagefright: Remove deprecated FFMPEG config
Change-Id: I1fcdb4eeba72e2420493b89ddd6fc718d170ced7
stagefright: Support for 24-bit audio in StageFright
* Plumb bit depth thru ACodec and OMX
* Add support for 24-bit PCM offload in NuPlayer on QC devices
* Use new AudioFlinger features for mixing multi formats without offload
* Clean up a bunch of code
Change-Id: I018d3a995b63450a38c6c43eaa37c86be30fd893
nuplayer: Fix PCM offload turning on all the time
* Remove the extra condition, since this will be set even if
PCM offload was denied.
Change-Id: I8f33ef68562d8e057e7a86c5ae6187d0049bf3aa
stagefright: Cleanup of PCM offload checks
* Put the checks in a single place.
Change-Id: I2d0d5b542593896e78bf989296de1a1d1e3a4963
stagefright: Add bit-depth plumbing for new formats
Change-Id: I13cfd75e4b4819543b64babf20cc9af57ea2978f
nuplayer: Fix bitrate propagation
* We use "bitrate" rather than "bit-rate".
Change-Id: I4699194e3e3f7ef55b4eb554f5de7a6b5f6b80ce
libstagefright: Implement fallback mechanism to SW decoder
Implement fallback mechanism to software decoder
when hardware decoder configuration fails in ACodec
Change-Id: Idf4c445942b03e28b264c91a20e69d52224727bd
|
|
|
|
|
|
|
|
| |
Remove global variables related to sniff, and added Sniffer class
to implement the sniff functionality with non-static members.
Change-Id: I6fbd0ba5b686e09fda11d78cdd687a69c81a6bdf
CRs-Fixed: 567753
|
|
|
|
| |
Change-Id: I8e13a68cc10fafc43dd8f7d350644c7638d5d5e3
|
|
|
|
|
|
|
|
| |
* Forward-port changes from CM11
* Remove truncation support as AudioFlinger handles
rebuffering in case it can't go to the hardware.
Change-Id: Iad30d04ee051050e444c3d665fa8bb7a1cfef348
|
|
|
|
|
|
|
|
|
|
|
|
| |
* To facilitate moving the stagefright-plugins glue out of the
framework, support is added to OMXMaster to load multiple
external plugins besides internal/vendor versions.
* This is currently limited to one plugin, defined by the
"mm.sf.omx-plugin" system property. The code will allow any
number of libraries to be loaded, though.
* Should also be useful for nonstandard vendor implementations too.
Change-Id: I27d7e16ad56baa17754d8ea47a8c608a0d73d6f1
|
|
|
|
|
|
| |
* Seen during flaky network test
Change-Id: I491529d6164e2312242c659bb3ca051e60da3612
|
|
|
|
|
|
|
| |
* setVolume was called while the track was being torn down during
MediaPlayerFlakyNetworkTest
Change-Id: Icb965478644909511215c17db3cf2debba85a864
|
|
|
|
|
|
| |
* Needed by framework to determine audio apth
Change-Id: I8d928852fb4a24e3d575d70fbf366bae1a178b31
|
|
|
|
|
|
| |
* Pass the HVCC atom to Stagefright.
Change-Id: I7fdca25e20b9051925936a34e594808b18a3a3bd
|
|
|
|
|
|
|
|
| |
Modification done in StagefrightMetadataRetriver
to handle NULL return for meta data if codec is
unsupported by extractor.
Change-Id: I905cec5ee91b098d99e1935437b562d2d9206381
|
|
|
|
|
|
|
|
|
|
|
| |
To support aac audio with APE tag we need parse
this tag. Otherwise AACExtractor stops reading of
audio file.
DR: OMAPS00267689
Change-Id: Ic697b90dbc9f2b93aeb227411359c36c113cb71e
Signed-off-by: Daniel Levin <dendy@ti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
FLAC files which has the last metadata block flag set in
STREAMINFO were not playing. Sniff of FLAC is modified to
accomodate this set flag.
Change-Id: I76f216cc2cde6e10958324afbc704fc3e5a0e2bf
Author: Gurudatta Bhakte <gurudattax.bhakte@intel.com>
Signed-off-by: Gurudatta Bhakte <gurudattax.bhakte@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 32421
|
|
|
|
|
|
|
|
| |
Most mkv files having 'lacing' in their audio section to save space.
Android did not handle this properly, sending all frames in the block
with the same time code, which causes stuttery playback.
Change-Id: I4dc76e7c2a53126c7fbdd3628fe7d339d2e3364e
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When the file is scanned, the ID3 tag is found to have a
footer at the end of audio data. And getAdtsFrameLength
return zero after reading the footer. As a result, the
duration and mInitCheck are not set. The current change
considers the data till footer and sets the duration based
on no. of frames read till the footer/corrupt frame.
Change-Id: Ie8f898435f0d4ca31fdd355146c4db7b37c0b988
Signed-off-by: Arulselvan M <arulselvan.m@intel.com>
Signed-off-by: Jin Wei <wei.a.jin@intel.com>
|
|\ |
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add necessary null checks to GraphicBuffer before passing it onto
Metadatabuffer.
Change-Id: I5cf09da4bd316e5c1733023746aa54960a36d8c9
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
While setting up the component for flac, current design
is if encoder then don't use QTI flac component otherwise
use QTI flac component, so if QTI flac is not being used
then this might be wrong. So enhance the design to use
QTI flac component only when it is enabled, otherwise use
default flac component
Change-Id: I57454841611885ae7cdf75896f8297ef8132292e
CRs-Fixed: 916650
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Add getSeqNumberInLiveStreaming() function in PlayListFetcher
Make getBandwidthIndex() function to be virtual.
Change-Id: I5e2bc7a42e0d4a16d5b5ea5f2ec3d78a7d019ad3
|
| |\ \ \ \
| | |_|_|/
| |/| | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Needed for moving to clang
Change-Id: I984ce0d452bcd9025d743c0f081bb0d22587b106
|
| |\ \ \ \
| | |_|_|/
| |/| | | |
|
| | |/ /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add in hooks to route CameraSourceTimeLapse creation to AVFactory so
that we can add our customizations.
Change-Id: I309a247ba6e3c5626cfba096677a6dbfeae543f3
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
| |\ \ \ \
| | |/ / / |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
-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
|
| |\ \ \ \ |
|
| | | |/ /
| | |/| |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
MediaCodec could send out message of output buffer available right before
it hits an error and clears its buffers.
Change-Id: I1b11c88cdcb3fca7ddd6103c6d3d28642304f079
|
| |\ \ \ \
| | |_|_|/
| |/| | | |
|
| | | |/
| | |/|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |\ \ \ |
|
| | |/ /
| | | |
| | | |
| | | |
| | | |
| | | | |
This reverts commit e17afa888040eb5fbd31249305efd88ee03bb5bc.
Change-Id: I7afb6a055d3efb08fdbdff19f0bbad01934614e8
|
| |\ \ \ |
|
| | |/ /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |\ \ \ |
|
| | |/ /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Check added in HTTPLiveSource to throw error if seek
is called in live streaming usecase.
Change-Id: I1d478ea506734bd9b6bbfba4f04649be398f3c7a
|
| |\ \ \ |
|
| | |/ /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |\ \ \ |
|
| | |/ /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |\ \ \
| | |_|/
| |/| | |
|
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|