14628 Commits

Author SHA1 Message Date
zhihuang
c63b894686 Modify the parameter type of PeerConnectionObserver callback OnAddTrack.
Change the second parameter type to a const reference of vector so that
the vector will not be copied.

BUG=none

Review-Url: https://codereview.webrtc.org/2551603003
Cr-Commit-Position: refs/heads/master@{#15396}
2016-12-02 23:41:15 +00:00
buildbot
d5c93e0be1 Roll chromium_revision 5e077354e9..f857831468 (435981:436038)
Change log: 5e077354e9..f857831468
Full diff: 5e077354e9..f857831468

Changed dependencies:
* src/third_party/catapult: b4479b33ca..8d05c456e6
DEPS diff: 5e077354e9..f857831468/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2551623002
Cr-Commit-Position: refs/heads/master@{#15395}
2016-12-02 22:18:36 +00:00
deadbeef
2e59a02dd4 Revert of Use different restrictions of acked bitrate lag depending on operating point. (patchset #3 id:40001 of https://codereview.webrtc.org/2542083003/ )
Reason for revert:
Appears to cause a regression to RampUpTest.SendSideAudioOnlyUpDownUpRtx:

https://build.chromium.org/p/client.webrtc.perf/builders/Android32%20Tests%20%28L%20Nexus6%29/builds/626

Original issue's description:
> Use different restrictions of acked bitrate lag depending on operating point.
>
> Before this the BWE was allowed to operate freely up to 100 kbps. This isn't a good idea for audio BWE.
>
> BUG=webrtc:5079
>
> Committed: https://crrev.com/5932149c9aeaa7679ad0bc3183047766832ca907
> Cr-Commit-Position: refs/heads/master@{#15389}

TBR=terelius@webrtc.org,stefan@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:5079

Review-Url: https://codereview.webrtc.org/2547113002
Cr-Commit-Position: refs/heads/master@{#15394}
2016-12-02 19:29:41 +00:00
buildbot
ef0cd5621d Roll chromium_revision 58c06a5f1b..5e077354e9 (435946:435981)
Change log: 58c06a5f1b..5e077354e9
Full diff: 58c06a5f1b..5e077354e9

Changed dependencies:
* src/third_party/catapult: e4611d2994..b4479b33ca
DEPS diff: 58c06a5f1b..5e077354e9/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2544343002
Cr-Commit-Position: refs/heads/master@{#15393}
2016-12-02 19:07:52 +00:00
sergeyu
9cef11b75e Fix exponential probing in ProbeController.
https://codereview.webrtc.org/2504023002 broke exponential probing.
After that change ProbeController stops exponential probes prematurely:
it goes to kProbingComplete state if SetEstimatedBitrate() is called
with bitrate lower than min_bitrate_to_probe_further_bps_, which always
happens with the first pair of probes. As result it wasn't sending
repeated probes as it should. This change fixes that issue by moving
probe expieration logic to ProbeContoller::Process(). This also ensures
that the controller goes to kProbingComplete state as soon as probing
timeout expired, without waiting for the next SetEstimatedBitrate()
call.

BUG=669421

Review-Url: https://codereview.webrtc.org/2546613003
Cr-Commit-Position: refs/heads/master@{#15392}
2016-12-02 19:03:08 +00:00
buildbot
5e6c52c0ce Roll chromium_revision dd10720676..58c06a5f1b (435924:435946)
Change log: dd10720676..58c06a5f1b
Full diff: dd10720676..58c06a5f1b

Changed dependencies:
* src/third_party/catapult: 36566ddb1d..e4611d2994
DEPS diff: dd10720676..58c06a5f1b/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2551483002
Cr-Commit-Position: refs/heads/master@{#15391}
2016-12-02 17:05:08 +00:00
asapersson
4eb03c76fa Turn off error resilience for VP9 if no spatial or temporal layers are configured and NACK is enabled.
Error resilience is currently always enabled for VP9 which reduces quality.

BUG=webrtc:6783

Review-Url: https://codereview.webrtc.org/2532053002
Cr-Commit-Position: refs/heads/master@{#15390}
2016-12-02 16:58:02 +00:00
stefan
5932149c9a Use different restrictions of acked bitrate lag depending on operating point.
Before this the BWE was allowed to operate freely up to 100 kbps. This isn't a good idea for audio BWE.

BUG=webrtc:5079

Review-Url: https://codereview.webrtc.org/2542083003
Cr-Commit-Position: refs/heads/master@{#15389}
2016-12-02 16:46:32 +00:00
sprang
a790d834c9 Wire up rtcp xr target bitrate on receive side.
BUG=webrtc:6301

Review-Url: https://codereview.webrtc.org/2540363003
Cr-Commit-Position: refs/heads/master@{#15388}
2016-12-02 15:29:48 +00:00
buildbot
9afbfc00d8 Roll chromium_revision f50152dfc4..dd10720676 (435897:435924)
Change log: f50152dfc4..dd10720676
Full diff: f50152dfc4..dd10720676

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2545033002
Cr-Commit-Position: refs/heads/master@{#15387}
2016-12-02 13:12:44 +00:00
charujain
0f01c7f930 Added tool for reference less video analysis (go/refless-video-analysis)
This tool takes list of video file names as input and calculates freezing metrics score for the video files without having reference to original video by comparing the PSNR and SSIM values of current and previous frame.

BUG=webrtc:6759

Review-Url: https://codereview.webrtc.org/2515253004
Cr-Commit-Position: refs/heads/master@{#15386}
2016-12-02 13:00:10 +00:00
nisse
b2250e5dbb New gn target video_frame_api.
This is in preparation for https://codereview.webrtc.org/2517173004/,
which needs some updates of downstream dependencies. This cl adds the
target to api/BUILD.gn, creates the directory api/video, and a single
harmless include file there.

BUG=webrtc:5880

Review-Url: https://codereview.webrtc.org/2546723003
Cr-Commit-Position: refs/heads/master@{#15385}
2016-12-02 12:01:21 +00:00
kjellander
969b12f6aa Remove xdisplaycheck
The tool is no longer needed and will be removed in Chromium.

BUG=chromium:670470

Review-Url: https://codereview.webrtc.org/2548763002
Cr-Commit-Position: refs/heads/master@{#15384}
2016-12-02 11:30:51 +00:00
howtofly
df28e47a4b fix coding and documentary ambiguity in AimdRateControl::TimeToReduceFurther.
BUG=webrtc:6812

Review-Url: https://codereview.webrtc.org/2549453002
Cr-Commit-Position: refs/heads/master@{#15383}
2016-12-02 11:27:18 +00:00
henrik.lundin
a28a1b9db6 Disable P2PTestConductor.LocalP2PTestDtlsBundleInIceRestart under msan
The test is flaky.

BUG=webrtc:6811
TBR=deadbeef@webrtc.org

Review-Url: https://codereview.webrtc.org/2546913003
Cr-Commit-Position: refs/heads/master@{#15382}
2016-12-02 10:59:37 +00:00
magjed
5c71166dff VP8DecoderImpl: Fix uninitialized memory crash
It is not safe to call vpx_codec_destroy if vpx_codec_dec_init failed,
because the |decoder_| memory will be uninitialized. See the bug for
more info.

BUG=chromium:663293

Review-Url: https://codereview.webrtc.org/2541163007
Cr-Commit-Position: refs/heads/master@{#15381}
2016-12-02 10:46:26 +00:00
ossu
00bceb1eda Deprecated SetAudioPacketSize from RTPSender and removed calls to it.
The packet size was only used to control how often to output DTMF
packets. However, it likely did not work as intended, since that
interval was only set during initialization. No changes to the packet
size, like what AudioEncoder::Num10MsFramesInNextPacket could
indicate, were picked up. The value was instead taken from an entry in
ACMCodecDB.

Since it was not-fully-functional, its exact value didn't seem to
matter and it was getting in the way of making it possible to supply
an external audio encoder factory, I've decided to remove it
altogether. The DTMF code now uses an interval of 50 ms regardless,
which is a value recommended by the RFC.

BUG=webrtc:5806

Review-Url: https://codereview.webrtc.org/2545753002
Cr-Commit-Position: refs/heads/master@{#15380}
2016-12-02 10:40:12 +00:00
henrik.lundin
e066b302ab Remove API-related #defines from voice_engine_configurations.h
BUG=webrtc:6506
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_rel_ng;master.tryserver.chromium.mac:mac_chromium_rel_ng,ios-device;master.tryserver.chromium.win:win_chromium_rel_ng;master.tryserver.chromium.android:android_compile_dbg,linux_android_rel_ng

Review-Url: https://codereview.webrtc.org/2549443002
Cr-Commit-Position: refs/heads/master@{#15379}
2016-12-02 10:30:23 +00:00
buildbot
15cf9f92ac Roll chromium_revision 601e4f48a3..f50152dfc4 (435870:435897)
Change log: 601e4f48a3..f50152dfc4
Full diff: 601e4f48a3..f50152dfc4

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2548793002
Cr-Commit-Position: refs/heads/master@{#15378}
2016-12-02 10:07:50 +00:00
kthelgason
b336392562 Sanity check parsed QP values from H264 bitstream
BUG=chromium:663610

Review-Url: https://codereview.webrtc.org/2532973002
Cr-Commit-Position: refs/heads/master@{#15377}
2016-12-02 09:29:53 +00:00
buildbot
864f58b751 Roll chromium_revision 353f713f3d..601e4f48a3 (435846:435870)
Change log: 353f713f3d..601e4f48a3
Full diff: 353f713f3d..601e4f48a3

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2545753004
Cr-Commit-Position: refs/heads/master@{#15376}
2016-12-02 07:06:24 +00:00
buildbot
ea3d923bc8 Roll chromium_revision c6d437f401..353f713f3d (435797:435846)
Change log: c6d437f401..353f713f3d
Full diff: c6d437f401..353f713f3d

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2548463004
Cr-Commit-Position: refs/heads/master@{#15375}
2016-12-02 04:09:33 +00:00
buildbot
51cb31c468 Roll chromium_revision 47f73d2d11..c6d437f401 (435727:435797)
Change log: 47f73d2d11..c6d437f401
Full diff: 47f73d2d11..c6d437f401

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2549503005
Cr-Commit-Position: refs/heads/master@{#15374}
2016-12-02 01:07:07 +00:00
deadbeef
b465980fd7 In end-to-end PeerConnection tests, allow video to be downscaled.
QualityScaler may scale down the resolution, so our tests shouldn't
expect the input resolution to exactly match the resolution received on
the other side. Instead, we now just check that the aspect ratio
matches.

BUG=webrtc:5907

Review-Url: https://codereview.webrtc.org/2547673002
Cr-Commit-Position: refs/heads/master@{#15373}
2016-12-02 00:23:36 +00:00
buildbot
897530eb48 Roll chromium_revision bffc40ae72..47f73d2d11 (435660:435727)
Change log: bffc40ae72..47f73d2d11
Full diff: bffc40ae72..47f73d2d11

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2544923002
Cr-Commit-Position: refs/heads/master@{#15372}
2016-12-01 22:07:07 +00:00
deadbeef
8f89bff9a6 Revert of Disabled flaky P2PTestConductor tests on ASAN and MSAN. (patchset #1 id:1 of https://codereview.webrtc.org/2539103002/ )
Reason for revert:
The flaky tests should now be fixed.

Original issue's description:
> Disabled flaky P2PTestConductor tests on ASAN and MSAN.
>
> TBR=deadbeef@webrtc.org
> BUG=webrtc:6776
>
> Committed: https://crrev.com/8d66a5a3b18eef73b238f4220477da265bf4494b
> Cr-Commit-Position: refs/heads/master@{#15324}

TBR=ossu@webrtc.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:6776

Review-Url: https://codereview.webrtc.org/2550453003
Cr-Commit-Position: refs/heads/master@{#15371}
2016-12-01 20:54:28 +00:00
deadbeef
c6b6e09d18 Relaxing timeouts for TestMediaMonitor.
This isn't a performance test, so it may be running in a slow
environment, and shouldn't be subject to strict timeouts.

BUG=webrtc:6801
TBR=pthatcher@webrtc.org

Review-Url: https://codereview.webrtc.org/2539183005
Cr-Commit-Position: refs/heads/master@{#15370}
2016-12-01 20:49:25 +00:00
deadbeef
8f425f9629 Relaxing DCHECK for packets sent before SRTP is enabled.
We still DCHECK for RTP, but not RTCP. RTCP packets can be sent before
offer/answer negotiation is complete, due to this bug:
https://bugs.chromium.org/p/webrtc/issues/detail?id=6809

This bug can only occur if the RTCP mux policy is "require", which is
why we started hitting it recently (the default in unit tests was
recently changed to "require").

BUG=webrtc:6776
TBR=pthatcher@webrtc.org

Review-Url: https://codereview.webrtc.org/2542233002
Cr-Commit-Position: refs/heads/master@{#15369}
2016-12-01 20:26:33 +00:00
buildbot
183d51a67f Roll chromium_revision 3045382d44..bffc40ae72 (435618:435660)
Change log: 3045382d44..bffc40ae72
Full diff: 3045382d44..bffc40ae72

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2542813003
Cr-Commit-Position: refs/heads/master@{#15368}
2016-12-01 19:36:44 +00:00
henrik.lundin
f29e05d774 Add linearly spaced counting histograms
This change adds HistogramFactoryGetCountsLinear and
RTC_HISTOGRAM_COUNTS_LINEAR. Note that the default implementation of
HistogramFactoryGetCounts in metrics_default.cc also provides a
linearly spaced histogram, while the Chrome UMA implementation
provides exponentially spaced buckets.

BUG=none

Review-Url: https://codereview.webrtc.org/2548463002
Cr-Commit-Position: refs/heads/master@{#15367}
2016-12-01 17:58:53 +00:00
danilchap
1454669c1d Cleanup RtpHeaderExtensionMap removing use of two legacy functions
BUG=webrtc:1994

Review-Url: https://codereview.webrtc.org/2491273002
Cr-Commit-Position: refs/heads/master@{#15366}
2016-12-01 16:39:44 +00:00
buildbot
73f2ee2556 Roll chromium_revision a6a331af3e..3045382d44 (435597:435618)
Change log: a6a331af3e..3045382d44
Full diff: a6a331af3e..3045382d44

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2541383002
Cr-Commit-Position: refs/heads/master@{#15365}
2016-12-01 16:17:10 +00:00
terelius
182e4a4aff Remove bitrate cap for AdaptiveVideoSource and increase other caps to 25 Mbps.
AdaptiveVideoSource is used in testing/simulations of the bandwidth estimator.

Nada's reaction to delay depends on the current bitrate and the configured max rate in a non-intuituve way. Increase the starting bitrate to compensate for the increased max bitrate. This is only used in unit tests.

BUG=webrtc:6807

# Presubmit warns about a lint error in bwe.h that's unrelated to my change. Fixing it is beyond the scope of this CL.
NOPRESUBMIT=true

Review-Url: https://codereview.webrtc.org/2542843003
Cr-Commit-Position: refs/heads/master@{#15364}
2016-12-01 15:29:15 +00:00
tandrii
2d9c877c64 Revert of Whitespace.
(patchset #1 id:1 of https://codereview.webrtc.org/2547543002/ )

Reason for revert:
whitespace reverts need no reason.

Original issue's description:
> Whitespace.
>
> BUG=668624
> TBR=kjellander@webrtc.org
> NOTRY=True
> NOPRESUBMIT=True
>
> Committed: https://crrev.com/3b56e1f7b344e3a48b6765962f2e621727ef1519
> Cr-Commit-Position: refs/heads/master@{#15360}

TBR=kjellander@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=668624

Review-Url: https://codereview.webrtc.org/2549523002
Cr-Commit-Position: refs/heads/master@{#15363}
2016-12-01 15:13:07 +00:00
Andrii Shyshkalov
106edaeb85 Revert of Whitespace.
(patchset #1 id:1 of https://codereview.webrtc.org/2547553002/)

Reason for revert:
whitespace reverts need no reason.

Original issue's description:
> Whitespace.
>
> For manual commit.
>
> BUG=668624
> TBR=kjellander@webrtc.org
> NOTRY=True
> NOPRESUBMIT=True
>
> Committed: https://crrev.com/aa7a9a2dc03c11ea6dc52a8424c4485e2f48d650
> Cr-Commit-Position: refs/heads/master@{#15361}

TBR=kjellander@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=668624

Review URL: https://codereview.webrtc.org/2549453003 .

Cr-Commit-Position: refs/heads/master@{#15362}
2016-12-01 15:10:21 +00:00
Andrii Shyshkalov
aa7a9a2dc0 Whitespace.
For manual commit.

BUG=668624
TBR=kjellander@webrtc.org
NOTRY=True
NOPRESUBMIT=True

Review URL: https://codereview.webrtc.org/2547553002 .

Cr-Commit-Position: refs/heads/master@{#15361}
2016-12-01 15:07:13 +00:00
tandrii
3b56e1f7b3 Whitespace.
BUG=668624
TBR=kjellander@webrtc.org
NOTRY=True
NOPRESUBMIT=True

Review-Url: https://codereview.webrtc.org/2547543002
Cr-Commit-Position: refs/heads/master@{#15360}
2016-12-01 15:05:54 +00:00
sprang
1a646ee522 Wire up BitrateAllocation to be sent as RTCP TargetBitrate
This is the video parts of https://codereview.webrtc.org/2531383002/
Wire up BitrateAllocation to be sent as RTCP TargetBitrate

BUG=webrtc:6301

Review-Url: https://codereview.webrtc.org/2541303003
Cr-Commit-Position: refs/heads/master@{#15359}
2016-12-01 14:34:18 +00:00
sprang
5e38c967e0 Wire up RTCP XR target bitrate in rtp/rtcp module
This is breakout of the rtcp parts of
https://codereview.webrtc.org/2531383002/

BUG=webrtc:6301

Review-Url: https://codereview.webrtc.org/2546713002
Cr-Commit-Position: refs/heads/master@{#15358}
2016-12-01 13:18:19 +00:00
buildbot
b57e0f6836 Roll chromium_revision 698c4714e8..a6a331af3e (435589:435597)
Change log: 698c4714e8..a6a331af3e
Full diff: 698c4714e8..a6a331af3e

No dependencies changed.
No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2537303005
Cr-Commit-Position: refs/heads/master@{#15357}
2016-12-01 13:08:54 +00:00
kthelgason
5e13d41124 Remove limit on how often quality scaling downscales
When starting from 720p this is necessary to achieve acceptable
quality at low bitrates.

BUG=webrtc:6495

Review-Url: https://codereview.webrtc.org/2538913003
Cr-Commit-Position: refs/heads/master@{#15356}
2016-12-01 11:59:56 +00:00
kthelgason
86cf9a2474 Increase test timeout to combat flakiness.
These tests have been a little flaky on the bots.
Hopefully increasing the timeout by 200% will help.

BUG=webrtc:6799

Review-Url: https://codereview.webrtc.org/2541743006
Cr-Commit-Position: refs/heads/master@{#15355}
2016-12-01 10:57:07 +00:00
mflodman
e90adcef42 Remove OnLocalSsrcChanged
Removing the unused interface OnLocalSsrcChanged.

BUG=webrtc:6456

Review-Url: https://codereview.webrtc.org/2546703002
Cr-Commit-Position: refs/heads/master@{#15354}
2016-12-01 10:39:49 +00:00
buildbot
847f2948e5 Roll chromium_revision b5ce7e0a17..698c4714e8 (435129:435589)
Change log: b5ce7e0a17..698c4714e8
Full diff: b5ce7e0a17..698c4714e8

Changed dependencies:
* src/buildtools: 991f459071..102c16366d
* src/third_party/boringssl/src: https://boringssl.googlesource.com/boringssl.git/+log/e1cc35e581..f086df9f5f
DEPS diff: b5ce7e0a17..698c4714e8/DEPS

No update to Clang.

TBR=
BUG=None

Review-Url: https://codereview.webrtc.org/2539413002
Cr-Commit-Position: refs/heads/master@{#15353}
2016-12-01 10:23:53 +00:00
magjed
665bc3c7ad Move webrtc/api/androidtests to webrtc/sdk/android/instrumentationtests
BUG=webrtc:5882
NOPRESUBMIT=True

Review-Url: https://codereview.webrtc.org/2541823002
Cr-Commit-Position: refs/heads/master@{#15352}
2016-12-01 09:45:35 +00:00
kthelgason
2bc324cc5a Add method on AVFoundation capturer to adapt output format.
This CL makes a method available on the AVFoundationVideoCapturer
that adapts the output format of captured video to the specified
width and height.

BUG=webrtc:6753

Review-Url: https://codereview.webrtc.org/2528493004
Cr-Commit-Position: refs/heads/master@{#15351}
2016-12-01 09:36:22 +00:00
magjed
dd40702357 Move VideoDecoder::Create() logic to separate internal video decoder factory
The goal with this CL is to move implementation details out from the
webrtc root (webrtc/video_decoder.h) to simplify the dependency graph.
Another goal is to streamline the creation of VideoDecoders in
webrtcvideoengine2.cc; it will now have two factories of the same
WebRtcVideoDecoderFactory type, one internal and one external.

Specifically, this CL:
 * Removes webrtc::VideoDecoder::DecoderType and use webrtc::VideoCodecType
   instead.
 * Removes 'static VideoDecoder* Create(DecoderType codec_type)' and
   moves the create function to the internal decoder factory instead.
 * Removes video_decoder.cc. webrtc::VideoDecoder is now just an
   interface without any static functions.

BUG=webrtc:6743

Review-Url: https://codereview.webrtc.org/2521203002
Cr-Commit-Position: refs/heads/master@{#15350}
2016-12-01 08:27:35 +00:00
brandtr
aa354c9512 Rename full_stack.cc to full_stack_tests.cc.
Also rename the accompanying plot file.

BUG=None

Review-Url: https://codereview.webrtc.org/2529293006
Cr-Commit-Position: refs/heads/master@{#15349}
2016-12-01 08:20:24 +00:00
kthelgason
a974d76c74 Enable VideoToolbox encoder on mac
BUG=webrtc:6317

Review-Url: https://codereview.webrtc.org/2532983006
Cr-Commit-Position: refs/heads/master@{#15348}
2016-12-01 08:16:54 +00:00
Henrik Kjellander
024c90ed90 Whitespace CL to trigger bots.
TBR=ehmaldonado@webrtc.org
BUG=None

Review URL: https://codereview.webrtc.org/2547453002 .

Cr-Commit-Position: refs/heads/master@{#15347}
2016-12-01 07:05:44 +00:00