OSDN Git Service

android-x86/system-media.git
13 years agoReconcile gingerbread-plus-aosp and honeycomb
The Android Open Source Project [Sun, 30 Jan 2011 20:43:22 +0000 (12:43 -0800)]
Reconcile gingerbread-plus-aosp and honeycomb

Change-Id: Id6a4042483e3c5d9bdba600ec06f11596212d838

13 years agoMass merge from gingerbread - do not merge
The Android Open Source Project [Sun, 30 Jan 2011 20:43:22 +0000 (12:43 -0800)]
Mass merge from gingerbread - do not merge

Change-Id: Ibdf926e21c60db22344c1dd8d9a6a3ab3fbc4bb9

13 years agoam 4c2bc0fd: Bug 3388299 Fix stack buffer overrun
Glenn Kasten [Sat, 29 Jan 2011 17:55:00 +0000 (09:55 -0800)]
am 4c2bc0fd: Bug 3388299 Fix stack buffer overrun

* commit '4c2bc0fd150b0164f9f387214c29143346a92e14':
  Bug 3388299 Fix stack buffer overrun

13 years agoam 062b7b45: Merge "Bug 3326605: AudioRecorder uses wrong channel mask" into gingerbread
Glenn Kasten [Sat, 29 Jan 2011 15:08:41 +0000 (07:08 -0800)]
am 062b7b45: Merge "Bug 3326605: AudioRecorder uses wrong channel mask" into gingerbread

* commit '062b7b45b27c6bfffc494af21382d7fa7a8d2d82':
  Bug 3326605: AudioRecorder uses wrong channel mask

13 years agoMerge/ignore 28d27b96 from gingerbread
Jean-Baptiste Queru [Sat, 29 Jan 2011 15:04:01 +0000 (07:04 -0800)]
Merge/ignore 28d27b96 from gingerbread

Change-Id: I25fd80f057b9a5b901f5353c296238a0f1ddf4d8

13 years agoam 04f8400d: am 4c2bc0fd: Bug 3388299 Fix stack buffer overrun
Glenn Kasten [Thu, 27 Jan 2011 00:57:42 +0000 (16:57 -0800)]
am 04f8400d: am 4c2bc0fd: Bug 3388299 Fix stack buffer overrun

* commit '04f8400dae4e9c26e8e6bdf707513304cd5bc5df':
  Bug 3388299 Fix stack buffer overrun

13 years agoam 4c2bc0fd: Bug 3388299 Fix stack buffer overrun
Glenn Kasten [Wed, 26 Jan 2011 23:11:43 +0000 (15:11 -0800)]
am 4c2bc0fd: Bug 3388299 Fix stack buffer overrun

* commit '4c2bc0fd150b0164f9f387214c29143346a92e14':
  Bug 3388299 Fix stack buffer overrun

13 years agoam e619a697: Bug 3388299 Fix stack buffer overrun
Glenn Kasten [Wed, 26 Jan 2011 21:58:47 +0000 (13:58 -0800)]
am e619a697: Bug 3388299 Fix stack buffer overrun

* commit 'e619a697ededd37b3645c3970a4f71af7d663524':
  Bug 3388299 Fix stack buffer overrun

13 years agoBug 3388299 Fix stack buffer overrun
Glenn Kasten [Tue, 25 Jan 2011 17:26:11 +0000 (09:26 -0800)]
Bug 3388299 Fix stack buffer overrun

Change-Id: Ie8c525ddee862b32f2055cb89c10a680f0c14f97

13 years agoBug 3388299 Fix stack buffer overrun
Glenn Kasten [Tue, 25 Jan 2011 17:26:11 +0000 (09:26 -0800)]
Bug 3388299 Fix stack buffer overrun

Change-Id: I715affa4f6599afabc0bc9b56981edce2edcc95b

13 years agoam bfa9fb97: am 062b7b45: Merge "Bug 3326605: AudioRecorder uses wrong channel mask...
Glenn Kasten [Tue, 25 Jan 2011 18:02:35 +0000 (10:02 -0800)]
am bfa9fb97: am 062b7b45: Merge "Bug 3326605: AudioRecorder uses wrong channel mask" into gingerbread

* commit 'bfa9fb977e1e9a89f198571ab84f2fb198f72556':
  Bug 3326605: AudioRecorder uses wrong channel mask

13 years agoresolved conflicts for merge of 4ecd13c7 to honeycomb-plus-aosp
Glenn Kasten [Tue, 25 Jan 2011 17:57:51 +0000 (09:57 -0800)]
resolved conflicts for merge of 4ecd13c7 to honeycomb-plus-aosp

Change-Id: I536a8136afd7f92606a93b7d423499445eb89ae8

13 years agoam 062b7b45: Merge "Bug 3326605: AudioRecorder uses wrong channel mask" into gingerbread
Glenn Kasten [Sun, 23 Jan 2011 19:39:56 +0000 (11:39 -0800)]
am 062b7b45: Merge "Bug 3326605: AudioRecorder uses wrong channel mask" into gingerbread

* commit '062b7b45b27c6bfffc494af21382d7fa7a8d2d82':
  Bug 3326605: AudioRecorder uses wrong channel mask

13 years agoam 28d27b96: Bug 3360707
Glenn Kasten [Sun, 23 Jan 2011 19:39:53 +0000 (11:39 -0800)]
am 28d27b96: Bug 3360707

* commit '28d27b961d0ee209865046237edc03537d0f25f1':
  Bug 3360707

13 years agoMerge "Bug 3326605: AudioRecorder uses wrong channel mask" into gingerbread
Glenn Kasten [Sun, 23 Jan 2011 19:23:05 +0000 (11:23 -0800)]
Merge "Bug 3326605: AudioRecorder uses wrong channel mask" into gingerbread

13 years agoBug 3326605: AudioRecorder uses wrong channel mask
Glenn Kasten [Thu, 6 Jan 2011 01:16:13 +0000 (17:16 -0800)]
Bug 3326605: AudioRecorder uses wrong channel mask

Change-Id: I2121211b0202bc39100d74232d63be94c7e8a8de

13 years agoBug 3360707
Glenn Kasten [Sun, 16 Jan 2011 18:08:05 +0000 (10:08 -0800)]
Bug 3360707

Change-Id: Ib40d8813ac713d09ed7b298521fada1a35ecb1d4

13 years agoRename class__ to clazz, this to thiz
Glenn Kasten [Tue, 18 Jan 2011 19:44:36 +0000 (11:44 -0800)]
Rename class__ to clazz, this to thiz

The JNI naming conventions avoid conflict with C++ reserved words.

Change-Id: I93ad6920bf78c0a02ac4b2650a29c9e11252f731

13 years agoMerge "Replace obsolete comment" into honeycomb
Glenn Kasten [Tue, 18 Jan 2011 21:59:55 +0000 (13:59 -0800)]
Merge "Replace obsolete comment" into honeycomb

13 years agoMerge "JNI is obsolete" into honeycomb
Glenn Kasten [Tue, 18 Jan 2011 21:59:47 +0000 (13:59 -0800)]
Merge "JNI is obsolete" into honeycomb

13 years agoJNI is obsolete
Glenn Kasten [Tue, 18 Jan 2011 19:26:24 +0000 (11:26 -0800)]
JNI is obsolete

Change-Id: Ic89b9b8875af6ce13cd96d8c0c944e8878805093

13 years agoReplace obsolete comment
Glenn Kasten [Tue, 18 Jan 2011 19:23:09 +0000 (11:23 -0800)]
Replace obsolete comment

Change-Id: I9eb825ece4562d1af742f0851da77c5c9811fe17

13 years agoMinor API change in NuCachedSource2
Bryan Mawhinney [Tue, 18 Jan 2011 19:21:32 +0000 (19:21 +0000)]
Minor API change in NuCachedSource2

approxDataRemaining now returns more info about the stream status.

Change-Id: I5549edb3765eb07fcfa5340b8755263e0e0ee196

13 years agoThis bug caught in code review (not used yet)
Glenn Kasten [Sun, 16 Jan 2011 21:07:55 +0000 (13:07 -0800)]
This bug caught in code review (not used yet)

Change-Id: I544447d7a91909258a7d43da1e42e1c98b638c19

13 years agoMerge "SMP safety: can't peek/poke without a barrier" into honeycomb
Glenn Kasten [Sun, 16 Jan 2011 20:39:38 +0000 (12:39 -0800)]
Merge "SMP safety: can't peek/poke without a barrier" into honeycomb

13 years agoMerge "Re-build the autogen files" into honeycomb
Glenn Kasten [Sun, 16 Jan 2011 20:39:28 +0000 (12:39 -0800)]
Merge "Re-build the autogen files" into honeycomb

13 years agoRe-build the autogen files
Glenn Kasten [Sun, 16 Jan 2011 18:33:10 +0000 (10:33 -0800)]
Re-build the autogen files

Change-Id: Ifd6f97a61168833ae34e8df8f6a6a79df9a9bcd5

13 years agoSMP safety: can't peek/poke without a barrier
Glenn Kasten [Sun, 16 Jan 2011 18:00:21 +0000 (10:00 -0800)]
SMP safety: can't peek/poke without a barrier

Change-Id: I97a78322b7b93440ad989b7a6aef4ba3c48a2b7f

13 years agoBug 3360707
Glenn Kasten [Sun, 16 Jan 2011 18:08:05 +0000 (10:08 -0800)]
Bug 3360707

Change-Id: I4a021ba7fa1f3807a658ee1336bf32b9d6728f3e

13 years agoMerge "Make symlink for libOpenMAXAL.so" into honeycomb
Glenn Kasten [Thu, 13 Jan 2011 00:33:53 +0000 (16:33 -0800)]
Merge "Make symlink for libOpenMAXAL.so" into honeycomb

13 years agoMake symlink for libOpenMAXAL.so
Glenn Kasten [Wed, 12 Jan 2011 23:57:58 +0000 (15:57 -0800)]
Make symlink for libOpenMAXAL.so

Change-Id: I06cb66a30a1a543d2c6f7b93428d29d1b90edb2a

13 years agoMore file renames and header inclusion reorder
Jean-Michel Trivi [Wed, 12 Jan 2011 18:01:09 +0000 (10:01 -0800)]
More file renames and header inclusion reorder

More file renames and include reordering to separate Android
 classes, and the mapping of the C OpenSL ES and OpenMAX AL
 function calls to the Android implementation.

Change-Id: Id6f63af80bd581ed9cab495e2c11a86589ecf6c9

13 years agoDirectory re-organization
Glenn Kasten [Wed, 12 Jan 2011 15:29:49 +0000 (07:29 -0800)]
Directory re-organization

Change-Id: I8e3f12a22e765d36ddefd87edf204735b25474f6

13 years agoMerge "AudioRecorder source format should be NULL not PCM" into honeycomb
Glenn Kasten [Wed, 12 Jan 2011 01:54:00 +0000 (17:54 -0800)]
Merge "AudioRecorder source format should be NULL not PCM" into honeycomb

13 years agoMerge "Ignore the pFormat in some cases per spec" into honeycomb
Glenn Kasten [Wed, 12 Jan 2011 01:53:03 +0000 (17:53 -0800)]
Merge "Ignore the pFormat in some cases per spec" into honeycomb

13 years agoIgnore the pFormat in some cases per spec
Glenn Kasten [Wed, 12 Jan 2011 00:52:01 +0000 (16:52 -0800)]
Ignore the pFormat in some cases per spec

Change-Id: Iac14c558fa7410a4b3de5c89f9e5d475404efcea

13 years agoOpenMAX AL: support URI and FD as data sources for MediaPlayer
Jean-Michel Trivi [Tue, 11 Jan 2011 22:43:31 +0000 (14:43 -0800)]
OpenMAX AL: support URI and FD as data sources for MediaPlayer

Add ANDROIDFD as a data locator in OpenMAX AL

Implement playback of URI and FD in the LocAVPlayer class, that
 inherits from AVPlayer

Fix bug where Android MediaPlayer resources were not destroyed
 when the MediaPlayer object was destroyed.

Share URI and FD internal type definitions between SL and AL

Change-Id: I01d0d170baea4961f09b44339c99a79feba4620d

13 years agoAudioRecorder source format should be NULL not PCM
Glenn Kasten [Tue, 11 Jan 2011 22:31:03 +0000 (14:31 -0800)]
AudioRecorder source format should be NULL not PCM

Change-Id: I4bfdfa3700685f1705e0430fd4fe15b51ab9cefb

13 years agoSquashed commit of 9 cherry-picks from master
Glenn Kasten [Wed, 5 Jan 2011 21:56:46 +0000 (13:56 -0800)]
Squashed commit of 9 cherry-picks from master

Android SDK level report is the highest available

Fix bug in seek torture test
    This was found because we now do better checking of data locators.

Comment out and decrease log level for play state

Improve error handling and help message in test

Include data source or sink name in log messages

Bug 3326605: AudioRecorder uses wrong channel mask

Don't overwrite previous error in locator check

OpenSLESUT.h is not (yet) a supported header
    so remove the symlink from the SLES/ directory

Shared engine between OpenSL ES and OpenMAX AL

13 years agoOpenMAX AL: declare the XAAndroidSimpleBufferQueueItf interface.
Jean-Michel Trivi [Sun, 9 Jan 2011 22:29:28 +0000 (14:29 -0800)]
OpenMAX AL: declare the XAAndroidSimpleBufferQueueItf interface.

Identical to the SLAndroidSimpleBufferQueueItf interface, with
 OpenMAX AL types.

Change-Id: Iefc4f9ffc72f85f543f258d7906367cfedfb9e0b

13 years agoOpenMAX AL: start implementation of XAStreamInformationItf
Jean-Michel Trivi [Sun, 9 Jan 2011 20:22:40 +0000 (12:22 -0800)]
OpenMAX AL: start implementation of XAStreamInformationItf

XAStreamInformationItf is to be used for video size notifications.

Change-Id: I6b0d6b186772b4a66188fba7e4624092cef55c3a

13 years agoOpenMAX AL example: remove useless includes
Jean-Michel Trivi [Thu, 6 Jan 2011 23:01:14 +0000 (15:01 -0800)]
OpenMAX AL example: remove useless includes

It's no longer necessary to include the OpenSL ES headers in
 an OpenMAX AL application for the declaration of
 XA_IID_ANDROIDBUFFERQUEUE.

Change-Id: I2077997087ff23db033ab69c498daf8eaaffedc9

13 years agoInitialize video surface from native window
Jean-Michel Trivi [Thu, 6 Jan 2011 22:38:35 +0000 (14:38 -0800)]
Initialize video surface from native window

When configuring the MediaPlayer object, use the ANativeWindow
 pointer given as the video sink to get the display Surface pointer.

Change-Id: I0f78b7634152150ff31bfa096b8ed88ffa918f43

13 years agoMerge "Remove obsolete USE_BACKPORT"
Glenn Kasten [Wed, 5 Jan 2011 15:58:02 +0000 (07:58 -0800)]
Merge "Remove obsolete USE_BACKPORT"

13 years agoMerge "Move a few FIXME to a separate to-do list"
Glenn Kasten [Wed, 5 Jan 2011 15:57:55 +0000 (07:57 -0800)]
Merge "Move a few FIXME to a separate to-do list"

13 years agoMerge "Remove obsolete EQ test code"
Glenn Kasten [Wed, 5 Jan 2011 15:57:43 +0000 (07:57 -0800)]
Merge "Remove obsolete EQ test code"

13 years agoMove a few FIXME to a separate to-do list
Glenn Kasten [Tue, 4 Jan 2011 21:01:33 +0000 (13:01 -0800)]
Move a few FIXME to a separate to-do list

And delete a few FIXME that are obsolete.

Change-Id: Ibc65c26e75f9e9ace81d264760f93384a7fc71a5

13 years agoRemove obsolete EQ test code
Glenn Kasten [Tue, 4 Jan 2011 21:00:24 +0000 (13:00 -0800)]
Remove obsolete EQ test code

Change-Id: Iae86d766b382f96d87c2b41f3a6e6f988f54d791

13 years agoRemove obsolete USE_BACKPORT
Glenn Kasten [Tue, 4 Jan 2011 20:42:06 +0000 (12:42 -0800)]
Remove obsolete USE_BACKPORT

Change-Id: I4e13d4f5c57fa7b676737be89a6b0a9bec6aa65f
Note: the ANDROID rename will be a separate changelist.

13 years agoFix SLAndroidBufferQueueItf callback registration for a MediaPlayer
Jean-Michel Trivi [Tue, 4 Jan 2011 20:14:35 +0000 (12:14 -0800)]
Fix SLAndroidBufferQueueItf callback registration for a MediaPlayer

Add missing break when testing if object is a MediaPlayer.

Change-Id: Ib2796ff65b7434902c5e7910577603f6bd1e817e

13 years agoam 9468a111: Merge "IAndroidEffect.c is actually a c++ file."
Jean-Baptiste Queru [Thu, 30 Dec 2010 00:01:31 +0000 (16:01 -0800)]
am 9468a111: Merge "IAndroidEffect.c is actually a c++ file."

* commit '9468a1116bba91c4fabe06a97c266d8332b030aa':
  IAndroidEffect.c is actually a c++ file.

13 years agoMerge "IAndroidEffect.c is actually a c++ file."
Jean-Baptiste Queru [Wed, 29 Dec 2010 21:00:18 +0000 (13:00 -0800)]
Merge "IAndroidEffect.c is actually a c++ file."

13 years agoIAndroidEffect.c is actually a c++ file.
Bruce Beare [Sun, 26 Dec 2010 17:55:13 +0000 (09:55 -0800)]
IAndroidEffect.c is actually a c++ file.

The file uses new and delete; It requires -fno-rtti
to correctly build for Android. Since -fno-rtti is only
available (with the 4.2.1 IA toolchain) for g++, we
rename the file.

Change-Id: Ib8cb75c64aeae207f80429795bff663f3e8aee39
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoDon't trace all OpenSL ES methods in the log
Jean-Michel Trivi [Thu, 16 Dec 2010 19:57:17 +0000 (11:57 -0800)]
Don't trace all OpenSL ES methods in the log

Change-Id: I3039807ef1d056efcd2ab91198f1c9ba706b78eb

13 years agoClean up the API macros
Glenn Kasten [Thu, 16 Dec 2010 20:10:12 +0000 (12:10 -0800)]
Clean up the API macros

SL_API and XA_API declare a symbol to be exported by .so.
SLAPIENTRY and XAAPIENTRY are for calling conventions, and are currently unused.
Also unified the 64-bit int types between SL and XA.
Remove obsolete symlinks.

Change-Id: I248f624f3e974f130c62cfc27ce9ad8eb40c0b56

13 years agoMerge "Test bug fixes"
Glenn Kasten [Thu, 16 Dec 2010 18:43:10 +0000 (10:43 -0800)]
Merge "Test bug fixes"

13 years agoMerge "Delete blank line at EOF"
Glenn Kasten [Thu, 16 Dec 2010 18:43:01 +0000 (10:43 -0800)]
Merge "Delete blank line at EOF"

13 years agoMerge "Fix portability problem for desktop test build"
Glenn Kasten [Thu, 16 Dec 2010 18:42:55 +0000 (10:42 -0800)]
Merge "Fix portability problem for desktop test build"

13 years agoFix bad pointer caught by clang static analysis
Glenn Kasten [Thu, 16 Dec 2010 16:42:47 +0000 (08:42 -0800)]
Fix bad pointer caught by clang static analysis

Change-Id: I6f22f04a93b70a513ac88b1174bc282009969a6a

13 years agoFix portability problem for desktop test build
Glenn Kasten [Thu, 16 Dec 2010 16:37:35 +0000 (08:37 -0800)]
Fix portability problem for desktop test build

Change-Id: I7bf344f5f7da2b6ce8bdfa7487da7594719fcd4d

13 years agoDelete blank line at EOF
Glenn Kasten [Mon, 13 Dec 2010 18:38:09 +0000 (10:38 -0800)]
Delete blank line at EOF

Change-Id: I0786ba4dd49f0e9c289ce96f9208c6f1cd63fb9e

13 years agoUse NDK API to initialize display surface in OpenMAX AL TS demo.
Jean-Michel Trivi [Wed, 15 Dec 2010 22:11:53 +0000 (14:11 -0800)]
Use NDK API to initialize display surface in OpenMAX AL TS demo.

Use ANativeWindow functions defined in android/native_window_jni.h
 to initialize the display surface to be used as video sink by the
 OpenMAX AL MediaPlayer.

Change-Id: I36a91f4d9a928efa861ae0c01ea5856d4e36b46f

13 years agoMerge "OpenMAX AL: set video display surface from video sink"
Jean-Michel Trivi [Tue, 14 Dec 2010 22:28:30 +0000 (14:28 -0800)]
Merge "OpenMAX AL: set video display surface from video sink"

13 years agoOpenMAX AL: set video display surface from video sink
Jean-Michel Trivi [Tue, 14 Dec 2010 20:23:00 +0000 (12:23 -0800)]
OpenMAX AL: set video display surface from video sink

Initialize the media player's video surface with the surface pointer
 obtained from the Java Surface.
Added notes on parts of the interface that will change, and are
 currently in place for the sample code to run, before the
 upcoming video initialization changes.

Change-Id: Id606f4bca68d227fa9df863922b880e865f845d5

13 years agoThe correct tag is "tests", not "test"
Ying Wang [Tue, 14 Dec 2010 19:07:52 +0000 (11:07 -0800)]
The correct tag is "tests", not "test"

Change-Id: Ib28337b6f2bf2598175dc697950c46a9c7e98b1b

13 years agoTransport stream: handle internal async preparation and play state.
Jean-Michel Trivi [Tue, 14 Dec 2010 04:54:24 +0000 (20:54 -0800)]
Transport stream: handle internal async preparation and play state.

In OpenMAX AL and OpenSL ES, update the Android object state
 according to the prepare state (transitions from unitialized to
 preparing to ready after a prepare), and correctly use it to
 handle play state changes.

Change-Id: Id58fb6d2fdce1a5ccd7ddae135b9969e93cb1ba3

13 years agoTest bug fixes
Glenn Kasten [Tue, 16 Nov 2010 01:50:51 +0000 (17:50 -0800)]
Test bug fixes

Preset reverb durationInMsec changed from 5000 to 10000.
NDK does not have an independent API level, so use the SDK's API level.
Removed a workaround for a bug which is now fixed in the implementation.
Fix uninitialized variable in test.

Change-Id: Ibaa4f1d2351e8f75290377cadc02ee2709bf720b

13 years agoContinue unifying OpenSL ES / OpenMAX AL implementation
Jean-Michel Trivi [Sun, 12 Dec 2010 02:10:12 +0000 (18:10 -0800)]
Continue unifying OpenSL ES / OpenMAX AL implementation

Add new header for Android definitions.
Rename the Android object types to be more descriptive (data source,
 player).
New Android and volume fields to CMediaPlayer object, initialize
 those fields.
Unify play state control between CMediaPlayer and CAudioPlayer.

Change-Id: I23e9c03a88cc29c5a40525edf5693a9d05285e6b

13 years agoStart support for XAAndroidBufferQueueItf in OpenMAX AL
Jean-Michel Trivi [Fri, 10 Dec 2010 19:03:19 +0000 (11:03 -0800)]
Start support for XAAndroidBufferQueueItf in OpenMAX AL

Added an Android OpenMAX AL header for the Android interfaces
Registered the AndroidBufferQueueItf as an explicit
 interface on MediaPlayer.
Updated the Java+Native example to register a callback from
 which OpenMAX AL can retrieve the data to play
Started unifying the player object used by OpenMAX AL and
 OpenSL ES so they use a common class.

Change-Id: I73cec8c802f74767545c91278e5e73c8c7995218

13 years agoAdd superclass for audio-video playback
Jean-Michel Trivi [Wed, 8 Dec 2010 23:20:20 +0000 (15:20 -0800)]
Add superclass for audio-video playback

Change-Id: Ie7f5cb9d789d41c605dc318bbb311aadabce2c96

13 years agoMerge "Correct data locator and format check for AndroidBufferQueue source."
Jean-Michel Trivi [Wed, 8 Dec 2010 23:42:17 +0000 (15:42 -0800)]
Merge "Correct data locator and format check for AndroidBufferQueue source."

13 years agoCorrect data locator and format check for AndroidBufferQueue source.
Jean-Michel Trivi [Wed, 8 Dec 2010 23:15:53 +0000 (15:15 -0800)]
Correct data locator and format check for AndroidBufferQueue source.

Change-Id: Ib70391148e2abded57ec0f6028e081f5232ffc31

13 years agoNative media test app
Glenn Kasten [Tue, 7 Dec 2010 19:38:40 +0000 (11:38 -0800)]
Native media test app

Change-Id: I2089733b4b4adc1d9da75a9c93c72b7c353c668f

13 years agoUpdate use of IStreamListener interface to latest proto
Jean-Michel Trivi [Wed, 8 Dec 2010 01:44:35 +0000 (17:44 -0800)]
Update use of IStreamListener interface to latest proto

Change-Id: I4dc35a0637094780ffb1b7e4006a60fc256770a9

13 years agoContinue implementation of MediaPlayer object
Glenn Kasten [Fri, 3 Dec 2010 17:03:51 +0000 (09:03 -0800)]
Continue implementation of MediaPlayer object

Add CMediaPlayer.c for the various hooks.
Start implementing Play::SetPlayState for MediaPlayer.
CheckDataSource and Sink now takes a mask of allowed data locator types.
Data source and sink error logs now include the name of the source or sink.

Change-Id: I3702c977dd367a788ce78575e1e2891dafd2c983

13 years agoSupport for streaming.
Andreas Huber [Tue, 7 Dec 2010 18:04:38 +0000 (10:04 -0800)]
Support for streaming.

Change-Id: I8c4b53b57ceccf076c971d2ac8cd1223ecece094

13 years agoFix build: bad member variable rename
Jean-Michel Trivi [Thu, 2 Dec 2010 18:52:28 +0000 (10:52 -0800)]
Fix build: bad member variable rename

Change-Id: Ic6092ce27cf3f82d26398ec2f7fb89c9aa6b4828

13 years agoStreamPlayer::onPrepare() should synchronously prepare its player
Jean-Michel Trivi [Thu, 2 Dec 2010 18:26:21 +0000 (10:26 -0800)]
StreamPlayer::onPrepare() should synchronously prepare its player

Change-Id: If8ec63e8b93dea2e1810046e05e692755e6a8887
StreamPlayer::onPrepare() should only return when its media player
 is done preparing, so other player commands are processed from
 the message queue when the player is ready to receive them.

13 years agoAsynchronous prepare() on StreamPlayer
Jean-Michel Trivi [Thu, 2 Dec 2010 00:53:06 +0000 (16:53 -0800)]
Asynchronous prepare() on StreamPlayer

Prepare the StreamPlayer object asynchronously.
Fixes the deadlock issue between the SLAndroidBufferQueue callback
 registration and Enqueue() functions.

Change-Id: I76963233f658946db87d0aab6f225bc9e7c8210a

13 years agoMore support for SLAndroidBufferQueueItf
Jean-Michel Trivi [Wed, 1 Dec 2010 00:09:02 +0000 (16:09 -0800)]
More support for SLAndroidBufferQueueItf

Implement Enqueue()
Store "caller" interface to use in the AndroidBufferQueue
 callback.
Update test app in sandbox to use the callback to read
 from a file and enqueue buffers directly.

Change-Id: I68413731d311532b08f8f13577e3ca81c033fcd4

13 years agoStart implementing CreateMediaPlayer
Glenn Kasten [Wed, 1 Dec 2010 05:05:47 +0000 (21:05 -0800)]
Start implementing CreateMediaPlayer

Add CMediaPlayer class.
Add IEngine_CreateMediaPlayer handler.
Add OpenMAX AL native display data locator and raw image data format.
Add OpenMAX AL I/O devices: camera and radio.

Change-Id: Ie99c09110ac9fdcd98bf0bfc487c6e3fcde58f19

13 years agoStart splitting up sles_allinclusive.h.
Glenn Kasten [Tue, 30 Nov 2010 20:23:13 +0000 (12:23 -0800)]
Start splitting up sles_allinclusive.h.

This is the low-hanging fruit only.
Will do the harder parts later.

Change-Id: Ib85ffae7891e1f980dc1f7807df00c1d59df58a5

13 years agoSupport for the SLAndroidBufferQueueItf interface
Jean-Michel Trivi [Mon, 29 Nov 2010 23:35:13 +0000 (15:35 -0800)]
Support for the SLAndroidBufferQueueItf interface

Rename AndroidStreamSource to AndroidBufferQueue.
Add prototype for SLAndroidBufferQueue functions.
Update sandbox test app to use the new interface.

Change-Id: Ib82180c22e5cf0dd982b4a9bb132667cd2ac4dd7

13 years agoContinued work on OpenMAX AL engine APIs
Glenn Kasten [Mon, 29 Nov 2010 00:33:53 +0000 (16:33 -0800)]
Continued work on OpenMAX AL engine APIs

Added xaCreateEngine as synonym for slCreateEngine,
  but not yet reference counted to share same object with slCreateEngine.
Added the beginnings of a XA_IID_ENGINE engine interface
  but still needs more work.
Added simple xa test app.
New extension: ANDROID_SDK_LEVEL_10 (not NDK per digit).
Split up sles.c:
 - Move data source, sink, locator, format code to data.c
 - Move global entry points to entry.c
 - Collect all engine-related code into CEngine.c
 - Collect all device-related code into devices.c

Change-Id: I9fdeed1e29f698869f409014a39401999ac84e5f

13 years agoControl MediaPlayer instance from SL ES interfaces
Jean-Michel Trivi [Tue, 23 Nov 2010 19:45:12 +0000 (11:45 -0800)]
Control MediaPlayer instance from SL ES interfaces

Implement transport control on StreamPlayer.
Store the StreamPlayer in CAudioPlayer as an sp<>
In StreamPlayer: create a media player from the
 mediaplayerservice, and implement the IStreamSource
 interface to get data fromt the application
 callback.
Note that the SLDataLocator_AndroidStreamer and
 SLAndroidStreamSourceItf are very much in flux
 at the moment.

Change-Id: I11035aafcefd59aad99d1fec9fd54a622e6d1e0f

13 years agoPrepare for merged OpenMAX AL and OpenSL ES engine
Glenn Kasten [Mon, 8 Nov 2010 19:56:45 +0000 (11:56 -0800)]
Prepare for merged OpenMAX AL and OpenSL ES engine

Field mEngine is now a reference to CEngine instead of IEngine.
Restore Android.mk.
Move mThreadPool, mEqPresetNames, mEqNumPresets from IEngine to CEngine.
IEngineCapabilities_QueryLEDCapabilities and
  IEngineCapabilities_QueryVibraCapabilities are now non-static
  so that they can be shared by OpenMAX AL's IEngine.
IEngineCapabilities is now required in the build, used by OpenMAX AL IEngine.
The default MPH tables now depend on USE_DESIGNATED_INITIALIZER,
  and generate tables for other C compilers programmatically.
Updated comments in MPH.h.
Removed conditionals from MPH_to.c so that non-GNU tables can be built more easily.
Make the interface ID hash generator less specific about hashing algorithm.
Re-build interface ID hash tables.
Update IID_to_MPH.c based on hashgen.
Add generated MPH_to_*.h.
Remove Android dependency.

Change-Id: Icdf89eedc825f9e52bc264b22d923ae157244ed3

13 years agoSet the MediaPlayer data source from a SL_DATALOCATOR_ANDROIDSTREAMER
Jean-Michel Trivi [Sat, 20 Nov 2010 00:27:10 +0000 (16:27 -0800)]
Set the MediaPlayer data source from a SL_DATALOCATOR_ANDROIDSTREAMER

Use the data locator information to initialize the data source
 of the MediaPlayer instance used in the StreamPlayer object.
Register the callback only when the player is stopped.
Added callback events that can be passed from the application
 to the implementation to synchronously signal events.

Change-Id: I1fc52d8d46b2bcf8ca11ab0e4d44d40e704ddbfc

13 years agoMerge "Maintain a MediaPlayer instance inside StreamPlayer"
Jean-Michel Trivi [Fri, 19 Nov 2010 17:37:31 +0000 (09:37 -0800)]
Merge "Maintain a MediaPlayer instance inside StreamPlayer"

13 years agoMerge "Support 64-bit file size/offset"
James Dong [Fri, 19 Nov 2010 02:19:32 +0000 (18:19 -0800)]
Merge "Support 64-bit file size/offset"

13 years agoMaintain a MediaPlayer instance inside StreamPlayer
Jean-Michel Trivi [Fri, 19 Nov 2010 02:15:30 +0000 (18:15 -0800)]
Maintain a MediaPlayer instance inside StreamPlayer

StreamPlayer is the object that abstracts for OpenSL ES the
 playback of elementary streams. It encapsulates a MediaPlayer
 instance which will handle the playback. This CL simply
 creates and deletes a MediaPlayer instance during the life-cycle
 of StreamPlayer.

Change-Id: I5d56dca72fa05496fcbd0b60a064a6b955494387

13 years agoMore support for SL_DATALOCATOR_ANDROIDSTREAM
Jean-Michel Trivi [Fri, 19 Nov 2010 01:26:01 +0000 (17:26 -0800)]
More support for SL_DATALOCATOR_ANDROIDSTREAM

- add test app in sandbox: based on playUri with different data
  locator
- new object, StreamPlayer, that will encapsulate the life-cycle
 of the new MediaPlayer object that implements the streaming.

Change-Id: Idfdb00e8622ff18d131465d11178979232ee04f8

13 years agoSupport 64-bit file size/offset
James Dong [Wed, 17 Nov 2010 00:46:03 +0000 (16:46 -0800)]
Support 64-bit file size/offset

o This patch depends on the patch in the media framework to support 64-bit file size/offset

Change-Id: Ie26b4ac70eb45654ee9ccc3961b4cc5690468c14

13 years agoDefinition of a new data locator and interface for streaming.
Jean-Michel Trivi [Sat, 13 Nov 2010 00:47:50 +0000 (16:47 -0800)]
Definition of a new data locator and interface for streaming.

Change-Id: Ib929749beca048be46187cabbf466981d81143e7

13 years agoBug 3183484 OpenSL ES: add support for the AUDIO_SOURCE_VOICE_COMMUNICATION record...
Jean-Michel Trivi [Thu, 11 Nov 2010 18:39:29 +0000 (10:39 -0800)]
Bug 3183484 OpenSL ES: add support for the AUDIO_SOURCE_VOICE_COMMUNICATION record source.

Change-Id: Icc593bdf2cc6ef7f61537661a82f63a46dc8693f

13 years agoam e3d47748: Merge "Fix bug 3112893 in handling of container size" into gingerbread
Glenn Kasten [Sat, 23 Oct 2010 01:54:09 +0000 (18:54 -0700)]
am e3d47748: Merge "Fix bug 3112893 in handling of container size" into gingerbread

Merge commit 'e3d47748d093dde0290863bffa4db2f59d5245d8'

* commit 'e3d47748d093dde0290863bffa4db2f59d5245d8':
  Fix bug 3112893 in handling of container size

13 years agoam 202d57f8: Merge "Bug 3101247 - move track ownership" into gingerbread
Glenn Kasten [Sat, 23 Oct 2010 01:54:07 +0000 (18:54 -0700)]
am 202d57f8: Merge "Bug 3101247 - move track ownership" into gingerbread

Merge commit '202d57f8783ee65d20f6d38b870205fd4cad9e66'

* commit '202d57f8783ee65d20f6d38b870205fd4cad9e66':
  Bug 3101247 - move track ownership

13 years agoam 7e34a3c0: Bug 3102561 - Tests only
Glenn Kasten [Sat, 23 Oct 2010 01:54:03 +0000 (18:54 -0700)]
am 7e34a3c0: Bug 3102561 - Tests only

Merge commit '7e34a3c054d9b81b68007a1e94b661d5e209b897'

* commit '7e34a3c054d9b81b68007a1e94b661d5e209b897':
  Bug 3102561 - Tests only

13 years agoMerge "Fix bug 3112893 in handling of container size" into gingerbread
Glenn Kasten [Sat, 23 Oct 2010 00:17:58 +0000 (17:17 -0700)]
Merge "Fix bug 3112893 in handling of container size" into gingerbread

13 years agoMerge "Bug 3101247 - move track ownership" into gingerbread
Glenn Kasten [Sat, 23 Oct 2010 00:17:36 +0000 (17:17 -0700)]
Merge "Bug 3101247 - move track ownership" into gingerbread

13 years agoBug 3101247 - move track ownership
Glenn Kasten [Fri, 22 Oct 2010 18:03:10 +0000 (11:03 -0700)]
Bug 3101247 - move track ownership

Preliminary fix for torture test failure - move track ownership

Change-Id: I4c9de6a85cc0bd594f16bdb1a5de61f5f268cfdb