summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/AMRWriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
* warnings be gone.Andreas Huber2014-02-111-1/+1
| | | | Change-Id: Ie3bae3f037730e316d7fca12e7a3527973f752ef
* Make frameworks/av 64-bit compatibleKévin PETIT2014-02-111-2/+2
| | | | | | | | | | | | Contains the necessary changes to make frameworks/av build and work on a 64-bit machine. Signed-off-by: Craig Barber <craig.barber@arm.com> Signed-off-by: Kévin PETIT <kevin.petit@arm.com> Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Marcus Oakland <marcus.oakland@arm.com> Change-Id: I725feaae50ed8eee25ca2c947cf15aee1f395c43
* Handle malformed raw AAC/AMR writer betterJames Dong2012-08-091-3/+6
| | | | Change-Id: I196fe196c26b83be09fcd54174ceb4e135073c2b
* Add mode when open(O_CREAT) is used.Nick Kralevich2012-06-261-1/+1
| | | | | | | | | | When creating a new file using open(..., O_CREAT), it is an error to fail to specify a creation mode. If a mode is not specified, a random stack provided value is used as the "mode". This will become a compile error in a future Android change. Change-Id: I36a3d67d294a915c1f79632a1b0ba45edd1214b1
* Move away from MediaDebug and use ADebug insteadJames Dong2012-02-101-1/+1
| | | | Change-Id: I963a3b6f79a7292891973cbeeaf3378b38629f08
* Don't call virtual functions in destructors for the writer classesJames Dong2012-02-021-2/+2
| | | | | | | Have not found any concrete bugs related to these calls yet, but we should avoid calling virtual functions in destructors, regardless. Change-Id: I2d47b79d3fb2d29f418619bee83aa147d232a5d4
* Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGESteve Block2011-10-261-1/+1
| | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
* Remove unneeded #include <sys/resource.h>Glenn Kasten2011-06-151-1/+0
| | | | | | Suggested in code review for previous change. Change-Id: Ic3225b240367dc6c9bf56fb4498fb8a0f9f806ec
* Add read and write option in opening file for output in the writersJames Dong2011-03-211-1/+1
| | | | Change-Id: Ibfba0aacd3c8587c04a2e903b636de337cc30104
* Better organize media recorder error and information event and typesJames Dong2011-03-181-1/+1
| | | | Change-Id: I45f1f953596985494725525c1fabf57eccc19175
* Removed uncessary FILE structure pointer for I/OJames Dong2010-11-191-13/+18
| | | | | | o also move the fd owner from caller to callee in the Writers Change-Id: I510ccfdd0fcc58f1777fea4ed1349fd251852c65
* 64-bit file size/offset support for media frameworkJames Dong2010-11-181-6/+6
| | | | Change-Id: I3452bc2c0f1d990cc67285df2fce1f9f86ff8e10
* Name the writer threadsJames Dong2010-10-071-1/+3
| | | | Change-Id: I51461c3800ac5850e21ff398e80eb20b562264b3
* Make MediaWriter stop and pause return errors if necessaryJames Dong2010-08-191-10/+22
| | | | | | | | | | | o Make the API consistent with SF framework, which the MediaSource provides a return status for stop o Also, helps to convey errors that occurred right when a premature stop() is called, leading to a potentially mal-formed output file. Change-Id: I52a932345f38570fdf8ea04d67d73dd94ccd30ef
* Provide progress status report during authoringJames Dong2010-06-251-1/+1
| | | | | | | | | - 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-251-1/+1
| | | | | | | | | | - 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
* Initial checkin for pause and resume controlJames Dong2010-06-111-3/+43
| | | | Change-Id: Ibdcf7bea5fb66baa81878704ba4091dfcfe382ee
* Detect and handle premature termination of a recording sessionJames Dong2010-05-141-0/+13
| | | | Change-Id: Ifb83b19f3e68580345b23efed5d5956fb81baeb8
* Handle recording file size and/or duration limitJames Dong2010-05-141-0/+36
| | | | Change-Id: Ib9ed1f3ebd8fef550cc130a7ef11f2905fa9aedc
* Remove unnecessary lock from AMRWriter.Andreas Huber2010-04-091-21/+5
| | | | Change-Id: Ia02966d936dd8cbb31e92051578a3fa816885710
* Fixing AMR recording code.Andreas Huber2010-02-101-3/+6
|
* Support for audio recording into AMR NB/WB files as well as audio tracks in ↵Andreas Huber2010-01-261-0/+9
| | | | | | MPEG4 files. related-to-bug: 2295449
* Initial checkin of AudioSource and AMRWriter, a pair of classes supporting ↵Andreas Huber2010-01-251-0/+184
pure-audio recording in stagefright. related-to-bug: 2295449