OSDN Git Service

android-x86/system-media.git
12 years agoMerge "Fix minor logging bug in core Filter code."
Eino-Ville Talvala [Wed, 24 Aug 2011 16:35:39 +0000 (09:35 -0700)]
Merge "Fix minor logging bug in core Filter code."

12 years agoMerge "Bug 5198051 MediaPlayer prefetch status interface"
Glenn Kasten [Wed, 24 Aug 2011 16:06:36 +0000 (09:06 -0700)]
Merge "Bug 5198051 MediaPlayer prefetch status interface"

12 years agoMerge "Assertion checks do LOGF not fprintf to stderr"
Glenn Kasten [Wed, 24 Aug 2011 15:00:34 +0000 (08:00 -0700)]
Merge "Assertion checks do LOGF not fprintf to stderr"

12 years agoFix minor logging bug in core Filter code.
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

12 years agoMerge "Bug 5198051 MediaPlayer StreamInformation various"
Glenn Kasten [Tue, 23 Aug 2011 23:50:18 +0000 (16:50 -0700)]
Merge "Bug 5198051 MediaPlayer StreamInformation various"

12 years agoMerge "Add reset function to Native Program."
Wei Hua [Tue, 23 Aug 2011 23:49:27 +0000 (16:49 -0700)]
Merge "Add reset function to Native Program."

12 years agoMerge "Bug 5198051 Video sink on MediaPlayer is optional"
Glenn Kasten [Tue, 23 Aug 2011 23:48:57 +0000 (16:48 -0700)]
Merge "Bug 5198051 Video sink on MediaPlayer is optional"

12 years agoMerge "Bug 5198051 MediaPlayer PLAYEVENT_HEAD* callbacks"
Glenn Kasten [Tue, 23 Aug 2011 23:48:16 +0000 (16:48 -0700)]
Merge "Bug 5198051 MediaPlayer PLAYEVENT_HEAD* callbacks"

12 years agoAssertion checks do LOGF not fprintf to stderr
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

12 years agoBug 5198051 MediaPlayer prefetch status interface
Glenn Kasten [Mon, 22 Aug 2011 15:25:19 +0000 (08:25 -0700)]
Bug 5198051 MediaPlayer prefetch status interface

Change-Id: I426c870f803df0a7052f17be955ba797a814b4cc

12 years agoAdd reset function to Native Program.
Wei Hua [Tue, 23 Aug 2011 18:37:39 +0000 (11:37 -0700)]
Add reset function to Native Program.

Bug: 5202663
Change-Id: I6d49e7cb765f776e193e8bf1fcde26678438e12e

12 years agoMerge "Several improvements for interacting with Camera app."
Eino-Ville Talvala [Tue, 23 Aug 2011 15:52:19 +0000 (08:52 -0700)]
Merge "Several improvements for interacting with Camera app."

12 years agoBug 5198051 Video sink on MediaPlayer is optional
Glenn Kasten [Sun, 21 Aug 2011 23:53:07 +0000 (16:53 -0700)]
Bug 5198051 Video sink on MediaPlayer is optional

Change-Id: I2c78508fa1efac765ff5812c22e3a4c2cfc33b73

12 years agoBug 5198051 MediaPlayer PLAYEVENT_HEAD* callbacks
Glenn Kasten [Mon, 22 Aug 2011 20:56:18 +0000 (13:56 -0700)]
Bug 5198051 MediaPlayer PLAYEVENT_HEAD* callbacks

Change-Id: Ibb04fbf727997281bb77fd22c51cd90bd044e505

12 years agoMerge "Bug 5198051 MediaPlayer play state PAUSED at end"
Glenn Kasten [Tue, 23 Aug 2011 14:15:13 +0000 (07:15 -0700)]
Merge "Bug 5198051 MediaPlayer play state PAUSED at end"

12 years agoBug 5198051 MediaPlayer StreamInformation various
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

12 years agoBug 5198051 MediaPlayer support GetDuration
Glenn Kasten [Mon, 22 Aug 2011 15:59:42 +0000 (08:59 -0700)]
Bug 5198051 MediaPlayer support GetDuration

Change-Id: I09d9292685d82b88cddd243e6e7f5410ffaa2248

12 years agoBug 5198051 MediaPlayer play state PAUSED at end
Glenn Kasten [Mon, 22 Aug 2011 17:33:01 +0000 (10:33 -0700)]
Bug 5198051 MediaPlayer play state PAUSED at end

Change-Id: I9160336a9e74b2f2f501cb94d1f24047b2979b76

12 years agoSeveral improvements for interacting with Camera app.
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

12 years agoMerge "Created library for common audio HAL functions."
Eric Laurent [Mon, 22 Aug 2011 15:31:57 +0000 (08:31 -0700)]
Merge "Created library for common audio HAL functions."

12 years agoMerge "Moving photo editor effects to imageproc"
Ruei-sung Lin [Sun, 21 Aug 2011 20:16:45 +0000 (13:16 -0700)]
Merge "Moving photo editor effects to imageproc"

12 years agoMerge "8-bit now works"
Glenn Kasten [Sun, 21 Aug 2011 17:56:37 +0000 (10:56 -0700)]
Merge "8-bit now works"

12 years agoMerge "Tune the background replacer filter toward shipping quality."
Eino-Ville Talvala [Fri, 19 Aug 2011 22:46:44 +0000 (15:46 -0700)]
Merge "Tune the background replacer filter toward shipping quality."

12 years agoTune 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

12 years agoMerge "Bug 5126938 dependency for video sinks"
Glenn Kasten [Fri, 19 Aug 2011 19:07:12 +0000 (12:07 -0700)]
Merge "Bug 5126938 dependency for video sinks"

12 years agoMerge "Test playbq: 8-bit and big-endian byte ordering"
Glenn Kasten [Fri, 19 Aug 2011 19:06:36 +0000 (12:06 -0700)]
Merge "Test playbq: 8-bit and big-endian byte ordering"

12 years ago8-bit now works
Glenn Kasten [Fri, 12 Aug 2011 16:22:43 +0000 (09:22 -0700)]
8-bit now works

Change-Id: I70ce7e10f0b465250b9f4d7644d21f5c4b4c99fa

12 years agoMerge "Use XA instead of SL in type cast"
Glenn Kasten [Fri, 19 Aug 2011 16:01:51 +0000 (09:01 -0700)]
Merge "Use XA instead of SL in type cast"

12 years agoMoving photo editor effects to imageproc
Ruei-sung Lin [Fri, 19 Aug 2011 00:47:38 +0000 (17:47 -0700)]
Moving photo editor effects to imageproc

Change-Id: Idb11915f9e70aa40a228532ed998563227b4c5ff

12 years agoUse XA instead of SL in type cast
Glenn Kasten [Thu, 18 Aug 2011 21:59:20 +0000 (14:59 -0700)]
Use XA instead of SL in type cast

Change-Id: Icc8d678484f454860b32d8823d4a274d3d14d991

12 years agoMerge "Add backdropper to list of effects, and reformat documentation."
Eino-Ville Talvala [Thu, 18 Aug 2011 21:53:13 +0000 (14:53 -0700)]
Merge "Add backdropper to list of effects, and reformat documentation."

12 years agoAdd 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

12 years agoMerge "Bug 5159291 lock safety"
Glenn Kasten [Thu, 18 Aug 2011 14:31:11 +0000 (07:31 -0700)]
Merge "Bug 5159291 lock safety"

12 years agoMerge "Bug 5161265 Recover from mediaserver process crash"
Glenn Kasten [Thu, 18 Aug 2011 14:30:57 +0000 (07:30 -0700)]
Merge "Bug 5161265 Recover from mediaserver process crash"

12 years agoTest playbq: 8-bit and big-endian byte ordering
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

12 years agoCreated library for common audio HAL functions.
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

12 years agoAvoid future circular dependency in framework libraries.
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

12 years agoMerge "Bug 5147281 prefetch status deadlocks"
Eric Laurent [Tue, 16 Aug 2011 00:31:32 +0000 (17:31 -0700)]
Merge "Bug 5147281 prefetch status deadlocks"

12 years agoMerge "Remove dead code from backdropper filter shaders."
Eino-Ville Talvala [Mon, 15 Aug 2011 17:06:43 +0000 (10:06 -0700)]
Merge "Remove dead code from backdropper filter shaders."

12 years agoMerge "AAC buffer decode to PCM buffer queue"
Jean-Michel Trivi [Sun, 14 Aug 2011 21:24:43 +0000 (14:24 -0700)]
Merge "AAC buffer decode to PCM buffer queue"

12 years agoRemove dead code from backdropper filter shaders.
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

12 years agoBug 5161265 Recover from mediaserver process crash
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

12 years agoBug 5159291 lock safety
Glenn Kasten [Fri, 12 Aug 2011 14:22:27 +0000 (07:22 -0700)]
Bug 5159291 lock safety

Change-Id: I56f5fd038d63d033954d794168df4cbcdade26f3

12 years agoBug 5147281 prefetch status deadlocks
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

12 years agoAAC buffer decode to PCM buffer queue
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

12 years agoAdd timestamp as a port to GLTextureSource.
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

12 years agoMerge "Fixes to BackDropperEffect."
Eino-Ville Talvala [Wed, 10 Aug 2011 20:23:37 +0000 (13:23 -0700)]
Merge "Fixes to BackDropperEffect."

12 years agoMerge "Bugfix (5144111): Choose FBO pixel read over texture pixel read."
Marius Renn [Wed, 10 Aug 2011 17:13:54 +0000 (10:13 -0700)]
Merge "Bugfix (5144111): Choose FBO pixel read over texture pixel read."

12 years agoBug 5126938 dependency for video sinks
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

12 years agoFixes to BackDropperEffect.
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

12 years agoBugfix (5144111): Choose FBO pixel read over texture pixel read.
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

12 years agoMerge "add ImageSlicer and ImageStitcher filters."
Ruei-sung Lin [Tue, 9 Aug 2011 21:38:35 +0000 (14:38 -0700)]
Merge "add ImageSlicer and ImageStitcher filters."

12 years agoMerge "Initialize video decoder capabilities fields even when unknown"
Jean-Michel Trivi [Tue, 9 Aug 2011 21:33:35 +0000 (14:33 -0700)]
Merge "Initialize video decoder capabilities fields even when unknown"

12 years agoMerge "add customize option in SurfaceTectureTarget"
Ruei-sung Lin [Tue, 9 Aug 2011 20:51:14 +0000 (13:51 -0700)]
Merge "add customize option in SurfaceTectureTarget"

12 years agoInitialize video decoder capabilities fields even when unknown
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

12 years agoMerge "Bug 5126938 dependency and miscellaneous bug fixes"
Glenn Kasten [Tue, 9 Aug 2011 17:52:56 +0000 (10:52 -0700)]
Merge "Bug 5126938 dependency and miscellaneous bug fixes"

12 years agoMerge "Updates to slesTestRecBuffQueue test app"
Glenn Kasten [Tue, 9 Aug 2011 17:52:01 +0000 (10:52 -0700)]
Merge "Updates to slesTestRecBuffQueue test app"

12 years agoMerge "Bug 4603165 playback rate change"
Glenn Kasten [Tue, 9 Aug 2011 17:50:48 +0000 (10:50 -0700)]
Merge "Bug 4603165 playback rate change"

12 years agoMerge "Bug (5106403): Serialize filter input values across threads."
Marius Renn [Tue, 9 Aug 2011 16:40:30 +0000 (09:40 -0700)]
Merge "Bug (5106403): Serialize filter input values across threads."

12 years agoMerge "Bugfix (5088434): Accessing bitmap data on non-RGBA native frames."
Marius Renn [Tue, 9 Aug 2011 16:40:11 +0000 (09:40 -0700)]
Merge "Bugfix (5088434): Accessing bitmap data on non-RGBA native frames."

12 years agoUpdates to slesTestRecBuffQueue test app
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

12 years agoMerge "Add background replacement Effect."
Eino-Ville Talvala [Mon, 8 Aug 2011 23:08:36 +0000 (16:08 -0700)]
Merge "Add background replacement Effect."

12 years agoMerge "Add background replacement filter to mobile filter framework."
Eino-Ville Talvala [Mon, 8 Aug 2011 23:08:35 +0000 (16:08 -0700)]
Merge "Add background replacement filter to mobile filter framework."

12 years agoMerge "Bug 5135150 Fix ifdef C++"
Glenn Kasten [Mon, 8 Aug 2011 21:22:21 +0000 (14:22 -0700)]
Merge "Bug 5135150 Fix ifdef C++"

12 years agoMerge "Add playback rate to buffer queue test player"
Glenn Kasten [Mon, 8 Aug 2011 21:22:10 +0000 (14:22 -0700)]
Merge "Add playback rate to buffer queue test player"

12 years agoBug 5126938 dependency and miscellaneous bug fixes
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

12 years agoMerge "Miscellaneous loop test improvements"
Glenn Kasten [Mon, 8 Aug 2011 17:53:48 +0000 (10:53 -0700)]
Merge "Miscellaneous loop test improvements"

12 years agoBug 5135150 Fix ifdef C++
Glenn Kasten [Mon, 8 Aug 2011 17:20:39 +0000 (10:20 -0700)]
Bug 5135150 Fix ifdef C++

Change-Id: Ic28452ce6b0c717722098699092f1797424a6d9b

12 years agoMiscellaneous loop test improvements
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

12 years agoAdd playback rate to buffer queue test player
Glenn Kasten [Wed, 3 Aug 2011 21:33:43 +0000 (14:33 -0700)]
Add playback rate to buffer queue test player

Change-Id: I831290c1d70bbd66031f609a63549801b7c7f57b

12 years agoAdd background replacement Effect.
Eino-Ville Talvala [Thu, 4 Aug 2011 20:43:52 +0000 (13:43 -0700)]
Add background replacement Effect.

Bug: 5061093
Change-Id: I8db69381627c89eb9851a3383e3715ce8ee934df

12 years agoAdd background replacement filter to mobile filter framework.
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

12 years agoMerge "Revert "Add background replacement Effect.""
Eddy Talvala [Fri, 5 Aug 2011 17:12:19 +0000 (10:12 -0700)]
Merge "Revert "Add background replacement Effect.""

12 years agoMerge "Revert "Add background replacement filter to mobile filter framework.""
Eddy Talvala [Fri, 5 Aug 2011 17:12:18 +0000 (10:12 -0700)]
Merge "Revert "Add background replacement filter to mobile filter framework.""

12 years agoRevert "Add background replacement Effect."
Eddy Talvala [Fri, 5 Aug 2011 16:39:22 +0000 (09:39 -0700)]
Revert "Add background replacement Effect."

This reverts commit 3aeb06f571d69db6e7dcdca85f328b022c041f90

12 years agoRevert "Add background replacement filter to mobile filter framework."
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

12 years agoMerge "Add background replacement Effect."
Eino-Ville Talvala [Fri, 5 Aug 2011 16:21:43 +0000 (09:21 -0700)]
Merge "Add background replacement Effect."

12 years agoMerge "Add background replacement filter to mobile filter framework."
Eino-Ville Talvala [Fri, 5 Aug 2011 16:21:42 +0000 (09:21 -0700)]
Merge "Add background replacement filter to mobile filter framework."

12 years agoMerge "Bug 5903270 play interface, events, markers, etc."
Glenn Kasten [Fri, 5 Aug 2011 15:53:20 +0000 (08:53 -0700)]
Merge "Bug 5903270 play interface, events, markers, etc."

12 years agoAdd background replacement Effect.
Eino-Ville Talvala [Thu, 4 Aug 2011 20:43:52 +0000 (13:43 -0700)]
Add background replacement Effect.

Bug: 5061093
Change-Id: Icdcf7597c9ce2ee9e6443d3b9eeaf9c99b57c809

12 years agoBugfix (5088434): Accessing bitmap data on non-RGBA native frames.
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

12 years agoMerge "Fix race in reverb test"
Glenn Kasten [Thu, 4 Aug 2011 21:50:10 +0000 (14:50 -0700)]
Merge "Fix race in reverb test"

12 years agoMerge "Bug 5110581 SL_PLAYEVENT_HEADATEND while looping"
Glenn Kasten [Thu, 4 Aug 2011 21:49:56 +0000 (14:49 -0700)]
Merge "Bug 5110581 SL_PLAYEVENT_HEADATEND while looping"

12 years agoAdd background replacement filter to mobile filter framework.
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

12 years agoBug 4603165 playback rate change
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

12 years agoBug 5903270 play interface, events, markers, etc.
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

12 years agoadd ImageSlicer and ImageStitcher filters.
Ruei-sung Lin [Thu, 4 Aug 2011 00:42:44 +0000 (17:42 -0700)]
add ImageSlicer and ImageStitcher filters.

Change-Id: Id47e121aa783d02ef7f63b6b1c8d724fa4e2d57b

12 years agoMerge "Fix for 5117329: Stored frames which are externally visible check validity."
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."

12 years agoMerge "Fix for 5117999: Make isEffectSupported() a static method."
Marius Renn [Thu, 4 Aug 2011 01:59:09 +0000 (18:59 -0700)]
Merge "Fix for 5117999: Make isEffectSupported() a static method."

12 years agoMerge "Fix for 5117285: Stream-based filters no longer close streams."
Marius Renn [Thu, 4 Aug 2011 00:59:44 +0000 (17:59 -0700)]
Merge "Fix for 5117285: Stream-based filters no longer close streams."

12 years agoFix 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

12 years agoadd customize option in SurfaceTectureTarget
Ruei-sung Lin [Wed, 3 Aug 2011 17:45:50 +0000 (10:45 -0700)]
add customize option in SurfaceTectureTarget

Change-Id: I297168c0f67928b2180f2d0ce95c2f6d3bbbf107

12 years agoMerge "Fix structgen script to build Java directory hierarchies."
Eino-Ville Talvala [Thu, 4 Aug 2011 00:34:14 +0000 (17:34 -0700)]
Merge "Fix structgen script to build Java directory hierarchies."

12 years agoFix for 5117999: Make isEffectSupported() a static method.
Marius Renn [Thu, 4 Aug 2011 00:29:43 +0000 (17:29 -0700)]
Fix for 5117999: Make isEffectSupported() a static method.

This is required for applications such as GTalk, which need to verify that
certain effects are available before they setup an EffectContext.

Change-Id: I0f22b2ef378ebf0cb916305bc2a9f6b093b0f715

12 years agoBug (5106403): Serialize filter input values across threads.
Marius Renn [Wed, 3 Aug 2011 22:35:40 +0000 (15:35 -0700)]
Bug (5106403): Serialize filter input values across threads.

Change-Id: I973cfc681f4e9a53fcdee15acf55d1935d9a9676

12 years agoFix for 5117329: Stored frames which are externally visible check validity.
Marius Renn [Wed, 3 Aug 2011 22:30:10 +0000 (15:30 -0700)]
Fix for 5117329: Stored frames which are externally visible check validity.

This patch adds callbacks to Frames to let them prepare frames for storage,
and validate them on retrieval.
Also includes some name changes to badly named functions in gl_frame.cpp.

Change-Id: Ie25ef5136a6f583cbb8f70d7c2f1c418b4bceb83

12 years agoMerge "Added FilterGraphEffect."
Wei Hua [Wed, 3 Aug 2011 22:29:05 +0000 (15:29 -0700)]
Merge "Added FilterGraphEffect."

12 years agoFix structgen script to build Java directory hierarchies.
Eino-Ville Talvala [Wed, 3 Aug 2011 22:01:46 +0000 (15:01 -0700)]
Fix structgen script to build Java directory hierarchies.

Bug: 509898
Change-Id: I27a1ee3dd3f3fcfa82c5f2620e5e30193327105d

12 years agoFix race in reverb test
Glenn Kasten [Sun, 24 Jul 2011 20:57:21 +0000 (13:57 -0700)]
Fix race in reverb test

Was setting play state to PAUSED before enabling prefetch callbacks

Change-Id: Idc3d19d87799afe7e8314199c1317cf2cea2c449

12 years agoMerge "Increase MediaSource's startup timeout."
Eino-Ville Talvala [Wed, 3 Aug 2011 21:01:17 +0000 (14:01 -0700)]
Merge "Increase MediaSource's startup timeout."