summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice
Commit message (Collapse)AuthorAgeFilesLines
* am b068b47c: am d6a85a21: Merge "Support user-supplied timescales for ↵James Dong2010-07-152-14/+80
|\ | | | | | | | | | | | | | | | | authoring" into gingerbread Merge commit 'b068b47c6d0214256116a0c661740bddf7acc18c' * commit 'b068b47c6d0214256116a0c661740bddf7acc18c': Support user-supplied timescales for authoring
| * Support user-supplied timescales for authoringJames Dong2010-07-142-14/+80
| | | | | | | | | | | | - also, change all the real time unit to microseconds in MPEG4Writer Change-Id: I260f512f2eb670ade7b8858a56335a5d639de756
* | am f6bdc764: am 9d8bea11: Merge "Initial checkin for software AVC encoder" ↵James Dong2010-07-131-1/+3
|\ \ | |/ | | | | | | | | | | | | | | into gingerbread Merge commit 'f6bdc764b7a21f8037504e1dc4f81227ea2bedea' * commit 'f6bdc764b7a21f8037504e1dc4f81227ea2bedea': Initial checkin for software AVC encoder
| * Initial checkin for software AVC encoderJames Dong2010-07-131-1/+3
| | | | | | | | | | | | | | | | | | | | - Since the software encoder assumes the input is YUV420 planar, color conversion needs to be added when the input color format does not meet the requirement. With this patch, I only added a single color conversion from YUV420 semi planar to YUV420 planar. We can add more as we go. Change-Id: If8640c9e5a4f73d385ae9bb2022e57f7f62b91b9
* | am 4f440632: am 929642ee: Add runtime dumpsys support for media recorder clientJames Dong2010-07-095-14/+89
|\ \ | |/ | | | | | | | | | | Merge commit '4f4406322dafd6e128b437edbc541327f0b38d04' * commit '4f4406322dafd6e128b437edbc541327f0b38d04': Add runtime dumpsys support for media recorder client
| * Add runtime dumpsys support for media recorder clientJames Dong2010-07-085-14/+89
| | | | | | | | Change-Id: I4c8a81720f3be2db54678a7e84fe12849255046b
* | am b91881fd: am dacabf97: Merge "Added Visualizer effect." into gingerbreadEric Laurent2010-07-072-125/+0
|\ \ | |/ | | | | | | | | | | Merge commit 'b91881fdd1608cc922f105ec552b5505da1fecb9' * commit 'b91881fdd1608cc922f105ec552b5505da1fecb9': Added Visualizer effect.
| * Merge "Added Visualizer effect." into gingerbreadEric Laurent2010-07-072-125/+0
| |\
| | * Added Visualizer effect.Eric Laurent2010-07-072-125/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | am b3598832: am c4243342: Merge "Allow application to set two more encoding ↵James Dong2010-07-072-0/+42
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | paramters: video profile and level" into gingerbread Merge commit 'b35988329ac1a574898db9226039e37e352c57a8' * commit 'b35988329ac1a574898db9226039e37e352c57a8': Allow application to set two more encoding paramters: video profile and level
| * | Allow application to set two more encoding paramters: video profile and levelJames Dong2010-07-072-0/+42
| | | | | | | | | | | | Change-Id: I673e681cefe184d5c556c612c54600a24a2143e5
* | | Adding timelapse capture from videocamera.Nipun Kwatra2010-07-012-1/+7
|/ / | | | | | | | | | | | | | | | | | | | | Current implementation looks at the timestamps of all incoming frames in CameraSource::dataCallbackTimestamp(). It drops all frames until enough time has elapsed to get the next time lapse frame. When enough time has passed to capture the next time lapse frame, the frame is no longer dropped and the timestamp of this frame is modified to be one frame time (1/framerate) ahead of the last encoded frame's time stamp. Change-Id: I82b9d5e96113dffa6901aac3b8a8ef999ffc1d0b
* | Refactor Stagefright::StartMPEG4Recording()James Dong2010-07-012-152/+186
| | | | | | | | | | | | - Also, better error handling Change-Id: Ic18d08dc6489adf92c6a588efa4baca66429b175
* | Added encoding parameters set up for H263 video encoderJames Dong2010-06-291-17/+95
|/ | | | | | | | Also: - Allowed start() call when encoder already starts and stop() call when encoder has not started yet - Handled default value for audio/video sources/encoders and file output format Change-Id: I03b2f7d3cf570baa0fd011a8c0ad200f2f2a5da1
* Separate MediaRecorderClient with MediaPlayerClientJames Dong2010-06-284-5/+5
| | | | | | | | | | - An alternative would be to define a common base class that both MediaRecorderClient and MediaPlayerClient can derive. But since the common code, onTransact() and notify() uses some Binder code, having a common base class may not gain us too much in terms of code reuse. Change-Id: Ibc06720278ad173fceacff3d267b7060856c6316
* Provide progress status report during authoringJames Dong2010-06-252-16/+75
| | | | | | | | | - Track either the number of A/V frames authored, or the time elapsed - Track the completion of the authoring - Add multiple camera support for authoring by accepting a camera id parameter - Set file type based on the OUTPUT_FORMAT requested Change-Id: I0f9d31b3b7a8fa43eb53f572410fb0ebd4fa0bb7
* Enable passing parameters to the MediaWriter at runtime (at start() call).James Dong2010-06-252-4/+24
| | | | | | | | | | - estimate the moov box size for mp4 file writer based on the file size/duration limit and target bit rate. - can switch to use 64 bit file offset at runtime rebased Change-Id: Ibbe1f57e91ab2605820d5d96e8048d11e5559c53
* Track maximum amplitude and fix getMaxAmplitude()James Dong2010-06-242-1/+9
| | | | | | - only start to track the max amplitude after the first call to getMaxAmplitude() Change-Id: I64d3d9ca0542202a8535a211425e8bccceca50fc
* Remove most stagefright property overrides, remove VorbisPlayer and ↵Andreas Huber2010-06-238-848/+8
| | | | | | | 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-222-19/+36
| | | | | | Audio sessions are used to associate audio effects to particular instances (or groups) of MediaPlayers or AudioTracks. Change-Id: Ib94eec43241cfcb416590f435ddce7ab39a07640
* Check and clip some video encoding parameters against media profiles before ↵James Dong2010-06-172-0/+82
| | | | | | passing them to video encoder Change-Id: I69e0e7411806a4ece6c0bf0e02c74eaaf48a17ac
* Remove hard-coded number of audio channels in AudioSourceJames Dong2010-06-141-1/+1
| | | | Change-Id: I5f362252c25e2251bbfa9818b711ee23b4975248
* Initial checkin for pause and resume controlJames Dong2010-06-112-0/+9
| | | | Change-Id: Ibdcf7bea5fb66baa81878704ba4091dfcfe382ee
* Remove the lock/unlock workaround from CameraServiceJames Dong2010-06-091-8/+17
| | | | | | bug - 2677772 Change-Id: I7c996daad8b3bfc89e9fa2d655dc18c9a5c68f2f
* Remove some hard-coded encoding parametersJames Dong2010-06-082-2/+33
| | | | Change-Id: I7a8ccd5d57891a6a585c8da2ee53acb094955913
* Initial checkin of preliminary rtsp support for stagefright.Andreas Huber2010-06-071-2/+7
| | | | Change-Id: I0722aa888098c0c1361c97a4c1b123d910afc207
* Properly handle start code in H264/AVC encoder outputJames Dong2010-05-201-0/+1
| | | | | | | | - Some H264/AVC encoder output start code in each output buffer, and others don't. This patch always strips the start code first so that the sample contains the correct size. - Also properly initialize the interleave duration. Change-Id: I692043ce7e38f0215e1097aad9e847a57907b6e4
* Workaround for preview frame rate setting and encoder profile and level ↵James Dong2010-05-201-2/+2
| | | | | | | | | settings on passion 1. QCOM camera HAL does not honor the preview frame rate set request. see bug - 2701282 2. QCOM video encoder has lots of 0-length output buffers if the default level setting is changed. see bug - 2660974 Change-Id: Id01d94bb77dc242c4712d56a91b0d69a96ba6c2f
* Detect and handle premature termination of a recording sessionJames Dong2010-05-141-6/+1
| | | | Change-Id: Ifb83b19f3e68580345b23efed5d5956fb81baeb8
* Handle recording file size and/or duration limitJames Dong2010-05-141-0/+15
| | | | Change-Id: Ib9ed1f3ebd8fef550cc130a7ef11f2905fa9aedc
* am 1d628c5d: merge from open-source masterThe Android Open Source Project2010-05-141-1/+1
|\ | | | | | | | | | | | | Merge commit '1d628c5d3dd7998b29c339292a2dc391015d0782' into kraken * commit '1d628c5d3dd7998b29c339292a2dc391015d0782': Accept media files by file extension in case insensitive manner.
| * merge from open-source masterThe Android Open Source Project2010-05-141-1/+1
| |\ | | | | | | | | | Change-Id: I934cf85c4673f9ca3a9549c2074907ad572310f4
| | * Accept media files by file extension in case insensitive manner.Atsushi Eno2010-03-191-1/+1
| | | | | | | | | | | | Change-Id: I8e246010c96802ae87960797607fc8f8f2ab6031
* | | Remove dummy surface in CameraSourceJames Dong2010-05-131-2/+2
| | | | | | | | | | | | | | | | | | bug - 2680919 Change-Id: Ia0308cf57fd67058b4dd0e042b3ce97f13df475f
* | | Added initial validation on video/audio encoding parameters before/at start()James Dong2010-05-112-22/+174
| | | | | | | | | | | | Change-Id: I1a40dd247202f70e3e5429d74533d349b88f1d54
* | | am 71bd9fc8: am 100ef9be: Merge "Disable vorbis seek when streaming from ↵Andreas Huber2010-05-062-1/+31
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | localhost." into froyo Merge commit '71bd9fc81e3154b9cad22ca7ff2d9c6ed6fdbe6c' into kraken * commit '71bd9fc81e3154b9cad22ca7ff2d9c6ed6fdbe6c': Disable vorbis seek when streaming from localhost.
| * | Disable vorbis seek when streaming from localhost.Andreas Huber2010-05-062-1/+31
| | | | | | | | | | | | | | | Change-Id: Icda523ae1c89e26482f1c1767fe3a8b9222bb30f related-to-bug: 2654400
* | | Support audio and video track interleaving in the recorded mp4 fileJames Dong2010-05-052-5/+19
| | | | | | | | | | | | Change-Id: Ifa27eb23ee265f84fe06773b29b0eb2b0b075b60
* | | Merge "Support AAC recording" into krakenJames Dong2010-05-042-33/+214
|\ \ \
| * | | Support AAC recordingJames Dong2010-05-032-33/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Extend the audio recording to AAC format - Add support for setting some recording parameters - Add stss box to the meta data in the recorded file Change-Id: I41167bfd9d70ef9cd33906f8437b39c232b6d3b7
* | | | am 8ea45aad: am e083d0a2: Merge "Support for Ogg Vorbis decoding in ↵Andreas Huber2010-05-041-7/+35
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | | | | stagefright." into froyo Merge commit '8ea45aad100ee25067b2e83703454c71a968ba4f' into kraken * commit '8ea45aad100ee25067b2e83703454c71a968ba4f': Support for Ogg Vorbis decoding in stagefright.
| * | Support for Ogg Vorbis decoding in stagefright.Andreas Huber2010-05-041-7/+35
| | | | | | | | | | | | | | | | | | | | | Set the magic property media.stagefright.enable-vorbis to true to use the new implementation instead of the standalon vorbis player for file-based playback. HTTP streaming of vorbis content will always go through stagefright. Change-Id: Ie3843a99fadb22372f89540d0f8d65196e0c2af8 related-to-bug: 2654400
* | | Use timestamp from camera driver for CameraSourceJames Dong2010-04-283-3/+45
| | | | | | | | | | | | Change-Id: I09ddec69997c43b8f17fdd21304c76cb4c5ab8cf
* | | am 6852b198: am d3d445b1: Merge "Use PV_PLAYER to handle RTSP streaming" ↵James Dong2010-04-141-0/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | into froyo Merge commit '6852b198fbedd9378ed79ca6528a4d6f33b0b677' into kraken * commit '6852b198fbedd9378ed79ca6528a4d6f33b0b677': Use PV_PLAYER to handle RTSP streaming
| * | Use PV_PLAYER to handle RTSP streamingJames Dong2010-04-141-0/+5
| | | | | | | | | | | | | | | | | | bug - 2594865 Change-Id: Ice5b89b1d53bbc4da033892fe545bdf51ac7267f
* | | Remove legacy NO_OPENCORE code bypass from MediaPlayerService.Andreas Huber2010-04-091-4/+0
|/ / | | | | | | Change-Id: I72db73c91673e0d7f1090e3b033ae915337dc16e
* | Fix build. I screwed up a merge.Dave Sparks2010-03-021-1/+1
| |
* | Add locking to signal in AudioCache::notify(). Bug 2317844.Dave Sparks2010-03-021-1/+2
| |
* | Add some space and total memory amount to the memory dump from the media ↵James Dong2010-02-251-1/+3
| | | | | | | | server process.
* | Implement legacy behaviour for MediaPlayer's behaviour of starting from the ↵Andreas Huber2010-02-181-0/+2
| | | | | | | | | | | | start of the media on a start() call instead of resuming at the current position, if previously reached the end of the stream. Also properly report number of frames played to audio flinger. Finally, delay spawing the queue thread until actually used. related-to-bug: 2453220