summaryrefslogtreecommitdiffstats
path: root/media/libstagefright
Commit message (Collapse)AuthorAgeFilesLines
* Unwedge ACodec if allocating output buffers fails while reconfiguring.Andreas Huber2012-05-291-5/+8
| | | | | Change-Id: I871cf639167c01860e65c0408d3ce935f8f8f1ea related-to-bug: 6571060
* Merge "Property to enable AAC 5.1 pass-through." into jb-devDave Burke2012-05-253-3/+18
|\
| * Property to enable AAC 5.1 pass-through.Dave Burke2012-05-253-3/+18
| | | | | | | | | | Bug: 6275957 Change-Id: I8debdce872fc8287a4f6340f1790e02c075886e3
* | Fix an error caused by sample size value by orderJames Dong2012-05-241-2/+2
|/ | | | | | | | | The sample size was saved in the array in network order, but it was treated as host order when writeInt32() is called. Calling write(void *, int, int) resolves the issue. related-to-bug: 6555366 Change-Id: If7ef99911ad65108c61b533673ac4d4cd580a370
* Tell surface flinger that we want to protect output buffers from beingAndreas Huber2012-05-222-0/+180
| | | | | | | | sent to HDMI (without HDCP) and push a few black frames on IDLE->LOADED similar to OMXCodec's behaviour. Change-Id: Iea6055a115151ca881220a70a31af6ade2c58cb3 related-to-bug: 6537187
* Only mark the audio player as started if it did so successfully.Andreas Huber2012-05-221-2/+2
| | | | | Change-Id: I4683f5ca243f9f1b80990028d225d0f6c5973899 related-to-bug: 6500580
* Revert "Stop audio source if AudioPlayer could not be started"Andreas Huber2012-05-221-7/+6
| | | | This reverts commit 022048e95f3f1d65cb776cf21de2001423fcf7d9.
* Revert "Revert to PV for AAC codec for FactoryROM."Dave Burke2012-05-212-4/+4
| | | | | | This reverts commit d7d79a2bbf38d1d19ec7cc8d6a514fc999b5c444. Change-Id: I7076feab31ab64fccd364699280d821011edc099
* Revert to PV for AAC codec for FactoryROM.Dave Burke2012-05-212-4/+4
| | | | Change-Id: I72cf856685c0c4bae745646f870a0415d416afb5
* Merge "Fix a mediaserver crash caused by dereferencing a NULL pointer." into ↵James Dong2012-05-211-5/+5
|\ | | | | | | jb-dev
| * Fix a mediaserver crash caused by dereferencing a NULL pointer.James Dong2012-05-211-5/+5
| | | | | | | | | | | | | | | | | | The pointer (info in method drainInputBuffer) in can be null at the point of the dereference, but it will get updated subsequently. Thus, we should move the logging after the pointer gets updated. related-to-bug: 6530159 Change-Id: Ifa5f19a694953af6942454e5c28cd3fa024f11d2
* | Merge "Add more verbose ADTS error logging to SoftAAC." into jb-devAndreas Huber2012-05-212-20/+46
|\ \
| * | Add more verbose ADTS error logging to SoftAAC.Andreas Huber2012-05-212-20/+46
| | | | | | | | | | | | | | | | | | | | | and fix the corresponding code in SoftAAC2. Change-Id: I6c745fb6e8e093708fdfe2861963b0a35fa7b912 related-to-bug: 6519161
* | | If we encounter an error during buffer allocation change state backAndreas Huber2012-05-211-0/+2
|/ / | | | | | | | | | | | | | | to LOADED instead of remaining in the transitional state LOADED->IDLE that won't properly handle flush or shutdown requests. Change-Id: Ica1bf22eb884b220f18ed2a4f7a9c56eec228796 related-to-bug: 6516512
* | Instead of asserting on malformed ADTS headers or insufficient data,Andreas Huber2012-05-181-18/+43
|/ | | | | | | stop decoding and signal a runtime error. Change-Id: Ib66a17a2908273f65a92999951439cc6f0752164 related-to-bug: 6519161
* Don't reconfigure stream after outputing data.Dave Burke2012-05-181-17/+40
| | | | | | | Handle invalid configuration. Bug: 6519161 Change-Id: Ib2d38bee769e63e627c93d7f3839c3a55de694e9
* Robustness - use defaults if we see bogus sample rate / channels from decoder.Dave Burke2012-05-171-5/+6
| | | | | Bug: 6498711 Change-Id: I6950d316a292cfd0cb516ee6d95b6af071b08fdc
* Handle stream changes at any point in the stream.Dave Burke2012-05-172-34/+15
| | | | | | | Also, handle discontinuity properly (was using wrong flag before). Bug: 6498711 Change-Id: I18a6684f7dc96aa04b1e8113b54ec1053895ca98
* Merge "Clear the decoder input buffer after it signalled an error to be able ↵Dave Burke2012-05-171-1/+3
|\ | | | | | | to continue." into jb-dev
| * Clear the decoder input buffer after it signalled an error to be able to ↵Andreas Huber2012-05-171-1/+3
| | | | | | | | | | | | | | continue. Change-Id: I06d43723dea7688d63cfb05e7fc7754672788562 related-to-bug: 6419102
* | Fixes parsing of PSI sections in MPEG2 transport streamsAndreas Huber2012-05-172-13/+160
|/ | | | | | | | They can span multiple transport stream packets, something the parser previously did not support. Change-Id: I78da6ffd2d422cceedb87aad61cba2062419e635 related-to-bug: 6166596
* Merge "Buffer at least 2 secs worth of data at startup of after a seek ↵Andreas Huber2012-05-172-0/+38
|\ | | | | | | before" into jb-dev
| * Buffer at least 2 secs worth of data at startup of after a seek beforeAndreas Huber2012-05-172-0/+38
| | | | | | | | | | | | | | resuming starting RTSP playback. Change-Id: I060c6c7fd627ab7ebd5c095ddcfdb4cc0f637aad related-to-bug: 6364126
* | Merge "Prefix MPEG4-generic audio data with ADTS headers" into jb-devAndreas Huber2012-05-176-35/+128
|\ \
| * | Prefix MPEG4-generic audio data with ADTS headersAndreas Huber2012-05-176-35/+128
| |/ | | | | | | | | | | | | to work around limitations of the new AAC decoder. Change-Id: I4988c7c39fedb7d04eb1ae2ba2d618aa6cb14e77 related-to-bug: 6488547
* | Merge "Add informational logging to track 0 channel issue." into jb-devDave Burke2012-05-171-3/+3
|\ \
| * | Add informational logging to track 0 channel issue.Dave Burke2012-05-171-3/+3
| | | | | | | | | | | | | | | | | | Bug #: 6498711 Change-Id: I952777923569511a171fe8b79eab579625eda073
* | | Stop audio source if AudioPlayer could not be startedJames Dong2012-05-171-6/+7
|/ / | | | | | | | | | | related-to-bug: 6500580 Change-Id: If47e442db2f1ea400e9b598502bb48513f28cd6d
* | Merge "Stop extrapolating audio time from the anchor if we're paused or ↵Andreas Huber2012-05-171-2/+19
|\ \ | |/ |/| | | reached eos." into jb-dev
| * Stop extrapolating audio time from the anchor if we're paused or reached eos.Andreas Huber2012-05-151-2/+19
| | | | | | | | | | Change-Id: I55903ba625d9c075a9a6e7bcd5ff95d450b915b2 related-to-bug: 6479613
* | Merge "Add logging for invalid channel count or sample rate." into jb-devDave Burke2012-05-151-0/+3
|\ \
| * | Add logging for invalid channel count or sample rate.Dave Burke2012-05-151-0/+3
| | | | | | | | | | | | Change-Id: I2e2145e4b258923cf6c2907106345b7172c12280
* | | Merge "Speed up stsz box write in MPEG4Writer" into jb-devJames Dong2012-05-151-10/+38
|\ \ \
| * | | Speed up stsz box write in MPEG4WriterJames Dong2012-05-151-10/+38
| | |/ | |/| | | | | | | | | | | | | | | | | | | With this patch, the write time for 30+ minutes recording session is reduced from 10+ seconds down to around 2-3 seconds. related-to-bug: 6435176 Change-Id: I83b705cea42d8de798e7032c770c5c7b033e267e
* | | Log which OMX component is not returning all buffers to us on executing->idle.Andreas Huber2012-05-151-6/+16
|/ / | | | | | | | | Change-Id: I8cd102cc5b1f3c9c36e3c5832ae4bee75c471efd related-to-bug: 6498711
* | Merge "Ignore sideband parsing errors and spit out a frame of silence." into ↵Andreas Huber2012-05-151-6/+6
|\ \ | | | | | | | | | jb-dev
| * | Ignore sideband parsing errors and spit out a frame of silence.Andreas Huber2012-05-151-6/+6
| |/ | | | | | | | | Change-Id: I274d8e9018e02eb42121a2440b42caefeca94fb0 related-to-bug: 6498193
* | Merge "Explicitly set the video scaling mode to "stretch"." into jb-devAndreas Huber2012-05-151-0/+4
|\ \
| * | Explicitly set the video scaling mode to "stretch".Andreas Huber2012-05-151-0/+4
| |/ | | | | | | | | Change-Id: I23b8848cfef51bc8ea72deb22783e21d093dbd98 related-to-bug: 6498150
* | Instead of asserting, turn an unsupported colorspace conversion into aAndreas Huber2012-05-151-10/+17
|/ | | | | | | runtime error. Change-Id: I0a1754ecaa2a6aac8b0b1bcc829aa873cf238b9b related-to-bug: 6499326
* Merge "Smoothen audio "real" time by compensating with system_time()" into ↵Andreas Huber2012-05-141-1/+14
|\ | | | | | | jb-dev
| * Smoothen audio "real" time by compensating with system_time()Andreas Huber2012-05-141-1/+14
| | | | | | | | | | | | | | for the delay since the last buffer submission to the audio sink. Change-Id: Ib1a8672f96ba8bbef07d23372f1076fbb1f0bdcc related-to-bug: 6479613
* | Merge "Switch audio tracks at runtime" into jb-devJames Dong2012-05-142-10/+100
|\ \ | |/ |/|
| * Switch audio tracks at runtimeJames Dong2012-05-142-10/+100
| | | | | | | | | | | | | | | | o The switching is not allowed if there is an audio seek operation ongoing. o related-to-bug: 6110705 Change-Id: Ib92a165f3984aa033d97800184d3d17319522db5
* | ACodec mustn't override the video scaling mod.Andreas Huber2012-05-141-7/+0
|/ | | | | Change-Id: Id9b569446d73dcfe44ab4a3488812203758c9c42 related-to-bug: 6490687
* Remove ASC workaround (now fixed in Franhofer library).Dave Burke2012-05-121-9/+0
| | | | Change-Id: Ia0ce8155def9f6dea85da7f88942ac1b11c16823
* Merge "stagefright: add tracing to AwesomePlayer." into jb-devJamie Gennis2012-05-111-1/+30
|\
| * stagefright: add tracing to AwesomePlayer.Jamie Gennis2012-05-111-1/+30
| | | | | | | | Change-Id: Id84419a1c54e41e158b24477f0676071e90f6922
* | Merge "Remove unused VideoSourceDownSampler class" into jb-devJames Dong2012-05-112-143/+0
|\ \
| * | Remove unused VideoSourceDownSampler classJames Dong2012-05-112-143/+0
| |/ | | | | | | | | Change-Id: I2faf5962ff4cc366c688ef5bb27f53596f08fe0a related-to-bug: 6484217