summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs/aacenc/AACEncoder.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Stagefright: Fix unused variables, functions, valuesAndreas Gampe2014-11-251-2/+0
| | | | | | | For build-system CFLAGS clean-up, remove unused functions and variables. Change-Id: Ic3dee56b589ea9a693efa1d72ba394036efff168
* Move away from MediaDebug and use ADebug insteadJames Dong2012-02-101-7/+7
| | | | Change-Id: I963a3b6f79a7292891973cbeeaf3378b38629f08
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-7/+7
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGESteve Block2012-01-061-2/+2
| | | | | | | See https://android-git.corp.google.com/g/157065 Bug: 5449033 Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
* 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
* Initial check-in for AACWriterJames Dong2011-05-041-1/+1
| | | | | | Change-Id: Ia21ca39a404484b2dda25c6101780d2ff11c4623 related-to-bug: 4211046
* Fix a leak from AACEncoder.cppJames Dong2011-03-041-0/+3
| | | | | | bug - 3470617 Change-Id: I328e92bc1b2aca72e5856703dae00f957f40bc27
* Report errors to applications if AudioRecord->start() failsJames Dong2011-01-251-11/+15
| | | | | | bug - 3385198 Change-Id: I86ac8071eb28a538b333e102192193d1b9eda5eb
* Add initial stereo capture support for AAC encoderJames Dong2010-11-151-13/+29
| | | | Change-Id: I1b9335f036ff42d958d0b32f25359b21733f96d4
* HW audio encoder expects timestamp via kKeyTime from each input bufferJames Dong2010-09-081-1/+1
| | | | | | - This fixes media server crashes on droid Change-Id: I7191cadc5275107425ec3ee3d437b2c5295858dc
* Not all audio source has the drift time informationJames Dong2010-09-031-4/+5
| | | | Change-Id: I74e502376348ca4a6ffaa7492bed35c1355e7e62
* Calculate audio media drift time from AudioSourceJames Dong2010-09-011-2/+13
| | | | | | | | | | | | | | | | | | | The problem was that the time to receive an output buffer from an audio encoder is different because the encoder does not need to read from the source for all output buffers. This leads to large fluctuation in terms of wall clock duration between two neighboring audio sample outputs from the audio encoder. As a result, the media time for the video track after adjustment using the drifting changes wildly sometimes. This patch addresses this issue by only updating the media drift time when an audio source input buffer is read. the wall clock for the audio track is also calculated at the same time when the input audio buffer is read at AudioSource. bug - 2959800 Change-Id: I3174aa182f744784b540f0a7198524d4eee8bd7b
* Allows the authoring engine to skip frame.James Dong2010-07-221-0/+1
| | | | | | | | | | | This is 1st part of the work to allow audio and video resync if we found out that audio and video are out of sync during authoring - also fixed a problem in AACEncoder::read() where the buffer acquired from the buffer group does not release when error out at reading from source. Change-Id: I8a2740097fcfdf85e6178869afeb9f3687a99118
* Support finer seek control on MediaSources.Andreas Huber2010-07-211-1/+2
| | | | | | related-to-bug: 2858448 Change-Id: Ifb4b13b990fd5889113e47e2c62249ac43391fa1
* Added encoding parameters set up for H263 video encoderJames Dong2010-06-291-2/+8
| | | | | | | | 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
* Fixed the software AAC encoderJames Dong2010-06-231-28/+52
| | | | | | | Make sure that each input frame contains at least 1024 samples, as required by the AAC encoder, and fix the incorrect timestamp. Change-Id: I344cafe8c89be51d6e64552fab70539990ff6049
* Audio/video sync during recording (second part)James Dong2010-06-211-1/+1
| | | | Change-Id: Iba0b35f57fdeac7ee1da16899406bf4b957a2c8c
* Initial checkin for pause and resume controlJames Dong2010-06-111-4/+7
| | | | Change-Id: Ibdcf7bea5fb66baa81878704ba4091dfcfe382ee
* Initial software encoder checkinsJames Dong2010-05-191-0/+264
Change-Id: I27f387db23594e46384c4eb3a0093ce220bb6b60