Commit Graph

23572 Commits

Author SHA1 Message Date
ae1bceab00 Move cropAndScaleI420 to JavaI420Buffer.
This allows removing JavaI420Buffer from video_api. This is technically
a public method but I don't think anyone is using it so it should be
safe to move.

Bug: webrtc:9048
Change-Id: Id563a3af030497e1a92e09da79ca1ed925e064a3
Reviewed-on: https://webrtc-review.googlesource.com/90250
Reviewed-by: Paulina Hensman <phensman@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24090}
2018-07-25 08:37:47 +00:00
8f6fe585b2 Roll chromium_revision e56ee1dd51..deb63e97f1 (577600:577752)
Change log: e56ee1dd51..deb63e97f1
Full diff: e56ee1dd51..deb63e97f1

Changed dependencies:
* src/base: e1ef15da84..c8a8f9e089
* src/build: 5c826e4ada..2c97c105b7
* src/ios: 058bccbc0e..223d748d7f
* src/testing: 79478a36f3..ec724377d9
* src/third_party: b7774bf396..fa1917f357
* src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/ca2b32c844..bd499d7398
* src/third_party/depot_tools: 6ec6d27f2d..01ce05914f
* src/tools: 2430528a18..1d2e523535
DEPS diff: e56ee1dd51..deb63e97f1/DEPS

No update to Clang.

TBR=buildbot@webrtc.org,
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Change-Id: I34806a5eaed0d286dbbdcad0285c4034d37bb23b
Reviewed-on: https://webrtc-review.googlesource.com/90381
Commit-Queue: WebRTC Buildbot <buildbot@webrtc.org>
Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24089}
2018-07-25 01:20:47 +00:00
ef933a1187 Roll chromium_revision 83a1a9edda..e56ee1dd51 (577482:577600)
Change log: 83a1a9edda..e56ee1dd51
Full diff: 83a1a9edda..e56ee1dd51

Changed dependencies:
* src/base: ac9a51f0e7..e1ef15da84
* src/build: d1e53db8d5..5c826e4ada
* src/ios: b10e8bf6f4..058bccbc0e
* src/testing: 91f3c05cfb..79478a36f3
* src/third_party: 5420c5e592..b7774bf396
* src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/2a64e6b6d5..ca2b32c844
* src/tools: 5166609d59..2430528a18
DEPS diff: 83a1a9edda..e56ee1dd51/DEPS

No update to Clang.

TBR=buildbot@webrtc.org,
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Change-Id: I18e03bc524b424605d2f93b2c451a543cab57c99
Reviewed-on: https://webrtc-review.googlesource.com/90280
Commit-Queue: WebRTC Buildbot <buildbot@webrtc.org>
Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24088}
2018-07-24 18:24:16 +00:00
715cc238d2 Refactor VP9 decoder color space code
Bug: webrtc:9522
Change-Id: I4106fd1d1386156e0c5b80f77763643694ead284
Reviewed-on: https://webrtc-review.googlesource.com/90182
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Emircan Uysaler <emircan@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24087}
2018-07-24 18:17:06 +00:00
fad2aa23b4 Extract color space from Vp8 decoder
Makes use of ColorSpace class to extract info from Vp8 stream.

Bug: webrtc:9522
Change-Id: Id9d46eeea5497c4da31db27bfcf2743612ae4157
Reviewed-on: https://webrtc-review.googlesource.com/90183
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Emircan Uysaler <emircan@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24086}
2018-07-24 17:21:06 +00:00
d4c16b131f Extract color space from H264 decoder
Makes use of ColorSpace class to extract info from H264 stream.

Bug: webrtc:9522
Change-Id: I651d16707260bb2867b1eda95dd4956d62c47279
Reviewed-on: https://webrtc-review.googlesource.com/90180
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Niklas Enbom <niklas.enbom@webrtc.org>
Commit-Queue: Emircan Uysaler <emircan@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24085}
2018-07-24 17:07:16 +00:00
e09e6ef947 Reorder sdk/android/BUILD.gn.
sdk/android/BUILD.gn has grown quite big and some structure is needed.
Since git blame history was already disturbed by a recent CL, this
is a good moment to do this.

This CL doesn't include any functional changes, it just reorders
targets.

Bug: webrtc:9048
Change-Id: I339ccb0da40fdc50b3f3f3b6b085a8cf0f591a1b
Reviewed-on: https://webrtc-review.googlesource.com/90046
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Reviewed-by: Paulina Hensman <phensman@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24084}
2018-07-24 12:51:41 +00:00
b1222c203e Plot RTCP SR and RR contents in event_log_visualizer.
Plot the contents of all report blocks in all sender and receiver reports.
This includes fraction lost, cumulative number of lost packets, extended
highest sequence number and time since last received SR.

Bug: None
Change-Id: Ifbded689a666da140c468e11c33b6c6f99a3041e
Reviewed-on: https://webrtc-review.googlesource.com/90247
Reviewed-by: Alex Narest <alexnarest@webrtc.org>
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24083}
2018-07-24 12:34:41 +00:00
5f4840a2d8 Roll chromium_revision bc85519482..83a1a9edda (577382:577482)
Change log: bc85519482..83a1a9edda
Full diff: bc85519482..83a1a9edda

Changed dependencies:
* src/base: 9d9a8a2029..ac9a51f0e7
* src/ios: db2dd8dbf5..b10e8bf6f4
* src/testing: 229f593af0..91f3c05cfb
* src/third_party: 7146e00b2b..5420c5e592
* src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/6a1002b4d9..2a64e6b6d5
* src/third_party/depot_tools: 5ba1e9caee..6ec6d27f2d
* src/tools: 451be49ead..5166609d59
DEPS diff: bc85519482..83a1a9edda/DEPS

No update to Clang.

TBR=buildbot@webrtc.org,
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Change-Id: I601dbef927c58cdf14b530910e6c904324ed75c7
Reviewed-on: https://webrtc-review.googlesource.com/90229
Commit-Queue: WebRTC Buildbot <buildbot@webrtc.org>
Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24082}
2018-07-24 12:14:30 +00:00
8ff433a133 Move portaudio to proper third_party directory
Bug: webrtc:8366
Change-Id: I2a6464c5097840219825fe08dde9630f2231451a
Reviewed-on: https://webrtc-review.googlesource.com/84581
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Reviewed-by: Niklas Enbom <niklas.enbom@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24081}
2018-07-24 12:13:25 +00:00
903bd4145f Move VideoCapturer to video_api and cleanup.
This should only be landed after clients have been given time to
upgrade to the new interface.

Bug: webrtc:9496, webrtc:9181
Change-Id: Ideb37637d9f0b9a3a9748811879c263c64f81d11
Reviewed-on: https://webrtc-review.googlesource.com/87308
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Reviewed-by: Paulina Hensman <phensman@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24080}
2018-07-24 10:38:57 +00:00
213618e37e New api function CreateVideoStreamEncoder.
Bug: webrtc:8830
Change-Id: I01de86f601e48f76e6b41b4182ce006d397a190c
Reviewed-on: https://webrtc-review.googlesource.com/78260
Commit-Queue: Niels Moller <nisse@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24079}
2018-07-24 09:14:26 +00:00
e507b0ce8e Turn off comfort noise generation by default in AECM
All clients who do not own their own APM turn it off by default
(in WebrtcVoiceEngine). AECM with comfort noise is a little-exercised
code path. Configurability of this setting is going away, so we're
better off disabling it by default.

Bug: webrtc:9535
Change-Id: Iba839aa18e79ae29ff20bdf6e30de77870ba4143
Reviewed-on: https://webrtc-review.googlesource.com/89583
Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org>
Reviewed-by: Alex Loiko <aleloi@webrtc.org>
Commit-Queue: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24078}
2018-07-24 08:52:36 +00:00
e9b1854b69 Adding missing dependencies on absl.
Bug: None
Change-Id: I8b429bd3e590bebfb58c622eb750490e7c062b3f
Reviewed-on: https://webrtc-review.googlesource.com/90241
Reviewed-by: Oleh Prypin <oprypin@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24077}
2018-07-24 08:50:26 +00:00
25cc8ad198 Fixed issue with BGRA RTCCVPixelBuffer scale and crop
BGRA RTCCVPixelBuffers were cropped and scaled incorrectly. Libyuv’s
`ARGBScale` method is used in RTCCVPixelBuffer to scale and crop the
pixel buffer. To crop by `cropX` and `cropY` pixels, pointer
arithmetic is used to offset the src pointer of the original pixel
buffer bytes. There is a bug in how this offset is calculated.

The offset is done by `src += srcStride * _cropY + _cropX`. Libyuv
expects that the src pointer will point to the start of a new pixel.
However, if _cropX is a not a multiple of 4 (4 bytes for BGRA), the src
pointer will point to a byte in the middle of a pixel and thus libyuv
will incorrectly treat the data as the start of pixel (incorrectly
treating the first byte as red when it is actually green, etc...). To
fix this, the src pointer needs to be offset to always point to the
start of a new pixel.

Before this change:

Original Test Gradient image with a cropX of 2:
https://i.imgur.com/gSIgwGV.jpg

Scaled image (notice the colors are incorrect):
https://i.imgur.com/oPxbTEK.jpg

After this change:

Scaled image (notice the colors are correct):
https://i.imgur.com/dqBsmsH.jpg

A new unit test which tests scaling with cropX and cropY values has been
added. The test fails without this change and now passes with the
correct src pointer offsetting.

Bug: webrtc:9555
Change-Id: I87cbd7b91bc139d51fb4e11cc50ccb014cfa8051
Reviewed-on: https://webrtc-review.googlesource.com/89220
Commit-Queue: Kári Helgason <kthelgason@webrtc.org>
Reviewed-by: Kári Helgason <kthelgason@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24076}
2018-07-24 08:23:26 +00:00
dcff0bd78e Roll chromium_revision 0aff707f8b..bc85519482 (577150:577382)
Change log: 0aff707f8b..bc85519482
Full diff: 0aff707f8b..bc85519482

Changed dependencies:
* src/base: b248ecfd20..9d9a8a2029
* src/build: 8722404761..d1e53db8d5
* src/ios: bee9cb68bf..db2dd8dbf5
* src/testing: 56a8dd1354..229f593af0
* src/third_party: 88170e1414..7146e00b2b
* src/third_party/android_deps/repository/android_arch_core_common: version:1.0.0-cr0..version:1.0.0-cr1
* src/third_party/android_deps/repository/android_arch_lifecycle_common: version:1.0.0-cr0..version:1.0.0-cr1
* src/third_party/android_deps/repository/android_arch_lifecycle_runtime: version:1.0.0-cr0..version:1.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_animated_vector_drawable: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_appcompat_v7: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_cardview_v7: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_design: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_gridlayout_v7: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_leanback_v17: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_mediarouter_v7: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_multidex: version:1.0.0-cr0..version:1.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_palette_v7: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_preference_leanback_v17: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_preference_v14: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_preference_v7: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_recyclerview_v7: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_support_annotations: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_support_compat: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_support_core_ui: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_support_core_utils: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_support_fragment: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_support_media_compat: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_support_v13: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_support_v4: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_support_vector_drawable: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/android_deps/repository/com_android_support_transition: version:27.0.0-cr0..version:27.0.0-cr1
* src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/9e8a0b2b37..6a1002b4d9
* src/third_party/depot_tools: 7e3c67f2c3..5ba1e9caee
* src/third_party/icu: a9a2bd3ee4..297a4dd02b
* src/tools: 1258e6e51f..451be49ead
* src/tools/swarming_client: 9a518d097d..486c9b53c4
DEPS diff: 0aff707f8b..bc85519482/DEPS

No update to Clang.

TBR=buildbot@webrtc.org,
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Change-Id: Ie569612509c6a1d1d158d4adfdaf442655953ca3
Reviewed-on: https://webrtc-review.googlesource.com/90181
Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org>
Commit-Queue: WebRTC Buildbot <buildbot@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24075}
2018-07-24 01:22:53 +00:00
27ab0e5ee5 Add CreateIceCandidate overload which takes a cricket::Candidate
This gives clients a clear way to create an IceCandidateInterface
instance for use with PeerConnection from a parsed
cricket::Candidate structure.

Previously, the only way was with the JsepIceCandidate constructor,
but this CL will allow us to move that class out of the API.

Bug: webrtc:9544
Change-Id: Idfc1f1e0f5ee4c68d94599aae3fb824b23189a7c
Reviewed-on: https://webrtc-review.googlesource.com/90121
Reviewed-by: Seth Hampson <shampson@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24074}
2018-07-23 23:49:44 +00:00
4206a0a849 Exposing video bitrate allocator into API
In order to have public video bitrate allocator factory, the video bitrate allocator has be part of
the api.

Bug: webrtc:9513
Change-Id: Ia2e5ab9eb988c710c1ac492afccc470a92544aa2
Reviewed-on: https://webrtc-review.googlesource.com/88083
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Reviewed-by: Rasmus Brandt <brandtr@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Jiawei Ou <ouj@fb.com>
Cr-Commit-Position: refs/heads/master@{#24073}
2018-07-23 21:23:21 +00:00
f7a64ecfa3 Change DtlsTransport to use a ThreadChecker
Bug: None
Change-Id: I7d628f6b22149e2d178ada9c07a390cbecdfc095
Reviewed-on: https://webrtc-review.googlesource.com/89681
Reviewed-by: Qingsi Wang <qingsi@webrtc.org>
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24072}
2018-07-23 19:36:02 +00:00
ea1bb35e27 Cleanup networkroute.h
This change removes the constructors in favor of naming the fields
of the struct.

TBR=kwiberg@webrtc.org

Bug: None
Change-Id: I23ae1165c20994d2efef10184570065957b279af
Reviewed-on: https://webrtc-review.googlesource.com/90081
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Qingsi Wang <qingsi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24071}
2018-07-23 19:35:28 +00:00
24db573bea Step 1: Add RemoveTrackNew which returns an RTCError
Bug: webrtc:9534
Change-Id: I400bdcd0eb2e993b3f2252a2c7606cd105854e6b
Reviewed-on: https://webrtc-review.googlesource.com/89480
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24070}
2018-07-23 19:34:59 +00:00
a76af0ca2e Move base64.h to the proper location.
Move base64.h to the proper location and put redirect header into the
old place to be able to switch downstream users on new location.

Bug: webrtc:8366
Change-Id: I5191fe631d32178d2efd1315ca9abd4250102291
Reviewed-on: https://webrtc-review.googlesource.com/88223
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24069}
2018-07-23 15:40:36 +00:00
5d7a4c6692 Fixing py lint errors
Bug: webrtc:9548
Change-Id: I0daf8dc06fdaac1637c32994ef6ad542ed52202a
Reviewed-on: https://webrtc-review.googlesource.com/90045
Reviewed-by: Oleh Prypin <oprypin@webrtc.org>
Reviewed-by: Niklas Enbom <niklas.enbom@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24068}
2018-07-23 15:28:48 +00:00
2a959d96c9 Revert "Add one-stop-shop for built-in AEC toggling in APM"
This reverts commit 771b50ca0b92477ce8aabba025e959790dd1a949.

Reason for revert: Introduces error-prone config.

Original change's description:
> Add one-stop-shop for built-in AEC toggling in APM
> 
> This does not change what AEC functionality is available.
> However, a client that only uses this interface - and not the submodule
> pointer accessors - gets simpler code, and is guaranteed not to run any
> two AECs in tandem.
> 
> The submodule interface EchoControlMobile is being deprecated in
> https://webrtc-review.googlesource.com/c/src/+/89392
> 
> Bug: webrtc:9535
> Change-Id: Id9326074e566be6d8768010fc421c457beff402c
> Reviewed-on: https://webrtc-review.googlesource.com/89386
> Commit-Queue: Sam Zackrisson <saza@webrtc.org>
> Reviewed-by: Per Åhgren <peah@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#24066}

TBR=saza@webrtc.org,peah@webrtc.org

Change-Id: I43283a1b22538a4caa77313499989146b2ce67f1
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: webrtc:9535
Reviewed-on: https://webrtc-review.googlesource.com/90060
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Commit-Queue: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24067}
2018-07-23 14:48:17 +00:00
771b50ca0b Add one-stop-shop for built-in AEC toggling in APM
This does not change what AEC functionality is available.
However, a client that only uses this interface - and not the submodule
pointer accessors - gets simpler code, and is guaranteed not to run any
two AECs in tandem.

The submodule interface EchoControlMobile is being deprecated in
https://webrtc-review.googlesource.com/c/src/+/89392

Bug: webrtc:9535
Change-Id: Id9326074e566be6d8768010fc421c457beff402c
Reviewed-on: https://webrtc-review.googlesource.com/89386
Commit-Queue: Sam Zackrisson <saza@webrtc.org>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24066}
2018-07-23 14:12:26 +00:00
33a373a160 Roll chromium_revision 5e7b1029e2..0aff707f8b (577041:577150)
Change log: 5e7b1029e2..0aff707f8b
Full diff: 5e7b1029e2..0aff707f8b

Changed dependencies:
* src/base: bec9f4d210..b248ecfd20
* src/build: 12f8eab7fa..8722404761
* src/ios: 66f07fd00e..bee9cb68bf
* src/testing: 33ad55369b..56a8dd1354
* src/third_party: 166245f481..88170e1414
* src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/ddcfa34d6a..9e8a0b2b37
* src/third_party/depot_tools: 60b9b6fb91..7e3c67f2c3
* src/tools: b2b917f66e..1258e6e51f
DEPS diff: 5e7b1029e2..0aff707f8b/DEPS

No update to Clang.

TBR=buildbot@webrtc.org,
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Change-Id: Ie907db53ded98b0bfbc92bc858d2ffa69737e085
Reviewed-on: https://webrtc-review.googlesource.com/90035
Commit-Queue: WebRTC Buildbot <buildbot@webrtc.org>
Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24065}
2018-07-23 12:14:45 +00:00
71ebf99768 AEC3: Added dumping to wav files for the filter outputs
Bug: webrtc:8671
Change-Id: I9b16ec2fca73894ec26b1cb2b88354ea8d947bf5
Reviewed-on: https://webrtc-review.googlesource.com/88760
Commit-Queue: Per Åhgren <peah@webrtc.org>
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24064}
2018-07-23 10:43:23 +00:00
da04e06e04 Fix paths that were trying to go above the root by using too many "../.."
This doesn't cause problems because seems like GN just ignores these attempts and confines everything to the root.

Bug: None
Change-Id: Ief50b6e10f3950b319d0bde547f91dcc7f237cda
Reviewed-on: https://webrtc-review.googlesource.com/90041
Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24063}
2018-07-23 10:25:03 +00:00
08410e7162 Remove dead code from videoframe.cc.
Removes dead code that was left by a previous cleanup.

Bug: webrtc:9181
Change-Id: Iad7a747b4b394bfe16767229b7840a49a044c516
Reviewed-on: https://webrtc-review.googlesource.com/90042
Reviewed-by: Paulina Hensman <phensman@webrtc.org>
Commit-Queue: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24062}
2018-07-23 09:48:53 +00:00
fdc0ef11ad Add is_android guard to all Android rule usages.
Android rules contain `assert is_android`.
This didn't cause any problems only because GN doesn't touch files if they are not referenced from the root BUILD.gn file.

Skipping presubmit because this CL triggers a warning even though it's just adding indentation.

No-Presubmit: True
Bug: None
Change-Id: Ifcb8f0e1d47784ff800507f9d560c68e8f78c717
Reviewed-on: https://webrtc-review.googlesource.com/90040
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24061}
2018-07-23 08:25:43 +00:00
3d72f6dac8 Fixing -Wsign-compare errors.
Error example:
absl/types/optional.h:1107:54: error: comparison of integers of
different signs: 'const unsigned long' and 'const int'
[-Werror,-Wsign-compare]
[...]
EXPECT_GT(streams[0].num_temporal_layers, 1);

Bug: None
Change-Id: Ifa84e318e242d0dfb32a4f2166464d91fcc86fb1
Reviewed-on: https://webrtc-review.googlesource.com/89744
Commit-Queue: Erik Språng <sprang@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24060}
2018-07-23 08:06:09 +00:00
94ef424b31 Enable clang::find_bad_constructs for examples/androidnativeapi.
This CL removes //build/config/clang:find_bad_constructs from the
suppressed_configs list, which means that clang:find_bad_constructs
is now enabled on these translation units.

Bug: webrtc:9251, webrtc:163
Change-Id: I9f3c3ce78aa82cbf68f34999b0a7fa9507fe5154
Reviewed-on: https://webrtc-review.googlesource.com/89741
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24059}
2018-07-23 07:47:49 +00:00
0c3ad73948 Roll chromium_revision 86c90e3417..5e7b1029e2 (576937:577041)
Change log: 86c90e3417..5e7b1029e2
Full diff: 86c90e3417..5e7b1029e2

Changed dependencies:
* src/base: 527e5bc8ca..bec9f4d210
* src/build: 385916c37b..12f8eab7fa
* src/ios: f451749ab2..66f07fd00e
* src/testing: 6179ecbab1..33ad55369b
* src/third_party: abf6dd4a4b..166245f481
* src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/213eaf4f79..ddcfa34d6a
* src/third_party/depot_tools: 807abf149a..60b9b6fb91
* src/tools: adba6eefee..b2b917f66e
DEPS diff: 86c90e3417..5e7b1029e2/DEPS

No update to Clang.

TBR=buildbot@webrtc.org,
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Change-Id: I5235754e2df074510ebc26de279794e8602704c4
Reviewed-on: https://webrtc-review.googlesource.com/89920
Commit-Queue: WebRTC Buildbot <buildbot@webrtc.org>
Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24058}
2018-07-21 00:08:32 +00:00
8cf30401eb Adds SSLCertificateVerifier to the Java API.
The native API supports setting an SSLCertificateVerifier that can be used
to provide a custom certificate verifier for incoming SSL certificates. This
change provides this functionality to the Java API so that a Java implementation
can also be provided. It is expected this will only be used in specialized
circumstances and most users will not hit this code path.

Bug: webrtc:9541
Change-Id: Id3c75b8f288333b53edc2959bac533e3ec614978
Reviewed-on: https://webrtc-review.googlesource.com/89500
Commit-Queue: Benjamin Wright <benwright@webrtc.org>
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24057}
2018-07-20 23:11:52 +00:00
2ffed6d65c Enable clang::find_bad_constructs for sdk/android (part 1/2).
This CL removes //build/config/clang:find_bad_constructs from the
suppressed_configs list, which means that clang:find_bad_constructs
is now enabled on these translation units.

Bug: webrtc:9251, webrtc:163, webrtc:9544
Change-Id: I7c211c4ac6b2e095e4c6594fce09fdb487bb1d9e
Reviewed-on: https://webrtc-review.googlesource.com/89600
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24056}
2018-07-20 21:35:40 +00:00
97ddbd7eba Roll chromium_revision 7002a7d325..86c90e3417 (576827:576937)
Change log: 7002a7d325..86c90e3417
Full diff: 7002a7d325..86c90e3417

Changed dependencies:
* src/base: 7a4b976892..527e5bc8ca
* src/ios: 3f7fca5a21..f451749ab2
* src/testing: 4ac422c8dc..6179ecbab1
* src/third_party: 51f80a467b..abf6dd4a4b
* src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/d26f5c315d..213eaf4f79
* src/third_party/depot_tools: 3899f1bcce..807abf149a
* src/tools: 4cccf20a0a..adba6eefee
DEPS diff: 7002a7d325..86c90e3417/DEPS

No update to Clang.

TBR=buildbot@webrtc.org,
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Change-Id: I8deb0d67cb82447695b2cda460bed480497571f4
Reviewed-on: https://webrtc-review.googlesource.com/89820
Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org>
Commit-Queue: WebRTC Buildbot <buildbot@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24055}
2018-07-20 19:27:30 +00:00
99f1e0d008 Reset level estimator when analog gain changes.
In AgcManagerDirect::UpdateGain(), Agc::GetRmsErrorDb() is
called. Depending on the result of that call, the analog gain may be
changed. After an analog gain change, the Agc should be reset, because
it's memory contains now invalid loudness levels.

The Agc in modules/audio_processing/agc/agc.cc resets itself at every
successful Agc::GetRmsErrorDb call. The AdaptiveModeLevelEstimatorAgc
does not. This change makes sure all Agcs are reset from
AgcManagerDirect.

It will cause some Agcs to be reset twice. This is fine, because
Agc::Reset() is cheap and idempotent.

Bug: webrtc:7494
Change-Id: Iee7495d699cbdb9d69b2ae0cb07034c6e2761e22
Reviewed-on: https://webrtc-review.googlesource.com/89040
Commit-Queue: Alex Loiko <aleloi@webrtc.org>
Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24054}
2018-07-20 14:18:38 +00:00
682aac5103 Enable clang::find_bad_constructs for audio_coding (part 1/2).
This CL removes //build/config/clang:find_bad_constructs from the
suppressed_configs list, which means that clang:find_bad_constructs
is now enabled on these translation units.

Bug: webrtc:9251, webrtc:163
Change-Id: I6a7d4964723a5e195189aac30a83d9e924e61dd7
Reviewed-on: https://webrtc-review.googlesource.com/89743
Reviewed-by: Oskar Sundbom <ossu@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24053}
2018-07-20 13:07:47 +00:00
5e6dcb2e64 Enable clang::find_bad_constructs for api/video/test.
This CL removes //build/config/clang:find_bad_constructs from the
suppressed_configs list, which means that clang:find_bad_constructs
is now enabled on these translation units.

TBR: magjed@webrtc.org
Bug: webrtc:9251, webrtc:163
Change-Id: Ida449dae66ed5a9e1b36b14a988dee8ecfbea18f
Reviewed-on: https://webrtc-review.googlesource.com/89582
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24052}
2018-07-20 12:41:07 +00:00
486cb18531 Enable clang::find_bad_constructs for rtc_tools (part 1/2).
This CL removes //build/config/clang:find_bad_constructs from the
suppressed_configs list, which means that clang:find_bad_constructs
is now enabled on these translation units.

Bug: webrtc:9251, webrtc:163
Change-Id: I9c26b6129db24263f1aada9561f477db64091049
Reviewed-on: https://webrtc-review.googlesource.com/89742
Reviewed-by: Oleh Prypin <oprypin@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24051}
2018-07-20 12:01:37 +00:00
f6c238296e Roll chromium_revision bc3d35fc98..7002a7d325 (576524:576827)
Change log: bc3d35fc98..7002a7d325
Full diff: bc3d35fc98..7002a7d325

Changed dependencies:
* src/base: 6a6abe13bd..7a4b976892
* src/build: 285468b3f0..385916c37b
* src/ios: b374ca3a47..3f7fca5a21
* src/testing: f6bf62cd50..4ac422c8dc
* src/third_party: b572db88bc..51f80a467b
* src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/2ec2b508e6..d26f5c315d
* src/third_party/depot_tools: 2c984a03ca..3899f1bcce
* src/tools: 9e8d165b29..4cccf20a0a
DEPS diff: bc3d35fc98..7002a7d325/DEPS

Clang version changed 336424:337439
Details: bc3d35fc98..7002a7d325/tools/clang/scripts/update.py

TBR=buildbot@webrtc.org,
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Change-Id: I6b28177ee8356b84aac09eeeaad0ffc017d61e31
Reviewed-on: https://webrtc-review.googlesource.com/89780
Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org>
Commit-Queue: WebRTC Buildbot <buildbot@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24050}
2018-07-20 11:28:14 +00:00
64f813e71f Enable clang::find_bad_constructs for remote_bitrate_estimator.
This CL removes //build/config/clang:find_bad_constructs from the
suppressed_configs list, which means that clang:find_bad_constructs
is now enabled on these translation units.

Bug: webrtc:9251, webrtc:163
Change-Id: Id377fcd78166e53aad7c663c3ffec5e57fdb1274
Reviewed-on: https://webrtc-review.googlesource.com/89383
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24049}
2018-07-20 10:26:07 +00:00
ee01a839d2 Remove MetricsObserverInterface.
The usage of MetricsObserverInterface to log metrics has been replaced
by RTC_HISTOGRAM_* macros in WebRTC.

Bug: webrtc:9409
Change-Id: I67df74a18942ac7ea4227e4affdf84f06258a287
Reviewed-on: https://webrtc-review.googlesource.com/86780
Commit-Queue: Qingsi Wang <qingsi@google.com>
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Qingsi Wang <qingsi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24048}
2018-07-19 23:00:20 +00:00
a6bec58642 Enabling clang::find_bad_constructs for desktop_capture.
This CL removes //build/config/clang:find_bad_constructs from the
suppressed_configs list, which means that clang:find_bad_constructs
is now enabled on these translation units.

Bug: webrtc:9251, webrtc:163
Change-Id: I7ad7b03ae1b28fbf5712e671f361928c5e6d7a18
Reviewed-on: https://webrtc-review.googlesource.com/89384
Reviewed-by: Sergey Ulanov <sergeyu@google.com>
Reviewed-by: Sergey Ulanov <sergeyu@chromium.org>
Commit-Queue: Sergey Ulanov <sergeyu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#24047}
2018-07-19 19:01:39 +00:00
e12e68cc4e [Window capture] filter out sibling windows with same title.
On Windows, some app windows (i.e. Window Media Player) seems
consisting of several sibling windows, with same window title as the
main window and from same process. Currently CroppingWindowCapturerWin
will think the selected window is overlapped by those windows and
switch to GDI capture method, which is not well supported by many Apps
on Win10 and will fail the window capture.

This cl is to extend the current null title check to include the case
that window has same title as the selected window.

Bug: chromium:865193
Change-Id: Id16b21596ab3b870197758679e5406138ac1a432
Reviewed-on: https://webrtc-review.googlesource.com/89501
Commit-Queue: Brave Yao <braveyao@webrtc.org>
Reviewed-by: Jamie Walch <jamiewalch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#24046}
2018-07-19 18:45:59 +00:00
3890262ac5 Reland "Removing unneeded dependency."
This is a reland of 06f66c72600e58438ba9caf9f523e00a519ef3c0

Original change's description:
> Removing unneeded dependency.
>
> The //audio build target does not depend on the
> builtin_audio_encoder_factory, this CL removes it from the dependency
> list in order to avoid to propagate symbols that are not supposed to
> be there.
>
> Bug: webrtc:9528
> Change-Id: Ib3868ee93f61057f61283faaa83e0633ebfdea90
> Reviewed-on: https://webrtc-review.googlesource.com/89002
> Reviewed-by: Yves Gerey <yvesg@webrtc.org>
> Reviewed-by: Oskar Sundbom <ossu@webrtc.org>
> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#24019}

TBR: yvesg@webrtc.org
Bug: webrtc:9528
Change-Id: I696140d5255c659de69430a2c24fcb364eed3c19
Reviewed-on: https://webrtc-review.googlesource.com/89401
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24045}
2018-07-19 18:23:49 +00:00
0b8457e99b Roll chromium_revision ecaca1be48..bc3d35fc98 (576410:576524)
Change log: ecaca1be48..bc3d35fc98
Full diff: ecaca1be48..bc3d35fc98

Changed dependencies:
* src/base: 43bda94696..6a6abe13bd
* src/build: abdb54839b..285468b3f0
* src/ios: 82df8ad632..b374ca3a47
* src/testing: 3557e864e2..f6bf62cd50
* src/third_party: bf9cc5f195..b572db88bc
* src/third_party/catapult: https://chromium.googlesource.com/catapult.git/+log/c3318d5f36..2ec2b508e6
* src/tools: 170baba7f7..9e8d165b29
DEPS diff: ecaca1be48..bc3d35fc98/DEPS

No update to Clang.

TBR=buildbot@webrtc.org,
BUG=None
CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal

Change-Id: I9de16a3e854f2945a5dad86a7c83ab6248cd1e80
Reviewed-on: https://webrtc-review.googlesource.com/89640
Reviewed-by: WebRTC Buildbot <buildbot@webrtc.org>
Commit-Queue: WebRTC Buildbot <buildbot@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24044}
2018-07-19 17:07:18 +00:00
0a77889601 Follow "Migrate the Android Support Lib to android_deps" from Chromium
This is a copy of b8736d858c

We probably don't need most of this but the build loudly screams without all those files, so whatever...

Bug: webrtc:9118
Change-Id: I5df54b4857eee9a2bcf8dea05e36f009570a0e21
Reviewed-on: https://webrtc-review.googlesource.com/89586
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Oleh Prypin <oprypin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24043}
2018-07-19 12:46:02 +00:00
1291225542 Expose audio codec factories in libwebrtc.
This explicitly exposes the following functions,
without relying on (wrong) transitive dependency.
* CreateBuiltinAudioDecoderFactory()
* CreateBuiltinAudioEncoderFactory()

Manual check:
% gn gen out/test && ninja -C out/test webrtc
% nm -C out/test/obj/libwebrtc.a | grep CreateBuiltinAudio
0000000000000000 T webrtc::CreateBuiltinAudioDecoderFactory()
0000000000000000 T webrtc::CreateBuiltinAudioEncoderFactory()

Bug: webrtc:9528
Change-Id: I0d2b0a8294dc90b553a7dff9045ea6e4f0d0d416
Reviewed-on: https://webrtc-review.googlesource.com/89062
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Yves Gerey <yvesg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24042}
2018-07-19 12:39:02 +00:00
e714ed6427 Fuzzer finds fixedpoint failure.
A 32-bit number overflows. It's then capped to compute a 16-bit value.
This CL introduces a 64-bit variable on which equivalent operations are
performed instead.

Bug: chromium:864883
Change-Id: I371af869c6586256b900356491f467bed357e11d
Reviewed-on: https://webrtc-review.googlesource.com/89584
Reviewed-by: Sam Zackrisson <saza@webrtc.org>
Commit-Queue: Alex Loiko <aleloi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#24041}
2018-07-19 12:11:22 +00:00