OSDN Git Service
Glenn Kasten [Mon, 22 Aug 2011 15:24:44 +0000 (08:24 -0700)]
xaplay command-line mediaplayer for MPEG-2 TS ABQ
Change-Id: Id5ea3f478f45d4fa4b86772593ae831d9eade952
Glenn Kasten [Wed, 24 Aug 2011 19:05:44 +0000 (12:05 -0700)]
Merge "Bug
5153313 keep compatibility of local files URI"
Glenn Kasten [Wed, 24 Aug 2011 19:05:30 +0000 (12:05 -0700)]
Merge "Bug
5105712 synchronous callbacks"
Glenn Kasten [Thu, 11 Aug 2011 15:07:18 +0000 (08:07 -0700)]
Bug
5153313 keep compatibility of local files URI
Also fix a bug in decode from fd to PCM buffer queue, where
we were closing the application's fd.
Change-Id: I220cd1c242f2f5e240b4dd1b9e8d79c88878bdcd
Glenn Kasten [Tue, 2 Aug 2011 14:39:41 +0000 (07:39 -0700)]
Bug
5105712 synchronous callbacks
After GetPosition is made synchronous, it is safer to make client
callbacks synchronous also.
Change-Id: I2688f709ed672aaa62d046d5f95db1b81504c9e3
Eric Laurent [Wed, 24 Aug 2011 18:34:26 +0000 (11:34 -0700)]
Merge "Converted libaudioutils implementation to C."
Eino-Ville Talvala [Wed, 24 Aug 2011 17:19:44 +0000 (10:19 -0700)]
Merge "NEW_API: Make rest of the effect names public in EffectFactory."
Eino-Ville Talvala [Mon, 22 Aug 2011 17:37:24 +0000 (10:37 -0700)]
NEW_API: Make rest of the effect names public in EffectFactory.
Bug:
4966161
Change-Id: If194ebb5d1c45e8826a53fe9a83a94a1690cc11d
Eino-Ville Talvala [Wed, 24 Aug 2011 16:35:39 +0000 (09:35 -0700)]
Merge "Fix minor logging bug in core Filter code."
Glenn Kasten [Wed, 24 Aug 2011 16:06:36 +0000 (09:06 -0700)]
Merge "Bug
5198051 MediaPlayer prefetch status interface"
Glenn Kasten [Wed, 24 Aug 2011 15:00:34 +0000 (08:00 -0700)]
Merge "Assertion checks do LOGF not fprintf to stderr"
Eino-Ville Talvala [Wed, 24 Aug 2011 00:11:20 +0000 (17:11 -0700)]
Fix minor logging bug in core Filter code.
Change-Id: Ic03692e2456d2ca2615b75c7da4672ae3fed60d9
Glenn Kasten [Tue, 23 Aug 2011 23:50:18 +0000 (16:50 -0700)]
Merge "Bug
5198051 MediaPlayer StreamInformation various"
Wei Hua [Tue, 23 Aug 2011 23:49:27 +0000 (16:49 -0700)]
Merge "Add reset function to Native Program."
Glenn Kasten [Tue, 23 Aug 2011 23:48:57 +0000 (16:48 -0700)]
Merge "Bug
5198051 Video sink on MediaPlayer is optional"
Glenn Kasten [Tue, 23 Aug 2011 23:48:16 +0000 (16:48 -0700)]
Merge "Bug
5198051 MediaPlayer PLAYEVENT_HEAD* callbacks"
Glenn Kasten [Tue, 23 Aug 2011 22:22:55 +0000 (15:22 -0700)]
Assertion checks do LOGF not fprintf to stderr
Also add comments to Android.mk, and add SL_LOGF not yet used.
Change-Id: I1e051c040b667e2e70b6df0c03648c309efef7d6
Glenn Kasten [Mon, 22 Aug 2011 15:25:19 +0000 (08:25 -0700)]
Bug
5198051 MediaPlayer prefetch status interface
Change-Id: I426c870f803df0a7052f17be955ba797a814b4cc
Eric Laurent [Thu, 18 Aug 2011 01:36:09 +0000 (18:36 -0700)]
Converted libaudioutils implementation to C.
Converted libaudioutils implementation and interfaces from C++ to C
and removed dependencies from frameworks/base classes so that it can
be used by any audio HAL implementation.
Change-Id: I3f7ce541be8495d41864661451540971b067359b
Wei Hua [Tue, 23 Aug 2011 18:37:39 +0000 (11:37 -0700)]
Add reset function to Native Program.
Bug:
5202663
Change-Id: I6d49e7cb765f776e193e8bf1fcde26678438e12e
Eino-Ville Talvala [Tue, 23 Aug 2011 15:52:19 +0000 (08:52 -0700)]
Merge "Several improvements for interacting with Camera app."
Glenn Kasten [Sun, 21 Aug 2011 23:53:07 +0000 (16:53 -0700)]
Bug
5198051 Video sink on MediaPlayer is optional
Change-Id: I2c78508fa1efac765ff5812c22e3a4c2cfc33b73
Glenn Kasten [Mon, 22 Aug 2011 20:56:18 +0000 (13:56 -0700)]
Bug
5198051 MediaPlayer PLAYEVENT_HEAD* callbacks
Change-Id: Ibb04fbf727997281bb77fd22c51cd90bd044e505
Glenn Kasten [Tue, 23 Aug 2011 14:15:13 +0000 (07:15 -0700)]
Merge "Bug
5198051 MediaPlayer play state PAUSED at end"
Glenn Kasten [Sun, 21 Aug 2011 17:50:06 +0000 (10:50 -0700)]
Bug
5198051 MediaPlayer StreamInformation various
Fix uninitialized field frameRate.
QueryMediaContainerInformation returns XA_RESULT_PARAMETER_INVALID if
info is NULL, otherwise it copies the information via the info pointer,
and returns XA_RESULT_SUCCESS.
QueryStreamName returns XA_RESULT_FEATURE_UNSUPPORTED.
Simplify RegisterStreamChangeCallback.
Change-Id: I261ac0c053be0de7bac5fc80661b979f7f9c84b6
Glenn Kasten [Mon, 22 Aug 2011 15:59:42 +0000 (08:59 -0700)]
Bug
5198051 MediaPlayer support GetDuration
Change-Id: I09d9292685d82b88cddd243e6e7f5410ffaa2248
Glenn Kasten [Mon, 22 Aug 2011 17:33:01 +0000 (10:33 -0700)]
Bug
5198051 MediaPlayer play state PAUSED at end
Change-Id: I9160336a9e74b2f2f501cb94d1f24047b2979b76
Eino-Ville Talvala [Sun, 21 Aug 2011 20:49:45 +0000 (13:49 -0700)]
Several improvements for interacting with Camera app.
- Add support for extra library loading in FilterFactory
- Add support for listing custom libraries in graph files
- Add new SurfaceTargetFilter for output to a Surface managed by the app.
Bug:
4510826
Change-Id: Icfd350d8f83627934549c30cdfb52cd1a21d3e72
Eric Laurent [Mon, 22 Aug 2011 15:31:57 +0000 (08:31 -0700)]
Merge "Created library for common audio HAL functions."
Ruei-sung Lin [Sun, 21 Aug 2011 20:16:45 +0000 (13:16 -0700)]
Merge "Moving photo editor effects to imageproc"
Glenn Kasten [Sun, 21 Aug 2011 17:56:37 +0000 (10:56 -0700)]
Merge "8-bit now works"
Eino-Ville Talvala [Fri, 19 Aug 2011 22:46:44 +0000 (15:46 -0700)]
Merge "Tune the background replacer filter toward shipping quality."
Eino-Ville Talvala [Fri, 19 Aug 2011 16:21:31 +0000 (09:21 -0700)]
Tune the background replacer filter toward shipping quality.
Works reasonably in talk; issues with dark objects remain.
Bug:
5111139
Change-Id: I32c84d73b8d69c89e1f1d7ae9a5f7738f4025fe3
Glenn Kasten [Fri, 19 Aug 2011 19:07:12 +0000 (12:07 -0700)]
Merge "Bug
5126938 dependency for video sinks"
Glenn Kasten [Fri, 19 Aug 2011 19:06:36 +0000 (12:06 -0700)]
Merge "Test playbq: 8-bit and big-endian byte ordering"
Glenn Kasten [Fri, 12 Aug 2011 16:22:43 +0000 (09:22 -0700)]
8-bit now works
Change-Id: I70ce7e10f0b465250b9f4d7644d21f5c4b4c99fa
Glenn Kasten [Fri, 19 Aug 2011 16:01:51 +0000 (09:01 -0700)]
Merge "Use XA instead of SL in type cast"
Ruei-sung Lin [Fri, 19 Aug 2011 00:47:38 +0000 (17:47 -0700)]
Moving photo editor effects to imageproc
Change-Id: Idb11915f9e70aa40a228532ed998563227b4c5ff
Glenn Kasten [Thu, 18 Aug 2011 21:59:20 +0000 (14:59 -0700)]
Use XA instead of SL in type cast
Change-Id: Icc8d678484f454860b32d8823d4a274d3d14d991
Eino-Ville Talvala [Thu, 18 Aug 2011 21:53:13 +0000 (14:53 -0700)]
Merge "Add backdropper to list of effects, and reformat documentation."
Eino-Ville Talvala [Thu, 18 Aug 2011 20:06:30 +0000 (13:06 -0700)]
Add backdropper to list of effects, and reformat documentation.
Backdropper is still hidden, until we have the full list of effects.
Bug:
4966161
Change-Id: I95560615eb891c951da676beeb2dc3ac610dc07e
Glenn Kasten [Thu, 18 Aug 2011 14:31:11 +0000 (07:31 -0700)]
Merge "Bug
5159291 lock safety"
Glenn Kasten [Thu, 18 Aug 2011 14:30:57 +0000 (07:30 -0700)]
Merge "Bug
5161265 Recover from mediaserver process crash"
Glenn Kasten [Wed, 10 Aug 2011 23:02:48 +0000 (16:02 -0700)]
Test playbq: 8-bit and big-endian byte ordering
Change-Id: Ic34f35226fee07945925cad8cfbc10c756092fee
Eric Laurent [Wed, 17 Aug 2011 16:13:33 +0000 (09:13 -0700)]
Created library for common audio HAL functions.
libaudioutils groups functions that can be used by any audio HAL
implementation.
Current functions are:
- a resampler based on speex resampler.
- an echo reference module providing resampling, buffering and
time stamp management of PCM data between an output stream and an
input stream for use as echo reference by an AEC module.
This commit is the first step consisting of moving code previously in
crespo audio HAL. This C++ code will the be converted to C and stripped from
dependencies to frameworks/base classes for use by all audio HALs.
Change-Id: Ifa51e0c6358c23122a379d7f5d9ce13a65ff0cf0
Eino-Ville Talvala [Tue, 16 Aug 2011 23:28:07 +0000 (16:28 -0700)]
Avoid future circular dependency in framework libraries.
Explictly list which framework libraries we depend on, instead of
accepting the default list (which will include this library in the
future).
Bug:
5098987
Change-Id: I781143f535d1e84122de460125915866420e8d07
Eric Laurent [Tue, 16 Aug 2011 00:31:32 +0000 (17:31 -0700)]
Merge "Bug
5147281 prefetch status deadlocks"
Eino-Ville Talvala [Mon, 15 Aug 2011 17:06:43 +0000 (10:06 -0700)]
Merge "Remove dead code from backdropper filter shaders."
Jean-Michel Trivi [Sun, 14 Aug 2011 21:24:43 +0000 (14:24 -0700)]
Merge "AAC buffer decode to PCM buffer queue"
Eino-Ville Talvala [Sat, 13 Aug 2011 00:31:54 +0000 (17:31 -0700)]
Remove dead code from backdropper filter shaders.
The code is not approved of by all shader compilers, and is unused
in any case.
Bug:
5111139
Change-Id: I83af451b870d3c2cb1be5c8d0b780e700453e04c
Glenn Kasten [Fri, 12 Aug 2011 23:24:09 +0000 (16:24 -0700)]
Bug
5161265 Recover from mediaserver process crash
Use the utility method IMediaDeathNotifier::getMediaPlayerService()
to get a reference to media player service. It retries after errors,
and keeps a single global per-process reference to the service rather
than one per object. If we still can't contact the media player service
after retries, handle it like an unsuccessful prepare.
Miscellaneous:
- Remove unused field Parcel metadatafilter
Change-Id: I451a64bd76b4a7f157774abe967448ec081f1014
Glenn Kasten [Fri, 12 Aug 2011 14:22:27 +0000 (07:22 -0700)]
Bug
5159291 lock safety
Change-Id: I56f5fd038d63d033954d794168df4cbcdade26f3
Glenn Kasten [Wed, 10 Aug 2011 22:54:39 +0000 (15:54 -0700)]
Bug
5147281 prefetch status deadlocks
Fixed two deadlocks related to AudioTrack prefetch event callbacks:
- if PrefetchStatus interface was initialized on an AudioPlayer,
there was a deadlock at the point where it checked whether to do a callback
- prefetch status callbacks are now called with the object unlocked,
so they are permitted to do APIs on the object
Miscellaneous fixes:
- SMP-safe locks for GetPrefetchStatus, GetFillLevel,
GetCallbackEventsMask, SetFillUpdatePeriod, GetFillUpdatePeriod
- SetCallbackEventsMask error handling for invalid bitmask
- Enqueue sets prefetch fill level to 1000
Change-Id: Ic8b2c440aeb4efa3446a4a73d3422d934ceb0578
Jean-Michel Trivi [Wed, 27 Jul 2011 17:00:04 +0000 (10:00 -0700)]
AAC buffer decode to PCM buffer queue
Implement AAC ADTS decode with buffers of compressed data being
passed to the framework through an AndroidBufferQueue, and
decoded PCM buffers being passed to the application through
a BufferQueue (just like existing decode from URI/FD).
Change-Id: Id992a44a5ca7e404088b929f2b0afe9ca1f85223
Eino-Ville Talvala [Wed, 10 Aug 2011 22:41:01 +0000 (15:41 -0700)]
Add timestamp as a port to GLTextureSource.
Allows filter chains using external texture sources to propagate
timestamps provided by the external source.
Bug:
5149729
Change-Id: Ic365257306636ea1083ad23a811a48a5e872bd5b
Eino-Ville Talvala [Wed, 10 Aug 2011 20:23:37 +0000 (13:23 -0700)]
Merge "Fixes to BackDropperEffect."
Marius Renn [Wed, 10 Aug 2011 17:13:54 +0000 (10:13 -0700)]
Merge "Bugfix (
5144111): Choose FBO pixel read over texture pixel read."
Glenn Kasten [Mon, 8 Aug 2011 16:42:30 +0000 (09:42 -0700)]
Bug
5126938 dependency for video sinks
Fixing bug
5126938 will involve configuring the video sink in two places:
at the initial data locator when creating the MediaPlayer object, and
then later in the IAndroidConfiguration interface. This CL is preparation
for that.
Details:
- Abstract out common code into android_Player_setNativeWindow.
- Move the code for checking and initializing the video sink from an
#ifdef ANDROID in the CMediaPlayer_Realize portable code to into
platform-specific android_Player_realize.
- Only set one of mSurface or mSurfaceTexture to non-NULL.
- For methods which can't fail, replace the SLresult return value by void.
Change-Id: Iec8fd91e1a6de45eb64241b35e3f7d7faf63d727
Eino-Ville Talvala [Tue, 9 Aug 2011 22:27:04 +0000 (15:27 -0700)]
Fixes to BackDropperEffect.
- Enable auto-wb
- Fixes to graph, filter references
Bug:
5039738
Change-Id: I9fb17659fb706920a4637f921a6e230984aa3051
Marius Renn [Tue, 9 Aug 2011 22:35:35 +0000 (15:35 -0700)]
Bugfix (
5144111): Choose FBO pixel read over texture pixel read.
Change-Id: Ibdae635445551c302d7edb3f6fd77369e43b7293
Ruei-sung Lin [Tue, 9 Aug 2011 21:38:35 +0000 (14:38 -0700)]
Merge "add ImageSlicer and ImageStitcher filters."
Jean-Michel Trivi [Tue, 9 Aug 2011 21:33:35 +0000 (14:33 -0700)]
Merge "Initialize video decoder capabilities fields even when unknown"
Ruei-sung Lin [Tue, 9 Aug 2011 20:51:14 +0000 (13:51 -0700)]
Merge "add customize option in SurfaceTectureTarget"
Jean-Michel Trivi [Tue, 9 Aug 2011 19:34:53 +0000 (12:34 -0700)]
Initialize video decoder capabilities fields even when unknown
We only support the discovery of codecId, profile and level when
using the VideoDecoderCapabilities interface. The other fields
in the XAVideoCodecDescriptor structure need to be initialized
even if they're not filled.
Change-Id: I8833437b3b23748a50076b65baf5b9a250290b86
Glenn Kasten [Tue, 9 Aug 2011 17:52:56 +0000 (10:52 -0700)]
Merge "Bug
5126938 dependency and miscellaneous bug fixes"
Glenn Kasten [Tue, 9 Aug 2011 17:52:01 +0000 (10:52 -0700)]
Merge "Updates to slesTestRecBuffQueue test app"
Glenn Kasten [Tue, 9 Aug 2011 17:50:48 +0000 (10:50 -0700)]
Merge "Bug
4603165 playback rate change"
Marius Renn [Tue, 9 Aug 2011 16:40:30 +0000 (09:40 -0700)]
Merge "Bug (
5106403): Serialize filter input values across threads."
Marius Renn [Tue, 9 Aug 2011 16:40:11 +0000 (09:40 -0700)]
Merge "Bugfix (
5088434): Accessing bitmap data on non-RGBA native frames."
Glenn Kasten [Mon, 8 Aug 2011 23:24:34 +0000 (16:24 -0700)]
Updates to slesTestRecBuffQueue test app
Allow the preset number to be specified on command line,
or to use default.
Change-Id: Ia4e996f8726a6bd8ca781bba5930b63bcba854bc
Eino-Ville Talvala [Mon, 8 Aug 2011 23:08:36 +0000 (16:08 -0700)]
Merge "Add background replacement Effect."
Eino-Ville Talvala [Mon, 8 Aug 2011 23:08:35 +0000 (16:08 -0700)]
Merge "Add background replacement filter to mobile filter framework."
Glenn Kasten [Mon, 8 Aug 2011 21:22:21 +0000 (14:22 -0700)]
Merge "Bug
5135150 Fix ifdef C++"
Glenn Kasten [Mon, 8 Aug 2011 21:22:10 +0000 (14:22 -0700)]
Merge "Add playback rate to buffer queue test player"
Glenn Kasten [Mon, 8 Aug 2011 16:40:34 +0000 (09:40 -0700)]
Bug
5126938 dependency and miscellaneous bug fixes
Fixing bug
5126938 will involve adding the IAndroidConfiguration interface
to CMediaPlayer object. In the process of doing this, I found a few
miscellaneous bugs in the error handling for IAndroidConfiguration. This
CL fixes those bugs, and prepares for adding the interface CMediaPlayer
by making it easier to support new objects with the interface.
Details:
- Generic error handling:
Move some error checks from the object-specific code into the generic
IAndroidConfiguration.c.
Fix bug in SetConfiguration and GetConfiguration where we were not
checking configKey for NULL
Return SL_RESULT_FEATURE_UNSUPPORTED instead of
SL_RESULT_PARAMETER_INVALID if IAConfig interface is exposed on
an object which doesn't really support it (this could if the classes.c
interfaces table was updated before the cases were updated).
Compare with IMuteSolo for non-AudioPlayer.
- Object-specific error handling:
Fix bug where we weren't returning the actual value size in
audioPlayer_getConfig when pValueSize was non-NULL and pConfigValue
was NULL.
Return result SL_RESULT_BUFFER_INSUFFICIENT instead of
SL_RESULT_PARAMETER_INVALID when output buffer is specified
as non-NULL but available space is too small. Compare with
IAudioIODeviceCapabilities.
Return result SL_RESULT_SUCCESS instead of SL_RESULT_PARAMETER_INVALID
when output buffer is specified as NULL; this is intended to allow
the application to discover the required space. Compare with
IAudioIODeviceCapabilities.
- Use 'switch' instead of 'if' for checking object types, to improve
readability when adding more object types
Change-Id: I8b2cdd506a36bfa9b1326a8a9966a6633bbbba6d
Glenn Kasten [Mon, 8 Aug 2011 17:53:48 +0000 (10:53 -0700)]
Merge "Miscellaneous loop test improvements"
Glenn Kasten [Mon, 8 Aug 2011 17:20:39 +0000 (10:20 -0700)]
Bug
5135150 Fix ifdef C++
Change-Id: Ic28452ce6b0c717722098699092f1797424a6d9b
Glenn Kasten [Tue, 2 Aug 2011 20:07:34 +0000 (13:07 -0700)]
Miscellaneous loop test improvements
Enable HEADATEND event to see whether looping causes that event.
Recover from prefetch errors using the new approach of condition signal rather than polling.
Check result returned by GetFillLevel.
Other changes:
- Make assert work.
- Pass NULL as 3rd parameter to RegisterCallback when context is not needed.
- Use CheckErr instead of assert when checking result codes.
- Add comments.
Change-Id: I972b9eca9836e62141b6a078345f091e60689321
Glenn Kasten [Wed, 3 Aug 2011 21:33:43 +0000 (14:33 -0700)]
Add playback rate to buffer queue test player
Change-Id: I831290c1d70bbd66031f609a63549801b7c7f57b
Eino-Ville Talvala [Thu, 4 Aug 2011 20:43:52 +0000 (13:43 -0700)]
Add background replacement Effect.
Bug:
5061093
Change-Id: I8db69381627c89eb9851a3383e3715ce8ee934df
Eino-Ville Talvala [Wed, 3 Aug 2011 22:00:44 +0000 (15:00 -0700)]
Add background replacement filter to mobile filter framework.
Bug:
5098987
Change-Id: I242d2a13403b3d1ace74b8b41bd23734ce0333e2
Eddy Talvala [Fri, 5 Aug 2011 17:12:19 +0000 (10:12 -0700)]
Merge "Revert "Add background replacement Effect.""
Eddy Talvala [Fri, 5 Aug 2011 17:12:18 +0000 (10:12 -0700)]
Merge "Revert "Add background replacement filter to mobile filter framework.""
Eddy Talvala [Fri, 5 Aug 2011 16:39:22 +0000 (09:39 -0700)]
Revert "Add background replacement Effect."
This reverts commit
3aeb06f571d69db6e7dcdca85f328b022c041f90
Eddy Talvala [Fri, 5 Aug 2011 16:39:19 +0000 (09:39 -0700)]
Revert "Add background replacement filter to mobile filter framework."
This reverts commit
b07371016b15886136e88f1ec62d53daa3c5053f
Eino-Ville Talvala [Fri, 5 Aug 2011 16:21:43 +0000 (09:21 -0700)]
Merge "Add background replacement Effect."
Eino-Ville Talvala [Fri, 5 Aug 2011 16:21:42 +0000 (09:21 -0700)]
Merge "Add background replacement filter to mobile filter framework."
Glenn Kasten [Fri, 5 Aug 2011 15:53:20 +0000 (08:53 -0700)]
Merge "Bug
5903270 play interface, events, markers, etc."
Eino-Ville Talvala [Thu, 4 Aug 2011 20:43:52 +0000 (13:43 -0700)]
Add background replacement Effect.
Bug:
5061093
Change-Id: Icdcf7597c9ce2ee9e6443d3b9eeaf9c99b57c809
Marius Renn [Thu, 4 Aug 2011 22:17:33 +0000 (15:17 -0700)]
Bugfix (
5088434): Accessing bitmap data on non-RGBA native frames.
Change-Id: I8db22b6d78c5350815c043acbc55e578bee1a8a0
Glenn Kasten [Thu, 4 Aug 2011 21:50:10 +0000 (14:50 -0700)]
Merge "Fix race in reverb test"
Glenn Kasten [Thu, 4 Aug 2011 21:49:56 +0000 (14:49 -0700)]
Merge "Bug
5110581 SL_PLAYEVENT_HEADATEND while looping"
Eino-Ville Talvala [Wed, 3 Aug 2011 22:00:44 +0000 (15:00 -0700)]
Add background replacement filter to mobile filter framework.
Bug:
5098987
Change-Id: Ib96da73756b736f2960b39cdc47673b52134e881
Glenn Kasten [Thu, 4 Aug 2011 17:32:46 +0000 (10:32 -0700)]
Bug
4603165 playback rate change
Non-trivial implementation is only for AudioTrack with rate range 500
to 2000 per mille and property SL_RATEPROP_NOPITCHCORAUDIO; for Android
MediaPlayer the rate range is 1000 to 1000 per mille.
Details:
- no multi-range
- fix SMP races in GetRate, SetPropertyConstraints, GetProperties
- SetRate only updates mRate if successful
- Rate_SetPropertyConstraints only updates mProperties if successful
- return SL_RESULT_FEATURE_UNSUPPORTED for non-AudioPlayers
which have this interface (currently only MidiPlayer)
- for Android, atomically set playback rate and constraints
and simplify to use hard-coded constraints rather than querying
- per the spec, SetPropertyConstraints now returns
SL_RESULT_PARAMETER_INVALID if the constraints are out of range,
or SL_RESULT_FEATURE_UNSUPPORTED if the constraints are in range but
not supported by this implementation
Change-Id: I051ff92b20f3845ffa12bccec778937d42823e5d
Glenn Kasten [Fri, 29 Jul 2011 14:39:25 +0000 (07:39 -0700)]
Bug
5903270 play interface, events, markers, etc.
As the media framework does not directly support marker and periodic
callbacks, we use a retriggerable one-shot timer at application level
to emulate this. This has the advantage of being faster, but is also
less accurate than if it were in the framework.
Details:
- Get position is now synchronous and (mostly) lock-free
- Fix regression in SL_PLAYEVENT_HEADATMARKER and SL_PLAYEVENTHEADATNEWPOS
- Fix SMP races in GetPlayState, GetCallbackEventsMask, GetMarkerPosition,
GetPositionUpdatePeriod
- AudioSfDecoder was not updating mPositionMsec when getPositionUsec failed
- Updating attributes is relatively expensive, so only do it when a significant change
in SetMarkerPosition, ClearMarkerPosition, SetPositionUpdatePeriod
- Error on unknown message type in onMessageReceived
- Delete an obsolete FIXME
- "Clearing" a marker is now equivalent to disabling the marker event,
and the default marker position is cleared.
- use Android time units and types (int32_t, ANDROID_UNKNOWN_TIME, etc.) where appropriate
instead of SLmillisecond and SL_TIME_UNKNOWN
Change-Id: Ib78bafa20d883b8d927364769663837389b6ea1d
Ruei-sung Lin [Thu, 4 Aug 2011 00:42:44 +0000 (17:42 -0700)]
add ImageSlicer and ImageStitcher filters.
Change-Id: Id47e121aa783d02ef7f63b6b1c8d724fa4e2d57b
Marius Renn [Thu, 4 Aug 2011 03:07:44 +0000 (20:07 -0700)]
Merge "Fix for
5117329: Stored frames which are externally visible check validity."
Marius Renn [Thu, 4 Aug 2011 01:59:09 +0000 (18:59 -0700)]
Merge "Fix for
5117999: Make isEffectSupported() a static method."
Marius Renn [Thu, 4 Aug 2011 00:59:44 +0000 (17:59 -0700)]
Merge "Fix for
5117285: Stream-based filters no longer close streams."
Marius Renn [Thu, 4 Aug 2011 00:40:02 +0000 (17:40 -0700)]
Fix for
5117285: Stream-based filters no longer close streams.
Stream-based filters should not close streams, as they do not open them.
Change-Id: I01688fecde4d80e6089fb4c2fd017144dfc88408