Commit Graph

855 Commits

Author SHA1 Message Date
Nico Grunbaum
8c19e6d0db Bug 1534466 - implement getContributingSources and getSynchronizationSources for video r=jib
Bug 1534466 - P1 refactor RtpSourceObserver to accept RTPHeader

Bug 1534466 - P2 Add RtpSourceObserver to VideoConduit

Bug 1534466 - P3 Update WPT ini to reflect newly passing tests

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

--HG--
extra : moz-landing-system : lando
2019-04-01 21:22:42 +00:00
Dan Minor
1f715c49e2 Bug 1539220 - Prefer non-RGB24 capabilities when available; r=pehrsons
We've hit a number of problems with handling of RGB24 video capture on
Windows. This adds a check that will ignore any RGB24 capture capabilities
when determining a best match if there are other capabilities available to
workaround the problems.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 18:43:38 +00:00
Dan Minor
a18b131623 Bug 1532465 - Ensure we AddRef prior to early return in MediaType::Assign; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D23143

--HG--
extra : rebase_source : dbfef9c4e527182e23ff9e944b9eccebe5dd58b1
2019-03-12 07:15:58 -07:00
Dan Minor
803d8e1547 Bug 1535584 - Restore UpdateCodecFrameSize to vp9_impl.cc; r=bwc
Differential Revision: https://phabricator.services.mozilla.com/D23713

--HG--
extra : moz-landing-system : lando
2019-03-21 15:48:46 +00:00
David Major
e5773183d6 Bug 1528074 - Remove MSVC warning flags that clang-cl doesn't understand r=chmanchester
Per the previous patch, clang-cl only understands five MSVC-style warning flags: 7219c7e9af/clang/include/clang/Driver/CLCompatOptions.td (L188-L197)

This patch removes the flags that clang-cl doesn't understand.

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

--HG--
extra : moz-landing-system : lando
2019-03-13 20:19:08 +00:00
Dan Minor
0aa8a8ce34 Bug 1519535 - Check that deviceNumber is valid in GetDeviceName; r=jib
Differential Revision: https://phabricator.services.mozilla.com/D21945

--HG--
extra : moz-landing-system : lando
2019-03-06 15:41:35 +00:00
Ryan Hunt
d5e3e54658 Bug 1523969 part 15 - Move method definition inline comments to new line in 'media/'. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D21116

--HG--
extra : rebase_source : bf7d4b2a09768420f8da04d82d34afed374d7961
2019-02-25 16:09:55 -06:00
Dan Minor
56c52a041c Bug 1522238 - Set frame timestamp in MediaPipeline::ProcessVideoFrame; r=pehrsons
In the past we relied upon ViEEncoder::OnFrame to set the render time for
frames. With the branch 64 update, this code moved to
VideoStreamEncoder::OnFrame, and only sets the timestamp if it is greater than
the current time. This results in broken rtp timestamp estimates in the rtcp
sender report, which causes problems for Meet and possibly other services
that rewrite rtp timestamps based upon the sender report.

This patch explicitly sets the timestamp in MediaPipeline. This should give us
the same behaviour that we had before the branch update without requiring local
modifications to upstream code. This leaves the rtp timestamp as zero as that
was not being set before.

This also removes an unused overload of the VideoFrameConverted method.

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

--HG--
extra : moz-landing-system : lando
2019-02-21 15:21:33 +00:00
Nico Grunbaum
a73b34cad7 Bug 1525341 - RTP audio jitter stat is not updating r=dminor
RTP audio jitter stat is not updating because the playout frequency isn't being set

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

--HG--
extra : moz-landing-system : lando
2019-02-20 19:32:42 +00:00
Dan Minor
8e1ddc4af1 Bug 1524208: Compare result of BaseInputPin::Receive to S_OK; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D19675

--HG--
extra : rebase_source : 0ab864b92552cbf63ba132844cd51f0ec493b232
2019-02-13 06:33:27 -08:00
David Major
7c3a74a7b3 Bug 1515699: Backed out 2 changesets (bug 1486038) now that aarch64 builds use clang-cl. r=dminor
Backed out changeset 304b5b25af77 (bug 1486038)
Backed out changeset 06d49dc866e8 (bug 1486038)

--HG--
extra : rebase_source : 27ecf1fc3028fa3becfaf079f914d089f6e3006a
2019-02-15 19:16:07 +01:00
Mike Hommey
ef3ad686ee Bug 1512504 - Remove support for MSVC. r=froydnj
Consequently, this removes:
- MOZ_LIBPRIO, which is now always enabled.
- non_msvc_compiler, which is now always true.
- The cl.py wrapper, since it's not used anymore.
- CL_INCLUDES_PREFIX, which was only used for the cl.py wrapper.
- NONASCII, which was only there to ensure CL_INCLUDES_PREFIX still
  worked in non-ASCII cases.

This however keeps a large part of detecting and configuring for MSVC,
because we still do need it for at least headers, libraries, and midl.

Depends on D19614

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

--HG--
extra : moz-landing-system : lando
2019-02-14 21:45:27 +00:00
Dan Minor
92ff4b0d03 Bug 1524335: Make InOrderPacket take last_sequence_number by reference; r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D19694

--HG--
extra : rebase_source : ac4ef8f11e7b1b4975d1cd2e4c8985c6d040703d
extra : amend_source : 2440c041736e2408be3a7a670f2f69b1b6ab5215
2019-02-13 13:05:20 -05:00
Dan Minor
cc229f4778 Bug 1524208 - Calculate stride based upon target_width in video_capture_impl.cc; r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D18270

--HG--
extra : rebase_source : dcc70f5f91fe2a2af962a062942dad662eb3cc67
extra : amend_source : 29348cc4a00d11953ec7f2712a38252ab1817993
2019-01-31 15:37:38 -05:00
Nils Ohlmeier [:drno]
0d97afcc8d Bug 1523412: compare GetStreamCaps return values against S_OK. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D17872

--HG--
extra : moz-landing-system : lando
2019-01-29 21:21:33 +00:00
Dan Minor
41f331e2ad Bug 1515205 - Always set frame timestamps in VideoStreamEncoder::OnFrame; r=drno
In the past we relied upon ViEEncoder::OnFrame to set the render time for
frames. With the branch 64 update, this code moved to
VideoStreamEncoder::OnFrame, and only sets the timestamp if it is greater than
the current time. This results in broken rtp timestamp estimates in the rtcp
sender report, which causes problems for Meet and possibly other services
that rewrite rtp timestamps based upon the sender report.

This patch makes VideoStreamEncoder::OnFrame always set the timestamp. In a
follow on bug, we'll move this behaviour to VideoConduit so we don't have to
maintain a local modification of the upstream code.

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

--HG--
extra : moz-landing-system : lando
2019-01-23 20:48:20 +00:00
Dan Minor
532d683503 Bug 1518744 - Deregister owner in DeviceInfoIos destructor; r=jib
Differential Revision: https://phabricator.services.mozilla.com/D16047

--HG--
extra : rebase_source : 74e471e06afdccef080edbc4e3b7a887469c49bb
extra : amend_source : 1aaa93fdfa720c0b9788835d6eaec8242c43c763
2019-01-09 09:22:27 -05:00
Nico Grunbaum
52229a82fe Bug 813063 - Add LICENSE file to root of WebRTC.org source r=dminor
Adding a missing license file to the root of the WebRTC.org source

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

--HG--
extra : moz-landing-system : lando
2019-01-08 04:17:07 +00:00
Dan Minor
743a863043 Bug 1439997 - Fix ondevicechange event on OS X; r=jib
This brings the changes from Bug 1286429 that were made to the older
mac/avfoundation video capture code to the newer objc video capture
code.

Depends on D15196

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

--HG--
extra : moz-landing-system : lando
2019-01-08 14:39:15 +00:00
Dan Minor
c02e428bd0 Bug 1439997 - Remove old mac video capture code; r=jib
This code is no longer used and has been removed upstream. We can remove
it as well.

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

--HG--
extra : moz-landing-system : lando
2019-01-07 16:34:01 +00:00
Dan Minor
d86cbd146f Bug 1515461 - Make AVCaptureSession stopRunning synchronous; r=jib
Differential Revision: https://phabricator.services.mozilla.com/D15144

--HG--
extra : moz-landing-system : lando
2018-12-21 17:07:06 +00:00
David Major
9fb109137e Bug 1486038: Work around missing ARM64 NEON intrinsics in MSVC. r=dminor
--HG--
extra : rebase_source : de6d6b3e790aaa235829664825470da94872e6f1
2018-12-20 14:22:51 -04:00
David Major
8a836950ec Bug 1486038: Use arm64_neon.h instead of arm_neon.h with MSVC. r=dminor
--HG--
extra : rebase_source : 6acdc77121e960aa72d2f6a3dd95ab93ad9e5e28
2018-12-20 14:22:48 -04:00
Dan Minor
73d9c4cce6 Bug 1498253 - Remove mozAvSyncDelay and mozJitterBufferDelay; r=ng
The value for mozAvSyncDelay has been broken since the branch 57 update
(Bug 1341285). We added SetCurrentSyncOffset() but never called it from
anywhere.

In the future we should be getting stats from AudioReceiveStream rather than
modifying the channel code, the delay_estimate_ms field provides almost the
same information.

Since we're attempting to get rid of moz prefixed stats, it makes sense to just
remove this code rather than fix it. The associated telemetry code has been
broken since Bug 1341285 as well so I think it is safe to remove.

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

--HG--
extra : moz-landing-system : lando
2018-12-14 13:08:12 +00:00
Dan Minor
cc523ee293 Bug 1497610 - Remove IsNewerOrSameTimestamp; r=bwc
The affected functions are only used by VCMJitterBuffer, which is the older
jitter buffer that is no longer in use. We can safely remove these
modifications.

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

--HG--
extra : moz-landing-system : lando
2018-12-13 20:35:27 +00:00
Dan Minor
5e0f0c2fb0 Bug 1497992 - Remove VideoReceiver::Reset; r=pehrsons
This ends up calling VCMReceiver::Reset() which resets the
state of the VCMJitterBuffer. We no longer use VCMJitterBuffer,
which is the old jitter buffer implementation, so this code
no longer has any effect and can be removed.

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

--HG--
extra : moz-landing-system : lando
2018-12-12 17:57:38 +00:00
Dan Minor
c091d9b683 Bug 1497619 - Restore thread check in process_thread_impl.cc; r=ng
Not not really needed.

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

--HG--
extra : moz-landing-system : lando
2018-12-10 20:37:56 +00:00
Dan Minor
6562906d33 Bug 1497573 - Remove DesktopCapturer::Stop; r=ng
Differential Revision: https://phabricator.services.mozilla.com/D14066

--HG--
extra : moz-landing-system : lando
2018-12-10 17:23:37 +00:00
Dan Minor
4c2f93d7ef Bug 1497650 - Remove 100 bytes added to CalcBufferSize in vp8_impl.cc; r=ng
In Bug 919979 we added 100 bytes to the size returned by CalcBufferSize
to work around an error with the calculated buffer size with small
resolutions. I verified that this extra buffer is no longer required with
a modified mochitest. Given the age of the bug this was working around,
I don't think a permanent test is required to prevent regressions from
upstream.

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

--HG--
extra : moz-landing-system : lando
2018-12-10 17:19:34 +00:00
Dan Minor
5fa6fb4f75 Bug 1512459 - Remove webrtc sndio audio device; r=padenot
This code is unused and can be removed.

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

--HG--
extra : moz-landing-system : lando
2018-12-10 12:33:04 +00:00
Dan Minor
0cc3ce8ac8 Bug 1497974 - Remove local changes to jitter_buffer.cc; r=pehrsons
These modifications are made to code which we do not use and so
can be removed.

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

--HG--
extra : moz-landing-system : lando
2018-12-07 20:18:57 +00:00
Dan Minor
22446f0d3d Bug 1497606 - Remove disable_composition_ in screen_capturer_win_gdi; r=ng
This removes disable_composition_ and instead uses the value of
composition_func_ to determine whether or not composition is
disabled. This is what is done by upstream webrtc.org.

We call options.set_disable_effects(false) in desktop_capture_impl.cc.

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

--HG--
extra : moz-landing-system : lando
2018-12-05 18:55:57 +00:00
Dan Minor
fa93f60209 Bug 1368816 - Enable VideoCaptureExternalTest Rotation gtest; r=ng
This test started failing after the 57 update and started passing
again after the 64 update, so we might as well enable it.

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

--HG--
extra : moz-landing-system : lando
2018-12-05 14:13:33 +00:00
Dan Minor
032512790d Bug 1498205 - Move PlatformUIThread from rtc_base to video_engine; r=pehrsons
PlatformUIThread is only used by the video_engine code, so it makes sense to
move it there rather than maintain it as a diff against upstream webrtc.org.

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

--HG--
extra : moz-landing-system : lando
2018-11-30 17:46:38 +00:00
Dan Minor
8684095f20 Bug 1497577 - Remove code to detect zero size windows; r=ng
This code was added by Bug 1196542 to fix a permanently failing test on our
Windows test machines. After this landed, upstream added a check for empty
windows in window_captuer_win.cc, so this should no longer be a problem on
Windows. As far as I know, this was never a problem on the other platforms,
so this code can be safely removed.

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

--HG--
extra : moz-landing-system : lando
2018-11-29 20:54:51 +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
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
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
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 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
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
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
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
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
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