Commit Graph

26 Commits

Author SHA1 Message Date
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
Dan Minor
9ec710cad0 Bug 1376873 - Fix fake h.264 encoder; r=pehrsons
Upstream webrtc.org has added more stringent checks for SPS and PPS identifiers.
This breaks out the SPS and PPS NALUs into separate binary blobs to ensure that
the identifiers are zero. It is also necessary to set pragma pack so that the
structure does not contain values which trick the parser into thinking a new
NALU has begun. The ENCODED_FRAME_MAGIC is changed for a similar reason. All of
the constants were determined by running mochitests with the actual h.264
encoder.

For similar reasons, this also changes things so that only IFrames are sent,
as the upstream code is now checking for previous IFrame identifiers and will
drop frames if they are not sent.

The SPS and PPS NALUs are now embedded into a single frame rather than being sent
as separate frames as was previously done. This is consistent with the real
H.264 plugin, and fixes a problem with intermittent failures due to occasionally
bad timestamps.

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

--HG--
extra : rebase_source : 34ce1e8e5d11a346b2ccb8e8121d5526c02c9911
2018-07-16 11:50:40 -04:00
Byron Campen [:bwc]
30281ed197 Bug 1444363: Don't dispatch Encode/Decode to main in the fake h264 impl, because the callsite is on main in the first place. r=bryce
MozReview-Commit-ID: Iznr1jNr75Z

--HG--
extra : rebase_source : 6c61c2194f3147f69b65ad163f639d9578a900d9
2018-04-16 10:52:29 -05:00
Randell Jesup
87905650ba bug 1399137: make the fake openh264 encoder support mode 0 h264 r=pehrsons
MozReview-Commit-ID: LpUQMKkQq16

--HG--
extra : rebase_source : 30c9322a8223adbf70982e4f7d76cf3353e544df
2017-09-13 12:04:20 +02:00
James Cheng
1a809037a4 Bug 1396493 - Part8 - Delete fakeopenh264.voucher. r=cpearce
MozReview-Commit-ID: 56gfZT1vdX0

--HG--
extra : rebase_source : 3ff00d96e2a8f51f028e7828732db8f312c34973
2017-09-27 02:31:30 +08:00
James Cheng
b394995f8f Bug 1396493 - Part3 - Rename only the file names from gmp-* to cdm-* a. r=cpearce
MozReview-Commit-ID: AbEYahxfp4b

--HG--
rename : dom/media/gmp-plugin/gmp-fake.cpp => dom/media/gmp-plugin/cdm-fake.cpp
rename : dom/media/gmp-plugin/gmp-test-decryptor.cpp => dom/media/gmp-plugin/cdm-test-decryptor.cpp
rename : dom/media/gmp-plugin/gmp-test-decryptor.h => dom/media/gmp-plugin/cdm-test-decryptor.h
rename : dom/media/gmp-plugin/gmp-test-output-protection.h => dom/media/gmp-plugin/cdm-test-output-protection.h
rename : dom/media/gmp-plugin/gmp-test-storage.cpp => dom/media/gmp-plugin/cdm-test-storage.cpp
rename : dom/media/gmp-plugin/gmp-test-storage.h => dom/media/gmp-plugin/cdm-test-storage.h
extra : rebase_source : bb5abd64591c62d53b7aecdac960dc3f3f48f619
2017-09-27 21:06:56 +08:00
Chris Manchester
fab07bc443 Bug 1386876 - Replace all uses of NO_VISIBILITY_FLAGS with a template and remove NO_VISIBILITY_FLAGS. r=glandium
MozReview-Commit-ID: 194U1WMCAM0

--HG--
extra : rebase_source : 365b68b0a1772d238ae9b84966e53dcd1197fd85
2017-05-01 18:12:35 -07:00
Chris Manchester
c0a229d4c3 Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
MozReview-Commit-ID: FMEtb5PY7iP

--HG--
extra : rebase_source : 3cdee7528846462c758e623d6bcd2e6e17dbabff
2017-09-11 11:33:26 -07:00
David Major
406287685a Bug 1391420: Set NO_PGO on a bunch of binaries that we don't ship. r=ted 2017-08-23 15:05:40 -04:00
Sebastian Hengst
142b3bf28b Backed out changeset 109e89a7d561 (bug 1391420) for busting Linux pgo builds. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 6a4421254e4de31071785b73abdd1186638e31f2
2017-08-23 18:12:46 +02:00
David Major
8cb2cb650a Bug 1391420: Set NO_PGO on a bunch of binaries that we don't ship. r=ted 2017-08-23 11:10:39 -04:00
Jan Keromnes
5257fdad8c Bug 1372977 - Use nullptr in /media and /dom/media (clang-tidy: modernize-use-nullptr). r=bwc 2017-06-28 15:38:00 -04:00
Randell Jesup
450c4d90a1 Bug 1341285: rollup of changes for webrtc after applying webrtc.org v57 update r=ng,jesup,pehrsons,drno,dminor,cpearce,jya,glandium,dmajor
Includes re-importing gyp files removed from upstream in v56, and then
updating them to match the BUILD.gn file changes.

--HG--
rename : media/webrtc/trunk/webrtc/call/audio_send_stream.cc => media/webrtc/trunk/webrtc/call/audio_send_stream_call.cc
2017-06-13 01:54:13 -04:00
Randell Jesup
712586b20b Bug 1369724: Fix setting size for fake H264 codec r=jya
From bug 1341285

MozReview-Commit-ID: E6g6phiQC5H
2017-06-02 09:59:36 -04:00
Sylvestre Ledru
0866d209a2 Bug 1338086 - Remove useless else blocks in order to reduce complexity in dom/media/gmp* r=cpearce
MozReview-Commit-ID: FaKW6Sb721i

--HG--
extra : rebase_source : f05a20bceeca69cb129067037e67f7bb57f5f450
2017-02-09 10:31:55 +01:00
Chris Pearce
fe31d4bd44 Bug 1332149 - Don't expose plugin-container or sandbox vouchers to GMPs. r=gerald
MozReview-Commit-ID: JZBoEptskf0

--HG--
extra : rebase_source : c2de46c71eced8fc9ad00f9fbb95f9dc9f5ee6ba
2017-01-19 14:57:30 +13:00
Chris Pearce
abf5ab3771 Bug 1331829 - Remove async shutdown GMP API. r=gerald
Now that we're not supporting Adobe EME anymore, we don't need to
provide a mechanism for GMPs to block browser shutdown.

MozReview-Commit-ID: KUC94IBQiod

--HG--
extra : rebase_source : ed521f28e272de11b2d0c4546b98baf6bd7c6e72
2017-01-18 15:01:56 +13:00
Andi-Bogdan Postelnicu
65ae72060c Bug 1317241 - Use C++11's override and remove virtual where applicable in dom/ r=baku
MozReview-Commit-ID: 8jUAehd1odv

--HG--
extra : rebase_source : 13375a14447ce344214fa30babf540de0a394c6a
2016-11-15 13:09:07 +02:00
Andi-Bogdan Postelnicu
aaf2063029 Bug 1317241 - Replace default bodies of special member functions with = default in dom/. r=baku
MozReview-Commit-ID: 12AHOhrpaNO

--HG--
extra : rebase_source : 7881277a13fe7389b95635ee9b94f1686f56d142
2016-11-14 11:40:37 +02:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Chris Peterson
8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Mike Shal
f33175df08 Bug 1254950 - Remove several media Makefile.ins; r=ted
MozReview-Commit-ID: 4dvngHQnH0b
2016-03-14 18:02:02 -04:00
Chris Peterson
71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Nicholas Nethercote
f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Chris Pearce
b65cba6328 Bug 1169129 - Test GMPVideoDecoderTrialCreator detects failure. r=edwin
--HG--
rename : dom/media/gmp-plugin/gmp-fake.cpp => dom/media/gmp-plugin-openh264/gmp-fake-openh264.cpp
2015-06-05 21:55:52 +12:00
Randell Jesup
49c3b667fa Bug 1159300: Add a clone of gmp-fake that doesn't do decryption r=glandium,cpearce
--HG--
rename : dom/media/gmp-plugin/Makefile.in => dom/media/gmp-plugin-openh264/Makefile.in
rename : dom/media/gmp-plugin/fake.info => dom/media/gmp-plugin-openh264/fakeopenh264.info
rename : dom/media/gmp-plugin/fake.voucher => dom/media/gmp-plugin-openh264/fakeopenh264.voucher
rename : dom/media/gmp-plugin/moz.build => dom/media/gmp-plugin-openh264/moz.build
2015-04-30 00:52:26 -04:00