summaryrefslogtreecommitdiffstats
path: root/include/media
Commit message (Collapse)AuthorAgeFilesLines
* Support more MPEG4-LATM audio functionality.Andreas Huber2011-02-221-1/+2
| | | | | | | related-to-bug: 3474610 Change-Id: I6dab40e8b465922c62be9ee7f168718822c6caac Now skipping extra header that the spec claimed shouldn't be present in LATM...
* A/V synchronization at the beginning of a recording sessionJames Dong2011-02-171-3/+3
| | | | | | | | | | | | | o do not use edts/elst boxes since these optional boxes are ignored o manipulate the first video/audio frame duration to make sure that the rest of the audio/video is in sync (ideally, we should only manipulate the vidoe frame duration, not the audio) o reduce the initial audio mute/suppression period, which is used to eliminate the "recording" sound. bug - 3405882 and 3362703 Change-Id: Ib0acfb4f3843b365157288951dc122b006299c18
* Decouple AudioRecord read and audio encodingJames Dong2011-02-161-6/+18
| | | | | | bug - 3313754 Change-Id: I951dd0e21e34aa1412c391f003bc32103d0424b0
* Merge "Add AAC extractor"Gloria Wang2011-02-151-0/+1
|\
| * Add AAC extractorGloria Wang2011-02-151-0/+1
| | | | | | | | Change-Id: Iedb08525ac72e65ba98e5c791734da0720a0e3f6
* | Make available h263 DSI information from MPEG4ExtractorJames Dong2011-02-111-0/+2
|/ | | | | | bug - 3446863 Change-Id: Idbaf7a564d544784fdbc36ed0339c98a519adc88
* Bug 3352047 Wrong message when adjusting volumeGlenn Kasten2011-02-102-0/+2
| | | | | | Add hidden AudioManager.getDevicesForStream and output device codes. Change-Id: I4d1c1d3b6a077cd117720817d1f733dda557b947
* Reduce blocking time in file writeJames Dong2011-02-091-5/+8
| | | | | | bug - 3418787 Change-Id: I4723662bf46ed07271be8468f84ae5d93cb793fa
* Merge "Handle some edge cases when seeking while starting up OMXCodec"Andreas Huber2011-02-081-0/+1
|\
| * Handle some edge cases when seeking while starting up OMXCodecAndreas Huber2011-02-081-0/+1
| | | | | | | | | | | | | | | | | | | | These were exposed by the new preview-seekframe while paused code. In particular, the codec may have been in state RECONFIGURING when attempting to seek, or we may have initiated flushing of the output port and this may not have completed yet by the time we want to reconfigure the output port. Change-Id: Id7640ade11dbc7205a22f648ea0b5e3e9b49cf4b related-to-bug: 3392259
* | - Do not use global DrmManagerClientGloria Wang2011-02-072-2/+2
|/ | | | | | | - Release the DrmManagerClient and DecryptHandle in DataSource Fix for bug 3429811 Change-Id: I549f72b75225751877eb0e630ce8098f8ec6316f
* Improvements/fixes to ACodec.Andreas Huber2011-02-041-1/+1
| | | | | | | | | | | - Make sure ACodec reverts its state when it's shutdown - Defer "resume" to after handling the OutputPortSettingsChange - If the OMX_EventPortSettingsChanged event comes in while we're flushing, defer it and make sure the output port can be disabled by deleting all buffers not already owned by the component. Change-Id: I1f8cdffa71237b57d4275a48b834647a7b263e8b
* am 6f1bd261: am 9c0a1003: Merge "Fix issue 3371080" into honeycombEric Laurent2011-02-033-5/+4
|\ | | | | | | | | * commit '6f1bd261b7fd86ac7817ca061dfb55b95150b836': Fix issue 3371080
| * Fix issue 3371080Eric Laurent2011-02-033-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified default volume control logic in AudioService: 1 IN_CALL volume if in video/audio chat 2 NOTIFICATION if notification is playing or was playing less than 5s ago. 3 MUSIC Modified silent mode: - now also affect MUSIC stream type - entering silent mode when VOL- hard key is pressed once while selected stream volume is already at 0 (except for VOICE_CALL stream). - exiting silent mode when pressing VOL+ hard key while in silent mode Play sound FX (audible selections, keyboard clicks) at a fixed volume. Modified audio framework: - isStreamActive() method now implemented in AudioPolicyManagerBase (previously AudioFlinger) - iStreamActive() now specifies a time window during which the stream is considered active after it actually stopped. Change-Id: I7e5a0724099450b9fc90825224180ac97322785f
* | Bug 1804058 FLAC extractorGlenn Kasten2011-02-031-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | Note: dependent on external/flac for libFLAC Implemented and tested: * FLAC container * mono and stereo * standard sample rates * standard bit depths * sniffer * media scanner * Vorbis comment metadata including album art * random access seeking with "torture test" * web browser integration for audio/flac (not audio/x-flac), but note that most web servers don't correctly report the MIME type Not implemented: * 24-bit to 16-bit dither or noise shaping in AudioFlinger * 96 kHz to 44.1 or 48 kHz downsampling low pass filter in AudioFlinger * replay gain is better done in AudioFlinger * multi-channel, would need AudioFlinger support * Ogg container, does not seem to be very popular yet Change-Id: I300873e8c0cfc2e95403d9adb5064d16a2923f17
* Make sure that key frame is generated for timelapse video recording if there ↵James Dong2011-01-262-1/+5
| | | | | | | | | | | | | | | | | | | | | are at least two input video frames from camera source. This will fix the stop failure issue where we have to wait n * time_interval before a key frame can be received by the file writer, where o n is the actual number of buffers advertised by the video encoder o time_interval is the interval settings for timelapse video recording specifying the time distance between neighboring input video frames The fix includes two parts: o OMXCodec will not submit all n buffers at one time, but instead submit one input frame at one time if it become available. o Timelapse camera source made available the first two input frames and do not skip them so that the first compressed output frame data can be received regardless the specified time_interval bug - 3367659 Change-Id: Ia68cc2cb0d71aa7dc54540e9ad82fae911ad530b
* Protect notification callback parameters with a mutex.Andreas Huber2011-01-261-4/+14
| | | | | | | | This avoids the race condition where notifications are dispatched to a NULL receiver after notifications have been disabled. Change-Id: I6d351ffbee97616e2c35559c132a6c5e6a66948a related-to-bug: 3394139
* StagefrightMediaScanner: Close metadata retriever after we are done scanningMike Lockwood2011-01-251-4/+0
| | | | | | | | | | This prevents the mediaserver from leaking a file descriptor after the media scanner runs BUG: 3373546 Change-Id: I82a8bae82306de3da56a5c7da5b03ecf106a4efc Signed-off-by: Mike Lockwood <lockwood@android.com>
* Properly rotate video that's marked as such and decoded to a surface.Andreas Huber2011-01-211-0/+2
| | | | | Change-Id: I1e9144db3447e58c99aac3f47702ad471678789c related-to-bug: 3378148
* Some tweaks to HTTP live / nuplayer behaviourAndreas Huber2011-01-211-1/+4
| | | | | | | | | | - play audio-only streams again - workaround for malformed streams that switch PIDs across bandwidths - attempt to pick a different bandwidth stream if the previously chosen one appears to be malformed/unsupported. Change-Id: I426d0a40dc725aa242f619d4c9d048b69aca55c9 related-to-bug: 2368598
* Fix the presentation video resolution when it is different from the actual ↵James Dong2011-01-191-2/+4
| | | | | | | | image resolution of the video. bug - 3352413 Change-Id: I8f08f3896e9fb90f09119dccdb88b82af60f79f2
* integrate videoeditor preview player.Dharmaray Kundargi2011-01-161-0/+1
| | | | Change-Id: I83084f494605c8e6f4d198afa8c36f9e29579667
* Publish MediaMetadataRetriever.java as public APIJames Dong2011-01-123-55/+6
| | | | | | | | | | | | o Removed setMode() methods and related mode constants o Removed some of the unused the metadata keys o Updated the javadoc o part of a multi-project change. bug - 2433195 Change-Id: I5ed167f1fd6a53cb143b7dc385b149431d434438
* Merge "NuPlayer now properly sends MEDIA_SET_VIDEOSIZE notifications." into ↵Andreas Huber2011-01-102-0/+18
|\ | | | | | | honeycomb
| * NuPlayer now properly sends MEDIA_SET_VIDEOSIZE notifications.Andreas Huber2011-01-102-0/+18
| | | | | | | | | | Change-Id: I99b4223ad6ecfd8839a3c0e737fef3165565d76d related-to-bug: 3336496
* | Avoid deadlock in OMX::freeNode by making sure OMXCodecObserver does not ↵James Dong2011-01-101-2/+7
|/ | | | | | | | hold the last reference of OMXCodec object bug - 3336424 Change-Id: I4c79b66a900c527e3ae6a833f76d5da1b75c5a89
* Add support for the "compilation" tag in mp3, mp4 and ogg, and also addMarco Nelissen2011-01-072-0/+2
| | | | | | | | | support for two common ways of specifying album artist in ogg files. b/3311831 (cherry-picked from GB because of weird automerger failure) Change-Id: Ibf12a3d6bc8bbc2ac5ea815de6b33414b8f53f0f
* Colorconverter may not support some src/dst bitmap configurations.Andreas Huber2011-01-061-5/+6
| | | | | | | Let it return an appropriate error code instead of asserting. Change-Id: I7fe0dfa169e1cbdecb04c5fcbe8501e73362d05e related-to-bug: 3328212
* am a8ce7736: am 35e8dcb9: Merge "Suppress the recording sound in the ↵James Dong2011-01-051-2/+2
|\ | | | | | | | | | | | | recorded video" into gingerbread * commit 'a8ce773607c26dd4336f57856afce507fb98a279': Suppress the recording sound in the recorded video
| * am 35e8dcb9: Merge "Suppress the recording sound in the recorded video" into ↵James Dong2011-01-051-2/+2
| |\ | | | | | | | | | | | | | | | | | | gingerbread * commit '35e8dcb9df8c3d77ede120e3f1aaf842b2928639': Suppress the recording sound in the recorded video
| | * Suppress the recording sound in the recorded videoJames Dong2011-01-041-2/+2
| | | | | | | | | | | | | | | | | | bug - 3309194 Change-Id: Ib8fb248943bc22f963d67537bfdbc6056c5a159b
| * | resolved conflicts for merge of 31dc911a to gingerbread-plus-aospAndreas Huber2010-11-083-3/+15
| |\ \ | | |/ | | | | | | Change-Id: I2f51b2120b3c552566d91a7dc498a5e8b130205f
| | * Support post-decode video rotation.Andreas Huber2010-11-053-3/+15
| | | | | | | | | | | | Change-Id: Ia371316e73a57e44610de86adce3eaa560afbf84
| * | am 1653e261: Merge "Rotation support" into gingerbreadJames Dong2010-11-062-0/+2
| |\ \ | | |/ | | | | | | | | | * commit '1653e261e84922facfe27d3d8acc455ed2b6b6da': Rotation support
| | * Rotation supportJames Dong2010-11-052-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - We only support 0, 90, 180, and 270 degree clockwise rotation - Some players are known to ignore composition matrix in the MP4 file, although this is part of the MP4 file standard. Both QT and YT are supporting the rotation Change-Id: I1b7f66a801e9d9c49d889c9b06dd6173fa7e76c4
| * | am f3847e87: Merge "DO NOT MERGE" into gingerbreadJames Dong2010-11-031-0/+1
| |\ \ | | |/ | | | | | | | | | * commit 'f3847e875eb1c58094a2d159a2a6f3f0b381d77a': DO NOT MERGE
| | * DO NOT MERGEJames Dong2010-11-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Fix premature release of recording frames when physical address or metadata is stored in input video buffers - bug 3158459 Change-Id: If297189d2a87fc3abfda68c29ac75b490b30a902
* | | Merge "Seek/Duration support for completed http live streams in NuPlayer."Andreas Huber2011-01-051-1/+0
|\ \ \
| * | | Seek/Duration support for completed http live streams in NuPlayer.Andreas Huber2011-01-051-1/+0
| | | | | | | | | | | | | | | | | | | | Change-Id: I55bbe75d87140c07b1927d14ad24130fce803463 related-to-bug: 3321475
* | | | Merge "Use video output if necessary for timelapse video recording"James Dong2011-01-051-3/+3
|\ \ \ \ | |/ / / |/| | |
| * | | Use video output if necessary for timelapse video recordingJames Dong2011-01-041-3/+3
| | | | | | | | | | | | | | | | Change-Id: I88d0cc824f0fbf8b2f392fbc23c69b5bfefda1b8
* | | | Properly shutdown the decoders on a reset() in NuPlayer's implementation.Andreas Huber2011-01-041-0/+1
|/ / / | | | | | | | | | | | | related-to-bug: 3321470 Change-Id: Ida6d2171c5a3a407188d4633602b764f8fe7086a
* | | MediaScanner: Add support for scanning empty directoriesMike Lockwood2010-12-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the media scanner does not create database entries for directories unless they contain a file that is scanned. Fixing this so we provide a consistent view of the world to MTP. Change-Id: Ia776acfeae23192183e7192d63cdc34d830ea889 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Properly announce decoder output format changes, make sure AMessage::dup does.Andreas Huber2010-12-162-5/+9
| | | | | | | | | | | | Change-Id: Ia77f6b6d5e5c5055583740dfe876b8a3c22be9b6
* | | Initial support for a true streaming player for mpeg2 transport streams.Andreas Huber2010-12-155-6/+212
| | | | | | | | | | | | Change-Id: I153eec439d260a5524b21270e16d36940ec3161a
* | | Revert "Allows the authoring engine to skip frame."James Dong2010-12-112-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Skipping frames could lead to a lot of issues such as I frames is lost etc. It is not being used anyway. This reverts commit 53d4e0d58e2d5c18f6e026c705af833b9bdd7aba. Conflicts: media/libstagefright/AudioSource.cpp media/libstagefright/CameraSource.cpp Change-Id: I3abba1647de48db25bdc369066eb2a7ae4dedec2
* | | Better buffer status management and verification in OMXCodec.Andreas Huber2010-12-081-4/+10
| | | | | | | | | | | | Change-Id: I90410f2ac0d8ff86076a239dc6e281b1bc4d8643
* | | Merge "API Support for both synchronous and queued commands, optionally ↵Andreas Huber2010-12-072-3/+9
|\ \ \ | | | | | | | | | | | | associated metadata."
| * | | API Support for both synchronous and queued commands, optionally associated ↵Andreas Huber2010-12-062-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | metadata. Change-Id: Idb90d64cb638942210c5822b3cba2f05b087d601
* | | | Remove check if the target video resolution is not supported by CameraSourceJames Dong2010-12-051-0/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | and clean up Camera is CameraSource could not created. bug - 3254411 Change-Id: I43497c450e7007de5ce027e2912b1421119e8887