OSDN Git Service

android-x86/system-media.git
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 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 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."

12 years agoAdded FilterGraphEffect.
Wei Hua [Wed, 3 Aug 2011 20:55:24 +0000 (13:55 -0700)]
Added FilterGraphEffect.

Make the texId in GLTextureTarget not final
Bug: 4966161

Change-Id: I0935194c957ef2c490d3661f4247ad1ea23a3512

12 years agoBug 5110581 SL_PLAYEVENT_HEADATEND while looping
Glenn Kasten [Tue, 2 Aug 2011 22:18:56 +0000 (15:18 -0700)]
Bug 5110581 SL_PLAYEVENT_HEADATEND while looping

Change-Id: Ia4d0433b4a6589bfda2f88addbe5b7eb3d0d9789

12 years agoMinor API implementation fixes.
Marius Renn [Wed, 3 Aug 2011 01:52:03 +0000 (18:52 -0700)]
Minor API implementation fixes.

- Documentation fixes.
- Private package lookup fix.
- Exception fix.

Change-Id: Ibae80a0b9c5eacdd95ec4c699e12eaec46b552c1

12 years agoMerge "Initial commit of the high-level public MFF effects SDK implementation."
Marius Renn [Wed, 3 Aug 2011 01:12:26 +0000 (18:12 -0700)]
Merge "Initial commit of the high-level public MFF effects SDK implementation."

12 years agoMerge "Bug 5109153 Remove log spam"
Glenn Kasten [Tue, 2 Aug 2011 23:23:21 +0000 (16:23 -0700)]
Merge "Bug 5109153 Remove log spam"

12 years agoMerge "Bug 5108531 Report the correct API level"
Glenn Kasten [Tue, 2 Aug 2011 23:23:06 +0000 (16:23 -0700)]
Merge "Bug 5108531 Report the correct API level"

12 years agoInitial commit of the high-level public MFF effects SDK implementation.
Marius Renn [Tue, 2 Aug 2011 20:55:34 +0000 (13:55 -0700)]
Initial commit of the high-level public MFF effects SDK implementation.

Includes fixes required for the Effects API:
- Explicit tear-down of MFF components.
- Better reuse of GL frames with external bindings.
- Fixed memory leaks.

Change-Id: I3a7397be1943361f6a8981cdf8313fd1670b26c8

12 years agoIncrease MediaSource's startup timeout.
Eino-Ville Talvala [Tue, 2 Aug 2011 20:43:51 +0000 (13:43 -0700)]
Increase MediaSource's startup timeout.

When streaming network URLs, the initial timeout of 5 seconds is
too short. Increasing to 10 seconds seems sufficient.

Bug: 5110877

Change-Id: I8071a7fee0bf0f5c28faef8fa69ab6790f110267

12 years agoMerge "Bug 5080320 MediaPlayer volume"
Glenn Kasten [Tue, 2 Aug 2011 19:35:13 +0000 (12:35 -0700)]
Merge "Bug 5080320 MediaPlayer volume"

12 years agoBug 5109153 Remove log spam
Glenn Kasten [Tue, 2 Aug 2011 16:08:40 +0000 (09:08 -0700)]
Bug 5109153 Remove log spam

Change-Id: I6c0c742bfa3f0078968dc5e2ea3578ad786067c5

12 years agoBug 5108531 Report the correct API level
Glenn Kasten [Tue, 2 Aug 2011 15:22:38 +0000 (08:22 -0700)]
Bug 5108531 Report the correct API level

Use build macro PLATFORM_SDK_VERSION to automatically update the reported
value, however the test program will still need manual updates.

Change-Id: Iae044605db65021c7d1e9825aab80ab5d6b552a8

12 years agoMerge "Bugfix (5085850): Added function to allow easy initialization of program host...
Marius Renn [Tue, 2 Aug 2011 00:05:49 +0000 (17:05 -0700)]
Merge "Bugfix (5085850): Added function to allow easy initialization of program host variables."

12 years agoMerge "Bugfix (5064211): Fix uniform access and lookups to work on non-TEGRA."
Marius Renn [Tue, 2 Aug 2011 00:05:39 +0000 (17:05 -0700)]
Merge "Bugfix (5064211): Fix uniform access and lookups to work on non-TEGRA."

12 years agoMerge "Fix makefile function call syntax"
Ying Wang [Mon, 1 Aug 2011 20:04:27 +0000 (13:04 -0700)]
Merge "Fix makefile function call syntax"

12 years agoBugfix (5085850): Added function to allow easy initialization of program host variables.
Marius Renn [Mon, 1 Aug 2011 19:29:33 +0000 (12:29 -0700)]
Bugfix (5085850): Added function to allow easy initialization of program host variables.

Change-Id: If7d88a015b75937d5f49cdb51120de5f75ee6d17

Changed 2 filters to use new simplified method.

Note: This requires that other affected filters are updated to make
use of the new functionality.

12 years agoBugfix (5064211): Fix uniform access and lookups to work on non-TEGRA.
Marius Renn [Mon, 1 Aug 2011 18:47:58 +0000 (11:47 -0700)]
Bugfix (5064211): Fix uniform access and lookups to work on non-TEGRA.

Change-Id: I75f80db09d9836754c7071ed8fd3c88ab317d989

12 years agoBug 5080320 MediaPlayer volume
Glenn Kasten [Thu, 28 Jul 2011 15:45:22 +0000 (08:45 -0700)]
Bug 5080320 MediaPlayer volume

Details:
 - re-factor volume-related code yet again
 - remove dead variables mAmplFromVolLevel, mAmplFromStereoPos, mDirectLevel
 - add placeholders for kEventPrefetchFillLevelUpdate and kEventPrefetchStatusChange

Known issues:
 - MPEG-2 TS doesn't yet implement the ability to query channel count, so default to stereo

Change-Id: Ic0f2297b267dc3d380755e8d314e1d5f0f659d7c

12 years agoMerge "Bug 5082191 fix slesTest_decodeToBuffQueue assert"
Glenn Kasten [Fri, 29 Jul 2011 22:40:46 +0000 (15:40 -0700)]
Merge "Bug 5082191 fix slesTest_decodeToBuffQueue assert"

12 years agoMerge "Bug 5092976 no spurious callbacks on prefetch fail"
Glenn Kasten [Fri, 29 Jul 2011 14:19:36 +0000 (07:19 -0700)]
Merge "Bug 5092976 no spurious callbacks on prefetch fail"

12 years agoMerge "Bug 5081346 fix whole file looping"
Glenn Kasten [Fri, 29 Jul 2011 14:18:10 +0000 (07:18 -0700)]
Merge "Bug 5081346 fix whole file looping"

12 years agoMerge "Adding MediaEncoderFilter for encoding GLFrames"
Pannag Sanketi [Fri, 29 Jul 2011 01:48:00 +0000 (18:48 -0700)]
Merge "Adding MediaEncoderFilter for encoding GLFrames"

12 years agoFix bug in CameraSource resolution selection.
Eino-Ville Talvala [Thu, 28 Jul 2011 23:01:56 +0000 (16:01 -0700)]
Fix bug in CameraSource resolution selection.

Bug: 5083927

Change-Id: I2ff78b717e8092c14f73fc51bb3802a275d08bbf

12 years agoBug 5081346 fix whole file looping
Glenn Kasten [Tue, 26 Jul 2011 21:26:47 +0000 (14:26 -0700)]
Bug 5081346 fix whole file looping

Change-Id: If4e233f9007d7e48225a342a43f06df7f66cdea7

12 years agoBug 5092976 no spurious callbacks on prefetch fail
Glenn Kasten [Thu, 28 Jul 2011 22:14:27 +0000 (15:14 -0700)]
Bug 5092976 no spurious callbacks on prefetch fail

Change-Id: I754085b4d1e43c4d10bea36e0fb683d8113844e9

12 years agoAdding MediaEncoderFilter for encoding GLFrames
Pannag Sanketi [Fri, 8 Jul 2011 18:31:00 +0000 (11:31 -0700)]
Adding MediaEncoderFilter for encoding GLFrames

Added MediaEncoderFilter inside MFF which can record GLFrames. It uses
MediaRecorder underneath. GLEnvironment gets a native window handle
using the MediaRecorder object, and creates an EGLSurface using that.
Any frames rendered to that frame are forwarded to the
StageFrightRecorder via the native window handle obtained from
MediaRecorder.

Related to bug id: 4529323

Change-Id: I0322e8dfa29ba47741222fcb8accf18eab7c050b

12 years agoBug 5082191 fix slesTest_decodeToBuffQueue assert
Glenn Kasten [Wed, 27 Jul 2011 00:36:51 +0000 (17:36 -0700)]
Bug 5082191 fix slesTest_decodeToBuffQueue assert

Change-Id: I2ec181cc7eba000847bd28e6d04733d3496d74d9

12 years agoBug 4599730 fix mute solo, channel count, volume
Glenn Kasten [Mon, 25 Jul 2011 16:27:01 +0000 (09:27 -0700)]
Bug 4599730 fix mute solo, channel count, volume

Change-Id: I1624c744168233c4ef79f2cd3090447b8aa7d53b

12 years agoFix makefile function call syntax
Ying Wang [Thu, 28 Jul 2011 00:05:58 +0000 (17:05 -0700)]
Fix makefile function call syntax

Before this change, the newline character will be carried to the shell
command. So no file name will be returned.

Change-Id: I54ce7da62711bf8e0bd35831e361cbf4eedbcee8

12 years agoMerge "Report last decoded position as AudioPlayer position for PCM decode"
Jean-Michel Trivi [Wed, 27 Jul 2011 23:13:55 +0000 (16:13 -0700)]
Merge "Report last decoded position as AudioPlayer position for PCM decode"

12 years agoMerge "Refactoring to fix GL related bugs (Bugs 5031729, 5062397, 5030694)"
Marius Renn [Wed, 27 Jul 2011 21:08:39 +0000 (14:08 -0700)]
Merge "Refactoring to fix GL related bugs (Bugs 503172950623975030694)"

12 years agoReport last decoded position as AudioPlayer position for PCM decode
Jean-Michel Trivi [Wed, 27 Jul 2011 00:43:14 +0000 (17:43 -0700)]
Report last decoded position as AudioPlayer position for PCM decode

Change-Id: I1ec413137d549235af4dc66cb033e1cd0bbbad62

12 years agoRefactoring to fix GL related bugs (Bugs 5031729, 5062397, 5030694)
Marius Renn [Tue, 26 Jul 2011 23:08:32 +0000 (16:08 -0700)]
Refactoring to fix GL related bugs (Bugs 503172950623975030694)

- GL frame must not override default texture parameters
- Detect leaking frames early.
- Do not double deallocate frames.
- Update bytes per sample when resetting format base-type.
- Split GL processing up to allow UI thread to draw.

Change-Id: I512eb0bf19e212243be2da966ed2f9219e22dc3b

12 years agoConcurrency fix to CameraSource.
Eino-Ville Talvala [Tue, 26 Jul 2011 17:05:53 +0000 (10:05 -0700)]
Concurrency fix to CameraSource.

Don't hold a lock on the whole object while waiting for new frames.
Could have potentially deadlocked the filter if the UI thread
attempted to call get/setCameraParameters while filter was waiting for
a new frame.

Bug-Id: 5075306

Change-Id: I12391ff3247c64a2c6a303bfc9f542e1e80d2c24

12 years agoMerge "Bug 5045590 preset reverb on audio players"
Glenn Kasten [Mon, 25 Jul 2011 23:47:10 +0000 (16:47 -0700)]
Merge "Bug 5045590 preset reverb on audio players"

12 years agoMerge "Fix concurrency bugs in MediaSource"
Eino-Ville Talvala [Mon, 25 Jul 2011 23:25:33 +0000 (16:25 -0700)]
Merge "Fix concurrency bugs in MediaSource"

12 years agoFix bug 5022500 MP2TS format change support in OpenMAX AL
Jean-Michel Trivi [Mon, 25 Jul 2011 17:57:11 +0000 (10:57 -0700)]
Fix bug 5022500 MP2TS format change support in OpenMAX AL

Define new command that can be queued in AndroidBufferQueue
 to signal an MP2TS format change.
This command maps directly to IStreamListener::kKeyFormatChange.

Change-Id: I67908fd9e1a7d994862ea3e41c4c0fb6e36bc804

12 years agoBug 5045590 preset reverb on audio players
Glenn Kasten [Fri, 22 Jul 2011 16:08:21 +0000 (09:08 -0700)]
Bug 5045590 preset reverb on audio players

Aux effects on MediaPlayer audio players (non-AudioTrack) were broken

Change-Id: I5b97bee08d809b12cb9815d6d277934123780581

12 years agoFix concurrency bugs in MediaSource
Eino-Ville Talvala [Fri, 22 Jul 2011 23:21:50 +0000 (16:21 -0700)]
Fix concurrency bugs in MediaSource

Fixes several possible/occasional deadlocks between mediasource,
surfacetexture, and the UI thread.

Change-Id: I62a98f0ed86fd7a6c9d3a5141137fe960d8fa31a

12 years agoMerge "Bug 5068269 Fix assertion failure after prepare"
Glenn Kasten [Sun, 24 Jul 2011 19:55:17 +0000 (12:55 -0700)]
Merge "Bug 5068269 Fix assertion failure after prepare"

12 years agoMerge "pthread_signal instead of polling prefetch status"
Glenn Kasten [Sun, 24 Jul 2011 19:51:35 +0000 (12:51 -0700)]
Merge "pthread_signal instead of polling prefetch status"

12 years agopthread_signal instead of polling prefetch status
Glenn Kasten [Thu, 21 Jul 2011 20:36:39 +0000 (13:36 -0700)]
pthread_signal instead of polling prefetch status

Also add looping for short files

Change-Id: Ia115ca5ff388a4824d56fad2ad34881479ab3f0d

12 years agoMerge "Miscellaneous improvements to preset reverb test"
Glenn Kasten [Fri, 22 Jul 2011 22:09:42 +0000 (15:09 -0700)]
Merge "Miscellaneous improvements to preset reverb test"

12 years agoBug 5068269 Fix assertion failure after prepare
Glenn Kasten [Thu, 21 Jul 2011 20:31:50 +0000 (13:31 -0700)]
Bug 5068269 Fix assertion failure after prepare

Change-Id: I890a29eeef9021c7432da8a0ccb409846e107097

12 years agoMerge "Make CameraSource always pick a resolution from the supported list."
Eino-Ville Talvala [Fri, 22 Jul 2011 19:09:41 +0000 (12:09 -0700)]
Merge "Make CameraSource always pick a resolution from the supported list."