summaryrefslogtreecommitdiffstats
path: root/media/jni
Commit message (Collapse)AuthorAgeFilesLines
* Now that AmrInputStream no longer relies on opencore, make sure it's ↵Andreas Huber2010-09-012-17/+0
| | | | | | | registered in non-opencore builds. Change-Id: Ia9748691ba60d3c4b5fcaf319ed0b4493d69abc6 related-to-bug: 2963846
* Add lost preview surface detection in the JNI layerJames Dong2010-08-121-0/+9
| | | | | | Throws an IOException if this happens rather than crashes Change-Id: I32bb4c889ae596f992a0d05283c9130a99b2d0d5
* Audio effects: modified command() parameter types.Eric Laurent2010-07-281-2/+5
| | | | | | | The type of the cmd, cmdSize and *pReplySize parameters of the effect control interface command() function have been modified from int to uint32_t. This is more consistent with their role. Change-Id: I84d289fc262d6753747910f06f485597dfee6591
* Audio Effects: added methods to effects java classes to store and load ↵Eric Laurent2010-07-271-1/+1
| | | | | | | | | | | | | | current effect settings in a single call. Addional changes: - Fixed simulator build - Use effect interface UUIDs from OpenSL ES includes when available - Added cleanspec rules to remove now obsolete test effect libraries - Fixed bug in AudioEffect JNI setParameter function. Change-Id: Ic25ddb135e2cec5a68c181d727321f5ac7a1ab6b
* Added support for auxiliary audio effects to AudioTrack and MediaPlayer.Eric Laurent2010-07-211-0/+24
| | | | | | | | Added methods to AudioTrack and MediaPlayer java classes to enable use of auxiliary audio effects. The effect can be attached and detached by specifying its ID and the send level controlled. Change-Id: Ie74ff54a453096a742688476f612ce355543b6f3
* Fix swap of sessionId and output in audio effect API.Jean-Michel Trivi2010-07-091-2/+2
| | | | Change-Id: Idc93415efef92087507401e50cfb235a6f1f7ed7
* Merge "Added Visualizer effect." into gingerbreadEric Laurent2010-07-074-41/+523
|\
| * Added Visualizer effect.Eric Laurent2010-07-074-41/+523
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The visualizer enables application to retrieve part of the currently playing audio for visualization purpose. It is not an audio recording interface and only returns partial and low quality audio content as a waveform or a frequency representation (FFT). Removed temporary hack made in MediaPlayer for animated wall papers based on audio visualization (snoop() method. This commit also includes a change in AudioEffect class: - the enable()/disable() methods have been replaced bya more standard setEnabled() method. - some fixes in javadoc Change-Id: Id092a1340e9e38dae68646ade7be054e3a36980e
* | Add multiple camera support for in MediaProfiles.Chih-Chung Chang2010-07-011-20/+20
|/ | | | Change-Id: Ie89568a0f5f5fd08ede77e33f9a559215d6bed9a
* Merge "Various fixes and improvements in audio effects implementation" into ↵Eric Laurent2010-06-251-1/+1
|\ | | | | | | gingerbread
| * Various fixes and improvements in audio effects implementationEric Laurent2010-06-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Effect API: - Use different definitions for audio device, channels, formats... in AudioSystem and EffectApi: Removed media/AudioCommon.h file created for initial version of EffectApi - Indicate audio session and output ID to effect library when calling EffectCreate(). Session ID can be useful to optimize the implementation of effect chains in the same audio session. Output ID can be used for effects implemented in audio hardware. - Renamed EffectQueryNext() function to EffectQueryEffect() and changed operating mode: now an index is passed for the queried effect instead of implicitly querying the next one. - Added CPU load and memory usage indication in effects descriptor - Added flags and commands to indicate changes in audio mode (ring tone, in call...) to effect engine - Added flag to indicate hardware accelerated effect implementation. - Renamed EffectFactoryApi.h to EffectsFactoryApi.h for consistency with EffectsFactory.c/h Effect libraries: - Reflected changes in Effect API - Several fixes in reverb implementation - Added build option TEST_EFFECT_LIBRARIES in makefile to prepare integration of actual effect library. - Replaced pointer by integer identifier for library handle returned by effects factory Audio effect framework: - Added support for audio session -1 in preparation of output stage effects configuration. - Reflected changes in Effect API - Removed volume ramp up/down when effect is inserted/removed: this has to be taken care of by effect engines. - Added some overflow verification on indexes used for deferred parameter updates via shared memory - Added hardcoded CPU and memory limit check when creating a new effect instance Change-Id: I43fee5182ee201384ea3479af6d0acb95092901d
* | Remove most stagefright property overrides, remove VorbisPlayer and ↵Andreas Huber2010-06-232-31/+2
|/ | | | | | | VorbisMetadataRetriever as this functionality is now provided by stagefright. Change-Id: Ieafe75a4550c273ad59b4518d7cd4c0fce0f7cce related-to-bug: 2370115
* Added support for audio sessions in MediaPlayer and AudioTrack.Eric Laurent2010-06-221-2/+25
| | | | | | Audio sessions are used to associate audio effects to particular instances (or groups) of MediaPlayers or AudioTracks. Change-Id: Ib94eec43241cfcb416590f435ddce7ab39a07640
* AmrInputStream refresh: eliminate the dependency upon OpenCore's codeJames Dong2010-06-182-76/+51
| | | | Change-Id: I0e66bc0a16fcdcf70136012ae1cd4138506cc94b
* Merge "Issue 2667802: [Audio Effect Framework] AudioEffect base class and ↵Eric Laurent2010-06-143-1/+879
|\ | | | | | | JNI." into kraken
| * Issue 2667802: [Audio Effect Framework] AudioEffect base class and JNI.Eric Laurent2010-06-113-1/+879
| | | | | | | | | | | | | | | | | | | | Added AudioEffect C++ class. AudioEffect is the base class for effect specific implementations, OpenSL ES effect interfaces and audio effect JNI. Added the AudioEffect JNI and AudioEffect JAVA class. AudioEffect is the base class to implement more specific JAVA classes to control audio effects from JAVA applications. Change-Id: If300a1b708f2e6605891261e67bfb4f8330a4624
* | Fix a potential(observed sometimes) media server crashJames Dong2010-06-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The problem is that we are referring an temp object returned from a function call. When the function call returned, the temp object is gone; and thus the reference may be invalidated. -- rebased bug - 2734946 Change-Id: I1993c4462df95610ca478f816adc30058af5850e
* | allow re-targetting of surfacesMathias Agopian2010-06-081-1/+1
|/ | | | | | | | | Surfaces can now be parcelized and sent to remote processes. When a surface crosses a process boundary, it looses its connection with the current process and gets attached to the new one. Change-Id: I39c7b055bcd3ea1162ef2718d3d4b866bf7c81c0
* don't hardcode "mSurface" throughout our source codeMathias Agopian2010-04-122-2/+2
| | | | | | | this is used in a few places to get access to the android.view.Surface native surface. use a macro instead. Also rename the field to mNativeSurface. Change-Id: I1c6dea14abd6b8b1392c7f97b304115999355094
* Use local lock for most MediaMetadataRetriever methods. Bug 2560834.Dave Sparks2010-04-011-7/+0
| | | | | | | | | | MediaMetadataRetriever uses a single static lock for all operations. This effectively serializes all metadata retrieval operations in a single process. This patch uses the object level lock for all normal operations and only uses the static lock to serialize calls to release. Change-Id: I81c9f234c2f0007a26d18e1398c709b41a4dbbd7
* Add a name to the previously-unnamed thread created by SoundPoolThread.Steve Howard2010-03-112-3/+2
| | | | | | SoundPool itself also creates a thread, which was called "SoundPoolThread", unrelated to the SoundPoolThread class. The SoundPoolThread class then created an unnamed thread, which showed up as "android:unnamed_thread". That's confusing, so this change renames the SoundPool thread to "SoundPool" and then names the SoundPoolThread thread as "SoundPoolThread". Say that ten times fast :) Change-Id: I67b7e644a30c94b6eda44bf970764a52a1c2958b
* Clean up MediaRecorder for public Java SDKJames Dong2010-03-031-3/+3
| | | | | | - update comments and fix a check in setAudioChannels() bug - 2362412
* Merge "Image encoding settings java API through xml configuration file"James Dong2010-02-251-4/+38
|\
| * Image encoding settings java API through xml configuration fileJames Dong2010-02-241-4/+38
| | | | | | | | | | | | - I decided to completely remove jpeg decoding related stuff from this change I think that setting is better off if it is specified by the system properties. We don't have to include MediaProfiles.h header in skia files
* | Fix for the safty check. It checks that nFir21 + jNpoints <= BUF_SIZE,Gloria Wang2010-02-221-1/+1
|/ | | | | but when it calls GetByteArrayRegion, it multiplies it by 2 which defeats the "// safety first" check at the beginning.
* Fix logging in SoundPool.Dave Sparks2010-02-171-2/+2
|
* Merge "Add SoundPool API to pause and resume all active streams. Bug 2426531."Dave Sparks2010-02-163-1/+76
|\
| * Add SoundPool API to pause and resume all active streams. Bug 2426531.Dave Sparks2010-02-163-1/+76
| |
* | Merge "Support decoder queries from media profiles xml configuration file"James Dong2010-02-161-8/+63
|\ \ | |/ |/|
| * Support decoder queries from media profiles xml configuration fileJames Dong2010-02-121-8/+63
| |
* | New API on java's MediaPlayer to suspend/resume a session.Andreas Huber2010-02-121-0/+14
| | | | | | | | related-to-bug: 2231576
* | split libsurfaceflinger_client and libcamera_client out of libuiMathias Agopian2010-02-113-5/+7
|/
* Camcorder profile Java API supportJames Dong2010-02-041-4/+68
| | | | | | | - Use Enum for Quality instead of int - Use static values() method from Enum, rather than if-else bug - 2417312
* Initial check-in for xml-based encoder capabilities retrievalJames Dong2010-02-013-1/+195
| | | | | - Changed the Java API as suggested - Treat /etc/media_profiles.xml as the default xml configurtion file
* API Extension: Support for optionally specifying a map of extra request ↵Andreas Huber2010-01-281-4/+91
| | | | | | | | headers when specifying the uri of media data to be played. related-to-bug: 2393577 Original change by Andrei Popescu <andreip@google.com>
* Attempt to fix the build ... again.Andreas Huber2010-01-271-1/+4
|
* Fixing the build. Why is this suddenly necessary and didn't break the build ↵Andreas Huber2010-01-271-0/+2
| | | | before???
* Reorganize some of the stagefright implementation related to metadata.Andreas Huber2010-01-082-8/+32
|
* Fix SoundPool restart problem CheckJNI issue.Dave Sparks2009-12-231-1/+5
|
* Add OnLoadCompleteListener to SoundPool.Dave Sparks2009-12-235-57/+111
|
* am b5fc8ffc: am 91487425: Merge change I0448ef20 into eclairDave Sparks2009-12-151-5/+6
|\ | | | | | | | | | | | | Merge commit 'b5fc8ffcff6b8e1747af5c6ba1176a81986b55a8' * commit 'b5fc8ffcff6b8e1747af5c6ba1176a81986b55a8': Fix SoundPool buffer size rounding error. Bug 2327620.
| * Fix SoundPool buffer size rounding error. Bug 2327620.Dave Sparks2009-12-141-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | AudioTrack was modified earlier to calculate minimum buffer size based on the hardware reported latency. Previously, it was a hard-coded value. As a result of this change, the minimum buffer size is now variable based on hardware latency. On Passion, this brought out a subtle rounding error in the buffer size calculation in SoundPool. This can cause AudioTrack creation to fail based on the requested sample rate. This fix calculates the total buffer size first, and then does rounding before dividing by the number of buffers.
* | More SoundPool cleanup. Remove mSoundPoolRef and unused notify callback.Dave Sparks2009-12-071-4/+0
| |
* | Remove unused Java object reference in native SoundPool code.Dave Sparks2009-12-073-4/+3
| |
* | Refactor MediaScanner. Some steps on the way towards being able to build the ↵Andreas Huber2009-12-033-8/+30
|/ | | | tree without OpenCore.
* Music visualizer support hack.Marco Nelissen2009-10-061-0/+13
| | | | This currently assumes 44k stereo (won't crash on other formats, but won't give the correct results either), and links statically with libspeex to get FFT data, increasing the size of libmedia by about 45kb.
* Fix broken build.Dianne Hackborn2009-09-231-2/+2
| | | | | | I -did- run it... why did this later break on me?!? Change-Id: I70db0279f9a1b499496f9808525d2b112495d6c7
* When encountering a .nomedia file, notify the MediaScannerClient,Marco Nelissen2009-09-031-0/+16
| | | | | | | so that it can erase the data column for entries that are in the folder containing the .nomedia file. This prevents us from deleting (via a delete trigger) files when somebody adds a .nomedia file after the fact.
* We don't need libopencore_author and libcutils in libmedia_jniMarco Nelissen2009-08-031-2/+0
|
* Untangle MediaPlayer, MediaRecorder, MediaScanner and MediaMetadataRetriever JNIMarco Nelissen2009-08-036-134/+157
| | | | | code, so that creating one of those doesn't initialize all the others. Shaves a hundred milliseconds or so off music app startup time.