summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/include
diff options
context:
space:
mode:
authorLeena Winterrowd <lenhardw@codeaurora.org>2014-11-04 21:27:34 -0800
committerLajos Molnar <lajos@google.com>2015-01-28 21:52:09 -0800
commit9aff25fb41f516ac26f9d1983a25402909f1e77a (patch)
treeb4148a4cf5c8e97959847a839a2f559272c506c1 /media/libstagefright/include
parent79971c747e62cad50359286f18dee0c4de5829da (diff)
downloadframeworks_av-9aff25fb41f516ac26f9d1983a25402909f1e77a.zip
frameworks_av-9aff25fb41f516ac26f9d1983a25402909f1e77a.tar.gz
frameworks_av-9aff25fb41f516ac26f9d1983a25402909f1e77a.tar.bz2
stagefright: httplive: Reduce memcpy calls for chunked content
Streams using http chunking will not report the segment's total content-length. In this case, a 64k buffer is allocated and is increased by 32k each time the buffer is filled again. For high bitrate content, this can lead to a large number of copies that affect the HLS framework delay. Increase fetchFile buffer size exponentially by 50% or at least 32k instead of by 32k each time to reduce the number of memcpy calls. Example for a chunked 6 MB 1080p segment (ie ~3s): Adding 32k: 190 copies with 572.97 MB copied Increasing by 50%: 12 copies with 16.09 MB copied Bug: 18821145 Change-Id: Iedf0e4437e96026a58d50bce2660f85ac90d0ada
Diffstat (limited to 'media/libstagefright/include')
0 files changed, 0 insertions, 0 deletions