Commit Graph

12 Commits

Author SHA1 Message Date
Simon Giesecke
88ead5d627 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/media. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D65178

--HG--
extra : moz-landing-system : lando
2020-03-04 15:39:20 +00:00
Martin McNickle
f6f5fae1d0 Bug 1349658 - Add support for IEEE Float encoded wav files. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D59520

--HG--
extra : moz-landing-system : lando
2020-01-14 15:41:10 +00:00
Chris Pearce
42fd2adbaa Bug 1558364 - Add MediaSpan and use it for TrackBuffersManager::mInputBuffer. r=jya
As seen in this profile of a Twitch replay: https://perfht.ml/2K9Ydb3 we can
often end up spending time in TrackBuffersManager::CodedFrameProcessing()
shaving off bytes from the front off TrackBuffersManager::mInputBuffer. This
requires all the remaining bytes to be memmove'd down to the start of this
array. Sometimes we have close to 1MB in that buffer, and when we're just
trying to consume a few hundred bytes, that becomes high overhead.

So intead of using this "slice off, shuffle down" approach change
TrackBuffersManager::mInputBuffer to be a new type MediaSpan, which maintains a
RefPtr to a MediaByteBuffer and a span defining the subregion of the buffer we
care about. This means the RemoveElementsAt(0,N) operation becomes basically
free, and we can eliminate a few other copies we were doing as well.

Differential Revision: https://phabricator.services.mozilla.com/D34661

--HG--
extra : moz-landing-system : lando
2019-06-14 02:10:09 +00:00
Brindusan Cristian
a7f24acb4b Backed out 2 changesets (bug 1558364) for build bustages at MediaSpan.h. CLOSED TREE
Backed out changeset 098ce3586133 (bug 1558364)
Backed out changeset 2e64d8db2b4b (bug 1558364)
2019-06-14 03:48:51 +03:00
Chris Pearce
d5f83d4740 Bug 1558364 - Add MediaSpan and use it for TrackBuffersManager::mInputBuffer. r=jya
As seen in this profile of a Twitch replay: https://perfht.ml/2K9Ydb3 we can
often end up spending time in TrackBuffersManager::CodedFrameProcessing()
shaving off bytes from the front off TrackBuffersManager::mInputBuffer. This
requires all the remaining bytes to be memmove'd down to the start of this
array. Sometimes we have close to 1MB in that buffer, and when we're just
trying to consume a few hundred bytes, that becomes high overhead.

So intead of using this "slice off, shuffle down" approach change
TrackBuffersManager::mInputBuffer to be a new type MediaSpan, which maintains a
RefPtr to a MediaByteBuffer and a span defining the subregion of the buffer we
care about. This means the RemoveElementsAt(0,N) operation becomes basically
free, and we can eliminate a few other copies we were doing as well.

Differential Revision: https://phabricator.services.mozilla.com/D34661

--HG--
extra : moz-landing-system : lando
2019-06-14 00:31:02 +00:00
Chun-Min Chang
a03dc03a88 Bug 1521214 - r=kinetik
--HG--
extra : rebase_source : e9a7ece9902f1be7a43567078e3771fa359e4d61
2019-01-22 11:21:23 -08:00
Sylvestre Ledru
804b8b8883 Bug 1204606 - Reformat of dom/media r=jya
# skip-blame

Differential Revision: https://phabricator.services.mozilla.com/D12251

--HG--
extra : moz-landing-system : lando
2018-11-19 13:25:37 +00:00
Andi-Bogdan Postelnicu
60732a90a5 Bug 1453795 - DOM/Media - Initialize member fields in classes/ structures. r=jyavenard
--HG--
extra : rebase_source : 0c785260497fadf98cf3cff8b9fcae8ea699c2c1
2018-06-15 10:25:02 +03:00
Sebastian Hengst
0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Alfredo.Yang
d6a0eb9d74 Bug 1417795 - remove mp4_demuxer namespace part3. r=kinetik
MozReview-Commit-ID: 9fM2VjY4Ckk

--HG--
extra : rebase_source : 24d971d44e1d9bd8b1589b4b542d792f75df376d
2017-11-17 08:53:25 +08:00
Alfredo.Yang
23ba3bcec8 Bug 1417011 - move BufferReader, BitReader and ByteWriter to dom/media. r=kinetik
MozReview-Commit-ID: KqmSM3RlD1V

--HG--
rename : media/libstagefright/binding/BitReader.cpp => dom/media/BitReader.cpp
rename : media/libstagefright/binding/include/mp4_demuxer/BitReader.h => dom/media/BitReader.h
rename : media/libstagefright/binding/include/mp4_demuxer/BufferReader.h => dom/media/BufferReader.h
rename : media/libstagefright/binding/include/mp4_demuxer/ByteWriter.h => dom/media/ByteWriter.h
extra : rebase_source : 6ed0bcba4c2336bb7e532b3a5c3abce73ccdc5f5
2017-11-15 11:15:20 +08:00