summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include
Commit message (Collapse)AuthorAgeFilesLines
* Disable 10secs forward/backward seeking for rtsp as seek is a very expensive ↵Andreas Huber2010-10-081-0/+8
| | | | | | | operation there. Decouple the 10sec forward/backward button functionality from seekbar functionality. Change-Id: I016e79b688774f8ee91ac53216197b5fb9cb41b2 related-to-bug: 3073955
* Work to support switching transport streams mid-stream and signalling ↵Andreas Huber2010-10-073-2/+18
| | | | | | | discontinuities to the decoder. Change-Id: I7150e5e7342e1117c524856b204aadcb763e06ed related-to-bug: 2368598
* Make sure to call AudioTrack::stop() instead of AudioTrack::pause() after ↵Andreas Huber2010-10-051-1/+1
| | | | | | submitting all samples to AudioTrack to make sure those remaining samples are actually played out. Change-Id: Id574a0203efcb5e565f1b0fe77869fc33b9a9d56
* Squashed commit of the following:Andreas Huber2010-10-011-0/+4
| | | | | | | | | | | | | | | | | | | | | commit 46744c7697f29aec71aed8de3c95ce035c284d97 Author: Andreas Huber <andih@google.com> Date: Thu Sep 30 16:44:57 2010 -0700 better separation of access units Change-Id: I5a9e2138aed341f0bcf22cfe368a15ca5ea5a73c commit d34952ac0feb1ae722ff65824d7353335502219b Author: Andreas Huber <andih@google.com> Date: Thu Sep 30 15:35:01 2010 -0700 Support for ES packets that do not start on PES packet boundaries. Change-Id: I2cf012833948eddfb20b16a1901206cf22ce71e4 related-to-bug: 2368598 Change-Id: Ib9329bd6bb7149b5a6e2483788a96b1b158952fc
* Instead of constantly polling the AudioPlayer to see if it reached EOS or ↵Andreas Huber2010-09-281-0/+3
| | | | | | | finished seeking, initiate the notification from the AudioPlayer when the event happens. Change-Id: I43875b6adaf96d4e982ef3dfc3d6c8f7034ac51d related-to-bug: 3036592
* Vorbis files may have more samples encoded that should be used, i.e. we have ↵Andreas Huber2010-09-281-0/+1
| | | | | | | to trim samples at the end of the stream. This is crucial for proper looping of some audio files. related-to-bug: 3036592 Change-Id: Ib142b171c829ed74156c0281d9d4543fcc96c802
* Make sure we drain the avc software decoder's output queue once we run out ↵Andreas Huber2010-09-221-0/+2
| | | | | | of input data. Change-Id: I3d92ebae4951b618a6dfcf42936cc4c63d4de539
* Another attempt for fixing AAC+/eAAC+ related issueJames Dong2010-09-201-0/+2
| | | | | | | | | The decoder has to decode the very first two frames (decoder specific data + first data frame) in order to be really sure whether a stream is AAC or AAC+/eAAC+. bug - 2966336 Change-Id: Ib12a07285933df0d6c346370a12f70e99e811881
* A ThreadedSource wraps around an existing MediaSource and reads output ↵Andreas Huber2010-09-161-0/+73
| | | | | | buffers on a separate thread. It's now used for the vpx decoder to decode frames ahead of time to improve playback performance. Change-Id: I57a798b00adeb2c8056e85aab29a2b57aef00b63
* Instead of asserting, publish no tracks if an MP3Extractor is used on ↵Andreas Huber2010-09-091-3/+2
| | | | | | | non-mp3 content. Change-Id: I26db4524c5306bf2346438d2bd359c5cfb95cead related-to-bug: 2900419
* Ogg files can be tagged to be automatically looping, this setting always ↵Andreas Huber2010-09-031-0/+1
| | | | | | | overrides the MediaPlayer's setLooping setting. Change-Id: Ifb564c6cdf6137eac14869f9ca7d471f05a5556a related-to-bug: 2974691
* Properly buffer a certain amount of data on streaming sources before ↵Andreas Huber2010-09-031-0/+3
| | | | | | | finishing prepare(). Change-Id: I39bf3c6dafcbe003b51dea4795742dcd8548f207 related-to-bug: 2875110
* Better support for buffered streaming of rtsp content, if buffer drops below ↵Andreas Huber2010-09-011-0/+1
| | | | | | | a certain threshold we will temporarily pause playback until we have sufficient data. Change-Id: Ice8564e902e48c89c9c00f6651c5504b3c41fcad related-to-bug: 2556656
* Better support for rtsp (normal play-)time display. Better seek support, ↵Andreas Huber2010-08-272-1/+2
| | | | | | | timeout if no packets arrive for too long. Change-Id: Id491541a6ae501604cda815f8e961a3bfe26db7d related-to-bug: 2556656
* Fix support for per-frame unsynchronization in ID3V2.4 tags.Andreas Huber2010-08-251-0/+1
| | | | | Change-Id: I6874b596f88817347756a375d9fb1c9bff418eca related-to-bug: 2949149
* Allow sniffers to return a packet of opaque data that the corresponding ↵Andreas Huber2010-08-256-7/+19
| | | | | | | extractor can take advantage of to not duplicate work already done sniffing. The mp3 extractor takes advantage of this now. Change-Id: Icb77ae3ee95a69c7da25b4d3b8696c0a2d33028a related-to-bug: 2948754
* A first shot at proper support for seeking of rtsp streams.Andreas Huber2010-08-242-0/+3
| | | | | Change-Id: I9604f2d09feedc0074c0e715be58e719d4483760 related-to-bug: 2556656
* Better handling of rtsp connection and disconnection.Andreas Huber2010-08-231-0/+21
| | | | Change-Id: Ib126af6c14c5a212a51a5ee3c4a0a7d1860ad167
* In the absence of width/height information in the sdp, extract the ↵Andreas Huber2010-08-191-0/+30
| | | | | | dimensions from the avc codec specific data. Change-Id: I98c4194593c7e6e24f6fc339c862245111800293
* Don't send late frames to software encoders for encodingJames Dong2010-08-122-0/+2
| | | | | | o Document on what frames will be rejected and what frames will be accepted Change-Id: I5a5d489ad3d2b50dbb40a0f6e01529312ce81c54
* Support for extracting G.711 a-law and mu-law audio from WAV files and a ↵Andreas Huber2010-08-092-0/+58
| | | | | | | corresponding software decoder. Change-Id: I92685d09456c220b8c09842defb721bd55b0b9f6 related-to-bug: 2900021
* Support for communicating if a buffer read from the _extractor_ is a sync ↵Andreas Huber2010-08-061-1/+4
| | | | | | | sample or not. Change-Id: Ie71506224d937cfff1fa1273bfac31c47db8845f related-to-bug: 2900534
* Merge "Don't return a decoder error if the encoded stream does not start ↵Andreas Huber2010-08-041-0/+3
|\ | | | | | | with SPS/PPS." into gingerbread
| * Don't return a decoder error if the encoded stream does not start with SPS/PPS.Andreas Huber2010-08-041-0/+3
| | | | | | | | Change-Id: I960ada0c53f8ffe413ecd07c2c754a996841f592
* | Support for Gtalk video, includes AMR/H.263 assembler and packetization ↵Andreas Huber2010-08-041-0/+4
|/ | | | | | support, extensions to MediaRecorder to stream via RTP over a pair of UDP sockets as well as various fixes to the RTP implementation. Change-Id: I95b8dd487061add9bade15749e563b01cd99d9a6
* Support finer seek control on MediaSources.Andreas Huber2010-07-214-5/+14
| | | | | | related-to-bug: 2858448 Change-Id: Ifb4b13b990fd5889113e47e2c62249ac43391fa1
* Initial check-in for software m4v_h263 encoderJames Dong2010-07-151-0/+80
| | | | Change-Id: I4b49fa5c3a5e6e21cfd2419441d98dd784046367
* Initial checkin for software AVC encoderJames Dong2010-07-131-0/+90
| | | | | | | | | | - 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
* Enable the support for decoding audio with AAC+ and eAAC+ featuresJames Dong2010-07-081-0/+4
| | | | | | bug - 282684 Change-Id: I73c8377af3cc4edd3ee7cea86dc3b1c369fbd78b
* Only send the playback complete notification if a) an error occurred on any ↵Andreas Huber2010-07-071-1/+4
| | | | | | track or b) all tracks have finished playing. The previous behaviour was to send the notification as soon as the first track finished playing. Change-Id: Icac8104d14f18b719aa0b8f1ab3215f24003b152
* Finetune some of the prefetcher parameters to a) buffer as much as froyo did ↵Andreas Huber2010-06-251-2/+2
| | | | | | b) ensure that keepalives actually trigger a network read instead of just draining internal buffers Change-Id: Iaedfb5645e3052a63789244c90900573f8449bac
* Fixed the software AAC encoderJames Dong2010-06-231-0/+10
| | | | | | | 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
* Fix a number of timestamp mismatches in the mp3 extractor and decoder that ↵Andreas Huber2010-06-231-1/+6
| | | | | | | would lead to invalid reporting of the current playback time for mono and/or non-44100 kHz mp3s. Change-Id: I11abc05b62a958ffbc99ca997cd184a2f2199352 related-to-bug: 2667479
* Make the prefetcher read packets from the network after a keep-alive timeout ↵Andreas Huber2010-06-221-3/+8
| | | | | | expires regardless of whether its currently actively fetching data or not. Change-Id: I7d022ac494e1cecdd7f656806b7ed45979c02840
* This patch enables each omx instance to have a separate message dispatcher, andJames Dong2010-06-141-6/+5
| | | | | | | | | | | | | | | | | | thus eliminates the sharing of the message dispatches between omx instances. If the omx audio and video encoders share the same dispatcher, when the audio read blocks in the AudioSource, the message dispatcher thread gets blocked. As a result, the message for the omx video encoder can not be dispatched, hence gets blocked too. If the blocking time is long enough, the video frame rate decreases significantly. This is the case when we read 2048 bytes by default each time. Reading smaller blocks of audio data helps mitigate the above-mentioned problem, but it is not an ideal solution for two reasons: a) it is not efficient, and thus can cause a lot of overhead passing buffers between the frame work and the omx encoders; b) also, the audio record thread can overflow as a result, which lead to the loss of recorded audio frames. This patch affects both authoring engine and the playback engine. Change-Id: I26dfde7ac46c8752cf1793ce1bfcc7be7724580e
* Restore feature parity with the old HTTPDataSource as far as support for ↵Andreas Huber2010-06-111-3/+17
| | | | | | extra headers (cookies?) and socket-timeout are concerned. Change-Id: I506dc501faec60e974bf4968d8ba661df7a49aa8
* Switch stagefright's approach to prefetching to the new model. The java ↵Andreas Huber2010-06-102-74/+5
| | | | | | MediaPlayer is now notified about rebuffering start/end via info messages. Change-Id: If8185ba329ce8b6663b1ad39a4efb0ad3be81df2
* Merge "Switch LiveSource to use the new http data source instead of the old ↵Andreas Huber2010-06-101-2/+2
|\ | | | | | | one." into kraken
| * Switch LiveSource to use the new http data source instead of the old one.Andreas Huber2010-06-101-2/+2
| | | | | | | | Change-Id: I9623c480628c495dbfbe02bdc6372724a107e2e8
* | Merge "Initial check-in of new caching/prefetching data source ↵Andreas Huber2010-06-101-0/+93
|\ \ | | | | | | | | | implementation." into kraken
| * | Initial check-in of new caching/prefetching data source implementation.Andreas Huber2010-06-101-0/+93
| |/ | | | | | | Change-Id: I97a6e3f03c69c9b1219f1f06bd109c0102f2c504
* | Initial check in of a new http data source implementation.Andreas Huber2010-06-101-0/+59
|/ | | | Change-Id: I17c358288ffe9ef690d702c58723c766d0a0cf21
* Initial checkin of preliminary rtsp support for stagefright.Andreas Huber2010-06-072-0/+59
| | | | Change-Id: I0722aa888098c0c1361c97a4c1b123d910afc207
* Initial checkin of preliminary support for "http live" streaming in stagefright.Andreas Huber2010-06-072-0/+140
| | | | Change-Id: I20399f63d63af86a3ba22641c0e43385a108fb3f
* Initial checkin of mpeg2 transport stream parser for stagefright.Andreas Huber2010-06-071-0/+54
| | | | Change-Id: I328ce77404daf7127933b48c9d58ed504fb8fc6f
* A debugging DataSource artifically limiting the available bandwidth.Andreas Huber2010-06-011-0/+52
| | | | Change-Id: I4ca75337a52599d211ea066fd94e649748df052d
* Squashed commit of the following:Andreas Huber2010-05-241-0/+60
| | | | | | | | | | | | | | | | | | | | | commit a2194ecc341fa0c530d0007d8561286c8b8f2d15 Author: Andreas Huber <andih@google.com> Date: Fri May 21 12:50:09 2010 -0700 Instead of including the libvpx libraries prebuilt in our tree, build them from sources. Change-Id: I5ec57decf1200cf9137fe13ff77d06f47950c3d7 commit 711098ca3f16800a22ccdb26a07e57e471cca438 Author: Andreas Huber <andih@google.com> Date: Thu May 20 15:00:27 2010 -0700 Support for VPX/VP8 decoding in stagefright Change-Id: I16d93faf3f56a5f8ec39c14367704469f914db9e related-to-bug: 2483739 Change-Id: Ibc124f6af540c2715cb2325151eecdd6edf085ec
* Initial software encoder checkinsJames Dong2010-05-193-1/+146
| | | | Change-Id: I27f387db23594e46384c4eb3a0093ce220bb6b60
* Support for customizable socket-read timeouts through the HTTP response.Andreas Huber2010-05-111-0/+3
| | | | | | | | | Specify a response header of "X-SocketTimeout: 15" to override the default timeout of 5 secs with a timeout of 15 seconds. Specify a negative value to disable the timeout altogether. Change-Id: I545adf3d8b3f7efe5f8d081a641c6404440a77db related-to-bug: 2675721
* A new OggExtractor/VorbisDecoder combo to support approximate seeking.Andreas Huber2010-05-072-17/+86
| | | | | Change-Id: Id5d0c1c8b1adc62896bb5ed951f7b5cfda811e95 related-to-bug: 2654400