Commit Graph

6520 Commits

Author SHA1 Message Date
Alex Chronopoulos
d5ff9b025d Bug 1509327 - Update dav1d from upstream to 9e08ac7. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D13426

--HG--
extra : moz-landing-system : lando
2018-11-29 22:24:05 +00:00
Andreas Pehrson
f0bf48464f Bug 1509548 - Make MediaStreamGraph pull data per track instead of per stream. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D13086

--HG--
extra : moz-landing-system : lando
2018-11-29 17:37:42 +00:00
Andreas Pehrson
a02fa011f0 Bug 1509548 - Remove the concept of a known tracks time from MediaStreamGraph. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12923

--HG--
extra : moz-landing-system : lando
2018-11-29 17:37:06 +00:00
Paul Vitale
34ca854b9d Bug 1194010 - Block webrtc socket creation on restricted ports r=drno
Port restriction is delegated to the io service.  Port 0 is explicitly
unrestricted.

NS_CheckPortSafety emits a warning which pollutes the gtests a bit.  It is only
tested if the port is not 0.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 15:40:44 +00:00
Dan Minor
7ca7e7696c Bug 1497552 - Remove support for 44100 Hz in dtmf_tone_generator; r=padenot
Assertions in NetEqImpl::SetSampleRateAndChannels prevent us from requesting
tones at 44100 Hz, so this code can be safely removed.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 12:59:01 +00:00
Dan Minor
b2dbaeae8f Bug 1497602 - Enable DirectX screen capturer on Windows; r=pehrsons
This enables support for the DirectX screen capturer. We use the default
DesktopCaptureOptions which do not set the option to use the DirectX screen
capturer so this change will have no effect with the current code.

For what it's worth, I tested enabling the DirectX option and it worked fine on my
system, but I don't see any reason to not follow the defaults provided by
webrtc.org in this case.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 13:27:23 +00:00
Nico Grunbaum
41a179ba06 Bug 1324788 - Bug 1324688 - Bring RTCIceCandidateStats up to spec r=mjf,jib,smaug
Bug 1324788 - P1 - rename RTCIceCandidate stat "portNumber" to spec "port"
Bug 1324788 - P2 - update RTCIceCandidateStats candidateType enum to spec
Bug 1324788 - P3 - add RTCIceCandidatePair.priority stat
Bug 1324788 - P4 - update WebRTC ICE candidate stats field componentId to spec name transportId
Bug 1324788 - P5 - remove deprecated RTCIceCandidateStats.mozLocalTransport field
Bug 1324788 - P6 - update WebRTC ICE candidate stats field transport to spec name, protocol
Bug 1324788 - P7 - remove deprecated RTCIceCandidateStats.candidateId
Bug 1324788 - P8 - reorder RTCIceCandidateStats dictionary members to match the spec
Bug 1324788 - P9 - make RTCIceCandidateStats.transportId ChromeOnly

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

--HG--
extra : moz-landing-system : lando
2018-11-28 20:30:07 +00:00
Gabriele Svelto
19e52bebd4 Bug 1510582 - Remove useless inclusions of Services.h r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D13240

--HG--
extra : moz-landing-system : lando
2018-11-28 17:25:23 +00:00
Dan Minor
7d22c8090a Bug 1509994 - Regenerate moz.build files; r=pehrsons
Depends on D13095

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

--HG--
extra : moz-landing-system : lando
2018-11-27 17:34:05 +00:00
Dan Minor
f4eadf5478 Bug 1509994 - Update gn generated json files (part 2); r=pehrsons
Depends on D13094

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

--HG--
extra : moz-landing-system : lando
2018-11-27 17:33:47 +00:00
Dan Minor
2b6f177a68 Bug 1509994 - Update gn generated json files; r=pehrsons
Depends on D13092

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

--HG--
extra : moz-landing-system : lando
2018-11-27 17:32:52 +00:00
Dan Minor
440fc58998 Bug 1509994 - Move video_engine from webrtc to systemservices; r=pehrsons
Historically this code was part of webrtc.org but has since been removed
from upstream. Rather than maintaining it as a local diff against upstream,
we should just move it to where it is used.

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

--HG--
rename : media/webrtc/trunk/webrtc/video_engine/browser_capture_impl.h => dom/media/systemservices/video_engine/browser_capture_impl.h
rename : media/webrtc/trunk/webrtc/video_engine/desktop_capture_impl.cc => dom/media/systemservices/video_engine/desktop_capture_impl.cc
rename : media/webrtc/trunk/webrtc/video_engine/desktop_capture_impl.h => dom/media/systemservices/video_engine/desktop_capture_impl.h
extra : moz-landing-system : lando
2018-11-28 20:16:42 +00:00
Nils Ohlmeier [:drno]
1319a0b5d5 Bug 1507700: allow incoming STUN requests. r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D12384

--HG--
extra : moz-landing-system : lando
2018-11-28 20:13:17 +00:00
Ehsan Akhgari
ca162bee20 Bug 1508472 - Part 4: Fourth batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal.  I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

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

--HG--
extra : moz-landing-system : lando
2018-11-28 09:16:55 +00:00
Byron Campen [:bwc]
3cc2282db8 Bug 1507216: Make sure AudioConduit doesn't re-create the recv stream without de-registering the old one. r=dminor
Make a cleaner distinction between having a recv stream that is inactive, and no recv stream at all. Requires some modification to local RTC extension configuration, because of a test-case that assumed StopReceiving/StartReceiving would re-create the recv stream as opposed to simply restarting it.

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

--HG--
extra : moz-landing-system : lando
2018-11-26 19:56:25 +00:00
Alex Chronopoulos
e821d283fa Bug 1493400 - Create build files for dav1d. r=firefox-build-system-reviewers,chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D12163

--HG--
extra : moz-landing-system : lando
2018-11-24 01:53:31 +00:00
Alex Chronopoulos
8046b715cd Bug 1493400 - Update dav1d from upstream to d27598e. r=TD-Linux
Depends on D9607

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

--HG--
rename : third_party/dav1d/include/compat/stdatomic.h => third_party/dav1d/include/compat/msvc/stdatomic.h
rename : third_party/dav1d/src/arm/mc_init.c => third_party/dav1d/src/arm/mc_init_tmpl.c
rename : third_party/dav1d/src/x86/ipred_init.c => third_party/dav1d/src/x86/ipred_init_tmpl.c
rename : third_party/dav1d/src/x86/itx_init.c => third_party/dav1d/src/x86/itx_init_tmpl.c
rename : third_party/dav1d/src/x86/loopfilter_init.c => third_party/dav1d/src/x86/loopfilter_init_tmpl.c
extra : moz-landing-system : lando
2018-11-27 14:04:37 +00:00
Thomas Daede
e6a11914f8 Bug 1493400 - Import dav1d into tree. r=glob
Differential Revision: https://phabricator.services.mozilla.com/D9607

--HG--
extra : moz-landing-system : lando
2018-11-24 01:53:30 +00:00
Coroiu Cristina
9f7204e754 Merge inbound to mozilla-central a=merge 2018-11-27 00:34:45 +02:00
byron jones
e26ef89bc9 Bug 1509867 - add moz.yaml to libpng, r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D12901

--HG--
extra : moz-landing-system : lando
2018-11-26 14:32:38 +00:00
byron jones
cd4fa62854 Bug 1507051 - replace libyuv's README_MOZILLA with moz.yaml; r=jesup
Replace README_MOZILLA with moz.yaml, various fixups for update.py, and create
a missing patch file from Bug 1491848.

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

--HG--
extra : moz-landing-system : lando
2018-11-23 13:00:07 +00:00
Byron Campen [:bwc]
97690b385d Bug 1494312 - Part 3: Expose RLog stuff via MediaTransportHandler. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D11777

--HG--
extra : moz-landing-system : lando
2018-11-23 16:46:51 +00:00
Byron Campen [:bwc]
e6218aee8a Bug 1494312 - Part 2: Make the internal PC stats API based on MozPromise. r=mjf,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D11776

--HG--
extra : moz-landing-system : lando
2018-11-23 16:46:52 +00:00
Byron Campen [:bwc]
69e7155b3a Bug 1494312 - Part 1: Remove unused nsresult returns from MediaTransportHandler. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D11775

--HG--
extra : moz-landing-system : lando
2018-11-23 16:46:23 +00:00
Andreas Pehrson
0c346714e6 Bug 1423241 - Remove fake-class-based webrtc unittests. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D12285

--HG--
extra : moz-landing-system : lando
2018-11-23 15:03:07 +00:00
Andreas Pehrson
4213b7db86 Bug 1423241 - Refactor DecodedStream. r=jya
This removes DecodedStream's use of MediaStreamListener in favor of
MediaStreamTrackListener. This change has however rippled through to a lot
more cleanup, per below.

This moves the MediaStreamTrack lifetime ownership for captured
HTMLMediaElements from the media element to DecodedStream, where the
MediaStreamGraph-side tracks are already created and ended today.

This makes MediaStreamTrack creation explicit across the entire codebase and
lets us remove the MediaStreamTrackSourceGetter class and the infrastructure
of adding MediaStreamTracks after they've already been created in the graph
from DOMMediaStream.

With track ownership, and thus TrackID allocation ownership, happening
exclusively in DecodedStream for its output tracks, we also stop throwing
away and recreating the SourceMediaStream to which we feed data on seek.
This is one step closer to fixing bug 1172394 and spec compliance of
HTMLMediaElement.captureStream().

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

--HG--
extra : moz-landing-system : lando
2018-11-23 15:02:03 +00:00
Andreas Pehrson
e80887ac8d Bug 1423241 - Return appended StreamTime samples appended through AppendToTrack. r=padenot
This allows DecodedStream to accurately track how many samples have been
appended to a track, even with resampling enabled.

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

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:48 +00:00
Andreas Pehrson
80cde33d12 Bug 1423241 - Always add tracks at the stream's current time. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D12271

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:42 +00:00
Andreas Pehrson
bae0391522 Bug 1423241 - Move MediaPipeline from MediaStreamListener to MediaStreamTrackListener. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D9104

--HG--
extra : moz-landing-system : lando
2018-11-23 15:01:30 +00:00
Jean-Yves Avenard
e9ab7f5485 Bug 1505284 - P4. Split preferences to enable WebRTC with MediaDataDecoder. r=padenot
So that we can disable just the H264 decoders while allowing VP8 or VP9.

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

--HG--
extra : moz-landing-system : lando
2018-11-22 16:31:16 +00:00
Dan Minor
c5bce82ff0 Bug 1507413 - Increase number of media streams supported by sipcc; r=bwc
This also removes SDP_MAX_LINE_LEN which is unused.

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

--HG--
extra : moz-landing-system : lando
2018-11-21 20:00:19 +00:00
byron jones
bb7a59d509 Bug 1509236 - replace libsoundtouch's README_MOZILLA with moz.yaml r=jya
Differential Revision: https://phabricator.services.mozilla.com/D12624

--HG--
extra : moz-landing-system : lando
2018-11-22 09:42:20 +00:00
Nico Grunbaum
0c719fb462 Bug 1489040 Update WebRTC ICE candidate stats field name ipAddress to address r=mjf,jib,smaug
Bug 1489040 - P1 - Update WebRTC ICE candidate stats field ipAddress to new name, address
Bug 1489040 - P2 - adjust WebRTC stats mochitest for new stat name 'address'
Bug 1489040 - P3 - add test for legacy WebRTC stat names

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

--HG--
extra : moz-landing-system : lando
2018-11-22 00:14:36 +00:00
Dan Minor
118f324018 Bug 1411681 - Cherrypick 6728003bcf5657da8f9ed52ad84f46c1197ce54b from upstream webrtc.org; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D12417

--HG--
extra : moz-landing-system : lando
2018-11-20 12:07:07 +00:00
Dan Minor
a88b07525e Bug 1406941 - Add unittests for configuring AudioConduit; r=padenot
Depends on D12017

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:00:35 +00:00
Dan Minor
5efc93cb87 Bug 1406941 - Make AudioConduit more easily unit testable; r=padenot
This makes Init and DeleteChannels virtual and mRecvChannelProxy and
mSendChannelProxy protected. This will allow unit test code to override
the creation of channels so that we can use a mocked ChannelProxy instead.

Depends on D12016

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:00:43 +00:00
Dan Minor
80bc9e8334 Bug 1406941 - Remove unused error handling code from SetLocalRTPExtensions; r=padenot
Rather than returning an error, the channel proxies have asserts that the
underlying calls to the channel objects succeeded.

Depends on D12015

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:46:15 +00:00
Dan Minor
6c797e79ae Bug 1406941 - Set opus maxplaybackrate in AudioConduit; r=padenot
This was regressed by the branch 64 update. The parameter is used in
audio_encoder_opus.cc.

Depends on D12014

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:01:16 +00:00
Dan Minor
f064d3d180 Bug 1406941 - Fix typo in videoconduit_unittests.cpp; r=padenot
Depends on D12013

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:01:25 +00:00
Dan Minor
a9a121b9e9 Bug 1406941 - Remove unused fields from JsepAudioCodecDescription; r=bwc
Packet size and rate are no longer configured inside AudioConduit, so there is
no reason to continue to define them here. We now take the defaults provided
by webrtc.org.

Depends on D12012

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:44:16 +00:00
Dan Minor
450258b20a Bug 1406941 - Remove unused fields from AudioCodecConfig; r=padenot
With the branch 64 update we no longer configure packet size and rate
ourselves. Instead, we use the defaults provided in acm_codec_database.cc.
This removes the unused fields from AudioCodecConfig, the next commit does the
same thing for JsepAudioCodecDescription.

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

--HG--
extra : moz-landing-system : lando
2018-11-19 17:01:33 +00:00
Thomas Daede
9735214d9a Bug 1501796 - Use nasm when yasm is requested. r=firefox-build-system-reviewers,mshal
Includes changes to support nasm's stricter include paths.

Supports falling back to yasm if nasm is missing.

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

--HG--
extra : moz-landing-system : lando
2018-11-16 01:20:58 +00:00
Csoregi Natalia
c9b70719c8 Merge mozilla-central to autoland. CLOSED TREE 2018-11-16 00:19:45 +02:00
Dan Horák
02a48779df Bug 1506644 - Add webrtc.org build configs for PPC and Arm Linux platforms; r=dminor
--HG--
extra : rebase_source : b9d40305a0bb16700d3863048424d892fde04001
2018-11-15 08:34:27 -05:00
Margareta Eliza Balazs
d5555d2998 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-11-15 18:22:30 +02:00
byron jones
e79d7f7cdf Bug 1507057 - libtheora: replace libtheora's README_MOZILLA with moz.yaml; r=jya
Add moz.yaml and update `update.sh` to match other media libraries.

Note after upstream's switch from SVN to git the RSC headers have changed,
however, these changes have not yet been committed.  I've updated the patch
that had hunks with context extending into the RSC header so it continues to
apply after pulling from git.

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

--HG--
extra : moz-landing-system : lando
2018-11-15 12:04:58 +00:00
Byron Campen [:bwc]
03444d1918 Bug 1487278: When a transceiver is stopped/disassociated by a remote description, clear its transport id too. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D11778

--HG--
extra : moz-landing-system : lando
2018-11-14 23:29:41 +00:00
Andrew Osmond
33bcfcbc16 Bug 1509878 - Upgrade libwebp to version 1.0.1 r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D12933
2018-11-26 12:47:25 -05:00
David Major
79ef206dc5 Bug 1503363: Regenerate webrtc moz.build files. r=dminor
--HG--
extra : rebase_source : 44e3d835c4bac4cd6692a406329512d16a3357c6
2018-11-14 10:37:21 -05:00
David Major
a09f9b750d Bug 1503363: Add gn json files for x64-windows. r=dminor
--HG--
rename : media/webrtc/gn-configs/x86_False_x86_win.json => media/webrtc/gn-configs/x64_False_x64_win.json
rename : media/webrtc/gn-configs/x86_True_x86_win.json => media/webrtc/gn-configs/x64_True_x64_win.json
extra : rebase_source : 6c72890bf43767f91faf185530610215a596d46b
2018-11-14 10:28:54 -05:00
Chris Manchester
8bc396706e Bug 1503363: Add gn json files for x86-linux. r=dminor
--HG--
rename : media/webrtc/gn-configs/x64_False_x64_linux.json => media/webrtc/gn-configs/x64_False_x86_linux.json
rename : media/webrtc/gn-configs/x64_True_x64_linux.json => media/webrtc/gn-configs/x64_True_x86_linux.json
extra : rebase_source : 64ef7ed051b5e4796194f35cf26efe4b78280b99
2018-11-14 10:28:53 -05:00
David Major
abaa2d2c68 Bug 1503363: Add gn json files for aarch64-windows. r=dminor
--HG--
extra : rebase_source : f96fd2ef8e045d4a0b56da883fa1542b4ab3e48b
2018-11-14 10:28:46 -05:00
David Major
7b8d1cf803 Bug 1503363: De-unify some more webrtc files due to conflicting defines. r=dminor
--HG--
extra : rebase_source : ca3573f29f4ed56a64e39b702636dace1616c42d
2018-11-14 10:06:58 -05:00
Coroiu Cristina
d850d799a0 Merge inbound to mozilla-central a=merge 2018-11-14 11:51:31 +02:00
Nils Ohlmeier [:drno]
13c6f01479 Bug 1505733: add recording of DTLS protocol version used by PeerConnections. r=mt
Differential Revision: https://phabricator.services.mozilla.com/D11300

--HG--
extra : moz-landing-system : lando
2018-11-10 20:29:57 +00:00
Nils Ohlmeier [:drno]
d0376ddab9 Bug 1456417: made MLineIndex nullable. r=bwc,smaug
Differential Revision: https://phabricator.services.mozilla.com/D10807

--HG--
extra : moz-landing-system : lando
2018-11-13 22:52:24 +00:00
Byron Campen [:bwc]
33bc9bd6b6 Bug 1498793: Accept msid without track id r=mjf,jib
Differential Revision: https://phabricator.services.mozilla.com/D10925

--HG--
extra : moz-landing-system : lando
2018-11-12 19:25:59 +00:00
byron jones
0ef0024e3e Bug 1505278 - replace libmkv's README_MOZILLA with moz.yaml. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D11147

--HG--
extra : moz-landing-system : lando
2018-11-11 22:01:14 +00:00
Dan Minor
cc500ea702 Bug 1506500 - Use ReceiveStreamStatistics for GetRTCPSenderReport; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D11794

--HG--
extra : rebase_source : 1d71f849f75b77f7e2834afa50f91a8259c7cb56
2018-11-13 11:43:17 -05:00
Brindusan Cristian
3a68003805 Backed out 3 changesets (bug 1503363) for build bustages on mozbuild. CLOSED TREE
Backed out changeset adc6f14f89e4 (bug 1503363)
Backed out changeset 0b7dd43c1e2e (bug 1503363)
Backed out changeset 8c2426b552ac (bug 1503363)
2018-11-13 18:28:48 +02:00
David Major
08ccde641f Bug 1503363: Regenerate webrtc moz.build files. r=dminor 2018-11-13 11:13:42 -05:00
David Major
9735854f16 Bug 1503363: Add gn json files for aarch64-windows. r=dminor 2018-11-13 11:13:42 -05:00
David Major
becc139296 Bug 1503363: De-unify some more webrtc files due to conflicting defines. r=dminor 2018-11-13 11:13:41 -05:00
Paul Vitale
09f4c06235 Bug 1203503 - part 2. replace proxy tunnel with new ipc-based tunnel r+bwc, r+mayhemer
This replaces the tunnel using a new nr_socket implementation.  Proxy detection
code is still done in the peer connction.  However, the result is only used to
detect a proxy.  The result is unused.  Address resolution is done by necko code
in the parent process.  The new socket wraps a WebrtcProxyChannel which uses
necko to handle proxy negotiation.  This has a happy side effect of enabling all
authentication modes that necko already supports for http proxies.

This adds a protocol for Necko to manage, WebrtcProxyChannel.  This new protocol
serves as a pipe for a CONNECT tunnel.  It is only used in WebRtc and not built
in no WebRtc builds.

--HG--
extra : rebase_source : a951841f95eaaa0562886cf76b405b01f1adf70e
extra : intermediate-source : 5c3da21957fc80b07188bc8a405437b858027a22
extra : source : 594a32883463ab051677ba06e22fa6d062b4b4a9
2018-06-05 12:10:16 -05:00
Dan Minor
0185d52ba2 Bug 1376873 - Reduce thread stack size in platform_thread.cc; r=bwc
Summary:
The current default stack size of 1M results in intermittent OOMs on win32
builds while running web-platform tests. The value of 256k was chosen for
consistency with the default value used elsewhere in Gecko, which is defined in
nsIThreadManager.idl.

Reviewers: bwc

Tags: #secure-revision

Bug #: 1376873

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

--HG--
extra : rebase_source : 9039a5c4ac25c227ee65b0321fdffdecd81d085c
2018-11-05 10:33:02 -05:00
Dan Minor
29c115bb15 Bug 1376873 - Add generated moz.build files; r=ng
--HG--
extra : rebase_source : 4b6fbd953d68e9092be0159f2af004bf96a1226e
2018-09-13 07:53:01 -04:00
Jan Beich
f14826a7c9 Bug 1376873 - Add WebRTC 64 gn-configs for BSDs. r=dminor f=gaston
All gn-configs were generated on a single FreeBSD amd64 machine:
- DragonFly and NetBSD have is_clang=false, so differ only in target_os/OS_TARGET
- FreeBSD and OpenBSD have is_clang=true, so differ only in target_os/OS_TARGET
- x86 (i386) configs are from 32-bit chroot on x86_64 (amd64)
- arm (armv7) and arm64 (aarch64) configs are from qemu-user chroot
- qemu-user can't run rustc atm, so configure was hacked to work without
- qemu-user crashes with gn 68 on aarch64, so gn 65 was used

--HG--
extra : rebase_source : fb05d660c299851de6226fb23c6873bdfc34237f
2018-10-12 12:57:04 -04:00
Jan Beich
e13e881da5 Bug 1376873 - Unbreak WebRTC 64 build on BSDs. r=dminor f=gaston
--HG--
extra : rebase_source : 84db77b91bced707b6465ffc9683d8b733512c74
2018-10-12 12:56:27 -04:00
Dan Minor
c8da55a336 Bug 1376873 - Update gn generated json files; r=ng
This updates the gn generated json files for tier-1 platforms, and removes
the outdated configurations for remaining platforms.

--HG--
extra : rebase_source : bccb7a5476d5d0a66aa90657f839cea5e49ff4ce
2018-02-23 15:01:50 -05:00
Andreas Pehrson
30610de2f0 Bug 1376873 - Use VP8SimulcastAdapter in VideoConduit; r=ng
The VP8SimulcastAdapter automatically handles cropping to accomodate
constraints on VP8 simulcast streams that each stream have exactly half the
width and height of the higher resolution stream before it.

This also adjusts min_bitrate_estimate in
test_peerConnection_simulcastOddResolution.html to compensate for changes in
the simulcast resolutions chosen by the webrtc.org code.

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

--HG--
extra : rebase_source : b7ea403f7c9d6175a34eb11c7af17dd12ee55c31
2018-09-21 16:45:47 +02:00
Dan Minor
0cf790ab2b Bug 1376873 - Fix up rotation in video_capture_impl.cc; r=pehrsons
This fixes a bug in the upstream code introduced when they removed the
ConvertToI420 helper method from webrtc_libyuv.cc. The buffer size is
passed into libyuv::ConvertI420 incorrectly when rotation is applied, which
causes bad rendering and instabilities.

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

--HG--
extra : rebase_source : d6910e01ebd81a626b6924f04b31f37b87900a66
2018-09-19 15:06:13 -04:00
Dan Minor
ceb2cc2230 Bug 1376873 - Make FunctionThatDoesNothing use const; r=ng
Windows ASAN builds complain about attempting to cast away the const qualifier
in FunctionThatDoesNothing, so this makes the argument const.

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

--HG--
extra : rebase_source : dbfa0a48f50c30afa5a41b81af32bd9744a31511
2018-09-18 11:05:25 -04:00
Dan Minor
0370dcd88f Bug 1376873 - Don't define _USE_MATH_DEFINES in audio_processing.h; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7476

--HG--
extra : rebase_source : 479864aa7db0f3050bbc2dbd9465cbc35ae172c0
2018-09-18 06:57:35 -04:00
Dan Minor
641b71af57 Bug 1376873 - Keep track of active codec mode in VideoConduit; r=pehrsons
Upstream has added an assertion in video send stream that prevents using
ReconfigureVideoEncoder if the content type has changed. This adds a
mActiveCodecMode member and uses it to prevent calling that method if the
codec mode has changed.

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

--HG--
extra : rebase_source : d6af217ae501163f6ee742f2ad48f1f22d2869b4
2018-09-17 15:51:32 -04:00
Dan Minor
461e6fc686 Bug 1376873 - Setup contributing sources extension in audio_receive_stream.cc; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7474

--HG--
extra : rebase_source : 61e403ccc644d35a541e796c36f92abc198989af
2018-09-17 15:03:34 -04:00
Dan Minor
426cafe100 Bug 1376873 - Rollup of changes from cd8671232fd8 to 2a59b432d2bd; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7472

--HG--
extra : rebase_source : c9c96bfd25942ecb51f2ea7e3f8c913cd866cd8e
2018-09-17 07:24:22 -04:00
Dan Minor
eab091ae07 Bug 1376873 - Fix GetRTPStatistics; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7471

--HG--
extra : rebase_source : c85d48f46800be6b26e32a9f216b053e26bc523d
2018-09-06 16:24:33 -04:00
Dan Minor
d044bb4e47 Bug 1376873 - Fix warning in mean_variance_estimator.cc; r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D7470

--HG--
extra : rebase_source : 2357593c29910f2a99c1c1f8365a5621bea8d717
2018-08-13 10:24:46 -04:00
Dan Minor
2eda698370 Bug 1376873 - Allow single channel opus; r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D7469

--HG--
extra : rebase_source : 2d270cc630ed9910d6e6c3ef793b5e8a3beacac3
2018-08-13 08:34:44 -04:00
Dan Minor
4884df4153 Bug 1376873 - Make lock_block explicit; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D7468

--HG--
extra : rebase_source : c81c3a142595e24b4177b03c2fbf58b49ec0062d
2018-08-02 13:56:10 -04:00
Dan Minor
d236b5c9ba Bug 1376873 - Cherrypick rev 09133af36fba93691a22151765097c0bd581c1fa; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7466

--HG--
extra : rebase_source : 71b4f43d9be1717cc60b8adbb4d42a47925b1820
2018-08-02 08:50:15 -04:00
Dan Minor
0c883f7989 Bug 1376873 - Change OS X logging include to prevent preprocessor multiple defines; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7465

--HG--
extra : rebase_source : b7dcd4720f764a763560b72674c16e8f17bc57fd
2018-07-31 13:45:43 -04:00
Dan Minor
b7851918aa Bug 1376873 - OS X desktop capture fixes; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7464

--HG--
extra : rebase_source : d09de73b006c2b8a68b763c21b3ea4dc68a59b56
2018-07-31 13:32:44 -04:00
Dan Minor
921107e99f Bug 1376873 - Updates to VideoConduit.cpp for OS X; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7455

--HG--
extra : rebase_source : 42719824d9906c2dd82b87420374925882722dde
2018-07-31 13:28:44 -04:00
Dan Minor
3207c6955b Bug 1376873 - Updates to Android video capture; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7452

--HG--
extra : rebase_source : 29295a9beed6c9ea20c76c8ac1d05f01fe397b0b
2018-07-26 15:23:16 -04:00
Dan Minor
af9ad6b69a Bug 1376873 - Update WebrtcMediaCodecVP8VideoCodec; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7451

--HG--
extra : rebase_source : e39a235884d1a60ff75eba66dc8fc9e3dde2f5f1
2018-07-26 10:14:05 -04:00
Dan Minor
a4bb9e371c Bug 1376873 - Remove Android java code from AudioConduit; r=padenot
This is no longer necessary as we do not use the webrtc.org audio device
implementations anymore.

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

--HG--
extra : rebase_source : b0fb79e68885b42afa1418c77bc6d24527803e9c
2018-07-26 10:12:58 -04:00
Dan Minor
be3a4cb2d1 Bug 1376873 - Update videoconduit_unittests gtests; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7446

--HG--
extra : rebase_source : 6b9b6b72a05dfcac9f3bbd50bd39f3d4f5745145
2018-02-16 09:47:19 -05:00
Dan Minor
55840bf1dd Bug 1376873 - Use audio/video sync groups; r=bwc
This uses sync groups in the receive stream configs for the conduits rather
than establishing sync through direct calls. When the streams are created
in call.cc, ConfigureSync is called, which results in SetSync being called
on the video stream which is the replacement for SetSyncChannel in branch 57
of webrtc.org.

With the current code, a video stream can only be synchronized to a single
audio stream. Using sync groups enforces a stronger constraint that only one
pair of audio and video streams can be synchronized for each sync group. The
comments in call.cc imply this is what is supported by webrtc.org, it seems
safer to also follow this constraint rather than circumvent it by calling
directly into the underlying code.

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

--HG--
extra : rebase_source : fa8b1d301398edcedc6e488c51009b6667792f45
2018-04-27 07:25:19 -04:00
Dan Minor
d1bc0cab86 Bug 1376873 - Fix GetRTCPSenderReport; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D7431

--HG--
extra : rebase_source : bb487c344ce6066b5d8e3f26ed8eb239e95074eb
2018-02-07 15:00:17 -05:00
Dan Minor
9bc0e6b1c6 Bug 1376873 - Remove CPULoadStateObserver; r=ng
We went through a lot of trouble to plumb the CPULoadState down to
MediaOptimization, but the value is not actually used for anything, at least
since the Branch 57 update. This removes the plumbing, since it seems we are
getting along ok without it.

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

--HG--
extra : rebase_source : e8f7c8b313d37ea3383a9eb16a6cc573844762cd
2018-04-19 13:37:51 -04:00
Dan Minor
c1294214c2 Bug 1376873 - Disable Mid support in RtpDemuxer; r=mjf
The only use of Mid in the current webrtc.org code is in the unit tests.
RtpStreamReceiverController only allows adding sinks using SSRCs. Because
of this, we'll end up dropping packets in the RtpDemuxer with the current
code as none of our Mids will be recognized.

Tip of webrtc.org fully supports using Mids, so we'll be able to enable this
code again after the next update.

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

--HG--
extra : rebase_source : 89d0f100bfa8bf7c050f6176f21dc2c829503d82
2018-03-27 15:43:30 -04:00
Dan Minor
fe29c0926f Bug 1376873 - Use Call interface in AudioConduit; r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D7441

--HG--
extra : rebase_source : 7aeea5f93ab8a7c160cfdbd97331ae7107a205dd
2018-08-21 13:39:53 -04:00
Dan Minor
dd566696a6 Bug 1376873 - Disable or replace thread check assertions; r=pehrsons
The changes to Call are required because we create the Call object on the main
thread, but deliver packets and query stats from the socket thread.

The changes to ChannelProxy are required because we query stats from the
socket thread rather than the main thread.

For RtpVideoStreamReceiver, this removes the worker_task_checker_ assertions
and replaces them with a critical section. This is how the code worked prior
to this update. We create the Call object (and thus eventually the
RtpVideoStreamReceiver) on the main thread, but we want to deliver packets on
the socket thread. To retain these assertions we'd either have to dispatch calls
to deliver packets from the socket thread to the main, which seems pretty bad
from a performance point of view, or we'd have to refactor the code to create
the Call object on the socket thread, which seems like a major refactoring
best done outside of a branch update. Going back to the previous behaviour
seemed like the least bad alternative.

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

--HG--
extra : rebase_source : f427225442dba10683f3928add8059a3630aafe5
2018-03-26 16:19:23 -04:00
Dan Minor
6887e2ccf5 Bug 1376873 - Add RtpPacketQueue; r=pehrsons
We'll need to queue rtp packets in both the AudioConduit and the VideoConduit.
This adds a class to manage the packet queue to reduce duplicated code between
the conduits.

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

--HG--
extra : rebase_source : c1463a44fbfe235f2f3a540c64d93a52a2b2e2ca
2018-03-22 09:44:49 -04:00
Dan Minor
add634384b Bug 1376873 - Mediapipeline updates; r=pehrsons
Support for native_handle() has been removed by upstream.

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

--HG--
extra : rebase_source : e37659e718c58d0de7504ddffa15043ff18a603c
2018-02-16 09:15:44 -05:00
Dan Minor
a94995d952 Bug 1376873 - Update mtransport sigslot.h; r=bwc
This updates the copy of sigslot used by mtransport to match that used by
webrtc.

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

--HG--
extra : rebase_source : f10b94988654b09ec2f88269c26f61ad3c50e0bd
2018-02-15 15:14:58 -05:00
Dan Minor
bd4f2b743a Bug 1376873 - WebrtcMediaDataDecoderCodec updates; r=pehrsons
This makes the ImageBuffer class implement VideoFrameBuffer class and makes
it available in MediaPipeline. To avoid exposing MediaPipeline to a lot of
internal details of WebrtcMediaDataDecoder, ImageBuffer is moved to its
own header file.

We're required to implement a ToI420() method. I've re-used the current
implementation of NativeToI420Buffer, which requires more development in order
to work properly as the Image class only supports RGB readback.

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

--HG--
extra : rebase_source : 19ec409510f06a9fa7cab15c1f16c9a7bad0b433
2018-08-21 13:40:45 -04:00
Dan Minor
fa42f190ae Bug 1376873 - VideoConduit updates; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7433

--HG--
extra : rebase_source : 0e8815026664459e95d0682e1bec1b26cb964931
2018-08-21 13:40:10 -04:00
Dan Minor
2f625135b1 Bug 1376873 - WebrtcGmpVideoCodec updates; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D7432

--HG--
extra : rebase_source : 3d2202b570d4e60367955354bcf20a7bde415e86
2018-08-21 13:40:26 -04:00