Commit Graph

9908 Commits

Author SHA1 Message Date
9bc2667fa6 ACM/NetEq: Restructure how post-decode VAD is enabled
This change avoids calling neteq_->EnableVad() and DisableVad from the
AcmReceiver constructor. Instead, the new member
enable_post_decode_vad is added to NetEq's config struct. It is
disabled by defualt, but ACM sets it to enabled. This preserves the
behavior both of NetEq stand-alone (i.e., in tests) and of ACM.

BUG=webrtc:3520

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

Cr-Commit-Position: refs/heads/master@{#10476}
2015-11-02 11:26:03 +00:00
d56d68cd27 system_wrappers: Fix include header guards.
This should have been a part of https://codereview.webrtc.org/1413333002/

The header guard PRESUBMIT rule is being enabled in
https://codereview.webrtc.org/1419203005 so things like this won't
happen in the future.

BUG=5095
NOTRY=True

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

Cr-Commit-Position: refs/heads/master@{#10475}
2015-11-02 10:12:50 +00:00
2b06352228 Roll chromium_revision 0bf3ae4..40d9ba6 (357288:357298)
Change log: 0bf3ae4..40d9ba6
Full diff: 0bf3ae4..40d9ba6

No dependencies changed.
No update to Clang.

TBR=
CQ_EXTRA_TRYBOTS=tryserver.webrtc:win_baremetal,mac_baremetal,linux_baremetal

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

Cr-Commit-Position: refs/heads/master@{#10474}
2015-11-02 04:04:43 +00:00
608213e737 Add locks and thread annotations for ReceiverReferenceTimeReportEnabled.
Review URL: https://codereview.webrtc.org/1413543007

Cr-Commit-Position: refs/heads/master@{#10473}
2015-11-01 22:56:14 +00:00
a8393d97c1 Roll chromium_revision d0662bc..0bf3ae4 (357257:357288)
Change log: d0662bc..0bf3ae4
Full diff: d0662bc..0bf3ae4

No dependencies changed.
No update to Clang.

TBR=
CQ_EXTRA_TRYBOTS=tryserver.webrtc:win_baremetal,mac_baremetal,linux_baremetal

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

Cr-Commit-Position: refs/heads/master@{#10472}
2015-11-01 20:23:56 +00:00
74f0f3551e Delete a chain of methods in ViE, VoE and ACM
The end goal is to remove AcmReceiver::SetInitialDelay. This change is
in preparation for that goal. It turns out that
AcmReceiver::SetInitialDelay was only invoked through the following
call chain, where each method in the chain is never referenced from
anywhere else (except from tests in some cases):

ViEChannel::SetReceiverBufferingMode
-> ViESyncModule::SetTargetBufferingDelay
-> VoEVideoSync::SetInitialPlayoutDelay
-> Channel::SetInitialPlayoutDelay
-> AudioCodingModule::SetInitialPlayoutDelay
-> AcmReceiver::SetInitialDelay

The start of the chain, ViEChannel::SetReceiverBufferingMode was never
referenced.

This change deletes all the methods above except
AcmReceiver::SetInitialDelay itself, which will be handled in a
follow-up change.

BUG=webrtc:3520

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

Cr-Commit-Position: refs/heads/master@{#10471}
2015-11-01 19:43:38 +00:00
e502bbe138 Update webrtc/base/common.h after recent _DEBUG->!NDEBUG change.
R=tfarina@chromium.org
TBR=tfarina@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#10470}
2015-10-31 21:41:44 +00:00
4040d1e88a Roll chromium_revision ca6592b..d0662bc (357129:357257)
Change log: ca6592b..d0662bc
Full diff: ca6592b..d0662bc

Changed dependencies:
* src/buildtools: acafdaa..c2f2598
* src/third_party/libvpx_new/source/libvpx: dc9d36c..9645cd4
* src/third_party/libyuv: 2844662..5d97b93
DEPS diff: ca6592b..d0662bc/DEPS

No update to Clang.

TBR=marpan@webrtc.org, stefan@webrtc.org,
CQ_EXTRA_TRYBOTS=tryserver.webrtc:win_baremetal,mac_baremetal,linux_baremetal

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

Cr-Commit-Position: refs/heads/master@{#10469}
2015-10-31 03:05:32 +00:00
a41ab9326c Switch usage of _DEBUG macro to NDEBUG.
http://stackoverflow.com/a/29253284/5237416

BUG=None
R=tommi@webrtc.org
NOPRESUBMIT=true

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

Cr-Commit-Position: refs/heads/master@{#10468}
2015-10-30 23:08:54 +00:00
5c3da4b6e9 Call MediaCodec.stop() on separate thread.
MediaCodec.stop() call may hang in some rear cases. To avoid
application hang this call need to be done on separate thread and
possible error reported back to application.
Application may elect to continue executing and use another codec
instance for encoding/decoding or stop the call and exit.

BUG=b/24339249
R=magjed@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10467}
2015-10-30 22:31:25 +00:00
8e1809fcd7 Fix TransientSuppression in audioproc_float
Review URL: https://codereview.webrtc.org/1411423010

Cr-Commit-Position: refs/heads/master@{#10466}
2015-10-30 22:29:23 +00:00
78858d2cd4 Roll chromium_revision 0ebc3da..ca6592b (357077:357129)
Change log: 0ebc3da..ca6592b
Full diff: 0ebc3da..ca6592b

No dependencies changed.
No update to Clang.

TBR=
CQ_EXTRA_TRYBOTS=tryserver.webrtc:win_baremetal,mac_baremetal,linux_baremetal

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

Cr-Commit-Position: refs/heads/master@{#10465}
2015-10-30 21:16:56 +00:00
0be3e040f6 Disable PhysicalSocketTest.TestUdpReadyToSendIPv4 on Android.
The test didn't previously run on Android bots, but was enabled by
mistake in https://codereview.webrtc.org/1426643003/

It used to be long to the rtc_unittests target, which also don't run
on Android unfortunately. For now, let's just disable this one test
on Android to get the bots go green.

BUG=4364
TBR=pthatcher@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10464}
2015-10-30 20:21:11 +00:00
8a4f547dad Hang on android when DNS resolution is not done
BUG=webrtc:5139
R=juberti@google.com
TBR=juberti@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10463}
2015-10-30 16:12:45 +00:00
534dafcc08 Roll chromium_revision ce45e11..0ebc3da (357029:357077)
Change log: ce45e11..0ebc3da
Full diff: ce45e11..0ebc3da

No dependencies changed.
No update to Clang.

TBR=
CQ_EXTRA_TRYBOTS=tryserver.webrtc:win_baremetal,mac_baremetal,linux_baremetal

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

Cr-Commit-Position: refs/heads/master@{#10462}
2015-10-30 12:18:54 +00:00
102c6a61bc Replace rtc:🦗:Settable with rtc::Maybe
The former is very similar to the latter, but less general (mostly in
naming).

This CL, which is the first to use Maybe at scale, also removes the implicit conversion from T to Maybe<T>, since it was agreed that the increased verbosity increased legibility.

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

Cr-Commit-Position: refs/heads/master@{#10461}
2015-10-30 09:47:44 +00:00
bdafe31b86 Add aecdump support to audioproc_f.
Add a new interface to abstract away file operations. This CL temporarily
removes support for dumping the output of reverse streams. It will be easy to
restore in the new framework, although we may decide to only allow it with
the aecdump format.

We also now require the user to specify the output format, rather than
defaulting to the input format.

TEST=Bit-exact output to the previous audioproc_f version using an input wav
file, and to the legacy audioproc using an aecdump file.

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

Cr-Commit-Position: refs/heads/master@{#10460}
2015-10-30 06:43:00 +00:00
1367fbded5 Roll chromium_revision 657e8d9..ce45e11 (356260:357029)
Change log: 657e8d9..ce45e11
Full diff: 657e8d9..ce45e11

Changed dependencies:
* src/buildtools: ef7f1f5..acafdaa
* src/third_party/boringssl/src: https://boringssl.googlesource.com/boringssl.git/+log/63fa118..51a01a5
* src/third_party/libvpx_new/source/libvpx: f4af1a9..dc9d36c
DEPS diff: 657e8d9..ce45e11/DEPS

No update to Clang.

TBR=marpan@webrtc.org, stefan@webrtc.org,
CQ_EXTRA_TRYBOTS=tryserver.webrtc:win_baremetal,mac_baremetal,linux_baremetal

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

Cr-Commit-Position: refs/heads/master@{#10459}
2015-10-30 03:29:17 +00:00
cb3f9bd9c0 Make the nonlinear beamformer steerable
Depends on this CL: https://codereview.webrtc.org/1395453004/

R=andrew@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10458}
2015-10-30 01:21:40 +00:00
7367463acc Utilize bitrate above codec max to protect video.
When estimating that we can send more than the codec max bitrate (under
the assumption that codec max bitrate is good enough for the quality),
we should use additional bitrate so that we can maintain good quality.

Global bitrate caps should still be enforced through bitrate caps (b=AS)
and not codec max bitrates.

BUG=webrtc:5102
R=stefan@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10457}
2015-10-29 22:45:04 +00:00
315dce7ac1 Enable VP9 internal resize by default.
R=stefan@webrtc.org
TBR=stefan@webrtc.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#10456}
2015-10-29 18:16:06 +00:00
bbaf3633c5 Filter overlapping RTP header extensions.
This removes unnecessary RTP header extension overhead since only one of
these extensions is used at a time.

BUG=webrtc:4254
R=pbos@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10455}
2015-10-29 17:53:33 +00:00
4f5db11e45 Make VCMEncodedFrameCallback const.
Skips nullptr check.

BUG=
R=stefan@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10454}
2015-10-29 15:54:08 +00:00
075fb4bfea MediaCodecVideoEncoder: Add number of quality resolution downscales to Encoded callback.
BUG=

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

Cr-Commit-Position: refs/heads/master@{#10453}
2015-10-29 15:49:21 +00:00
69ccb33131 Remove redudant encoder rate calls.
Moves EncoderParameters update checks into GenericEncoder before calling
SetRates/SetChannelParameters as applicable.

Also removes CodecConfigParameters as a bonus.

BUG=
R=stefan@webrtc.org
TBR=mflodman@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10452}
2015-10-29 15:30:29 +00:00
4f4f756f6f Create isolate files for nonparallel tests.
Adds missing Android things for webrtc_nonparallel_tests.

BUG=chromium:445880
R=kjellander@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10451}
2015-10-29 14:29:15 +00:00
1295297153 Register header extensions in RtpRtcpObserver to avoid log spam.
BUG=webrtc:5118
R=pbos@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10450}
2015-10-29 14:13:35 +00:00
ee1879ca40 Make an enum class out of NetEqDecoder, and hide the neteq_decoders_ table
This operation was relatively simple, since no one was doing anything
fishy with this enum. A large number of lines had to be changed
because the enum values now live in their own namespace, but this is
arguably worth it since it is now much clearer what sort of constant
they are.

BUG=webrtc:5028

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

Cr-Commit-Position: refs/heads/master@{#10449}
2015-10-29 13:20:33 +00:00
48ed930975 ACM: Move NACK functionality inside NetEq
Negative acknowledgement (NACK) has up to now been implemented in
ACM. But, since NetEq is in charge of the actual packet buffer, it
makes more sense to have the NACK functionlaity in there.

This CL does the following:
- Move nack.{h,cc} and the unit tests from main/acm2 to neteq.
- Move the NACK related code in ACM into NetEq.
- NACK related functions in AcmReceiver are changed to simple
  forwarding APIs.
- Remove unused members in AcmReceiver.
- Remove unused API functions in NetEq.

BUG=webrtc:3520

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

Cr-Commit-Position: refs/heads/master@{#10448}
2015-10-29 12:36:32 +00:00
a35ae7f507 Fix chromium-style warnings in webrtc/sound/.
Tested on Linux with the following command lines:

$ ./webrtc/build/gyp_webrtc -Dclang_use_chrome_plugins=1
$ ninja -C out/Release rtc_sound

BUG=webrtc:163
R=perkj@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10447}
2015-10-29 11:50:15 +00:00
95192fbb1e Create a 'webrtc_nonparallel_tests' target.
Used for tests that cannot be run in parallel due to using non-virtual
resources such as filesystems and sockets. Initially moves socket
unittests from rtc_unittest since
PhysicalSocketTest.TestUdpReadyToSendIPv4 is one of the worst flake
offenders.

Future prospect targets are GTEST_DEATH tests that are flaky on Mac in
parallel for instance.

BUG=chromium:445880
R=kjellander@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10446}
2015-10-29 11:42:06 +00:00
6449990387 Update scalability structure data according to updates in the RTP payload profile.
https://tools.ietf.org/id/draft-ietf-payload-vp9-01.txt

BUG=chromium:500602
TBR=mflodman

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

Cr-Commit-Position: refs/heads/master@{#10445}
2015-10-29 10:35:16 +00:00
74640895fa audio_coding: rename interface -> include
BUG=webrtc:5095
R=henrik.lundin@webrtc.org
TBR=tommi@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10444}
2015-10-29 10:31:11 +00:00
be81fa538d Rewrote perform_action_on_all_files to be parallell.
This speeds up decode for a 720p workload from 25s to 5s on my machine.
I did some benchmarking and it appears we spend the vast majority of
the time on zxing decoding, so now we will bring all processors on the
the machine to bear.

BUG=webrtc:4986

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

Cr-Commit-Position: refs/heads/master@{#10443}
2015-10-29 09:22:51 +00:00
32df5efc6d Update reference indices according to updates in the RTP payload profile.
https://tools.ietf.org/id/draft-ietf-payload-vp9-01.txt

BUG=chromium:500602

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

Cr-Commit-Position: refs/heads/master@{#10442}
2015-10-29 08:45:47 +00:00
1a8240c32a Disable P2PTransport...TestFailoverControlledSide on Memcheck
The test is flaky on the bot.

BUG=webrtc:5136
TBR=kjellander@webrtc.org
NOTRY=true

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

Cr-Commit-Position: refs/heads/master@{#10441}
2015-10-29 08:28:32 +00:00
b608eb865e pass clangcl compile options to ignore warnings in gflags.cc
R=kjellander@webrtc.org, ajm@webrtc.org
BUG=webrtc:760

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

Cr-Commit-Position: refs/heads/master@{#10440}
2015-10-28 17:59:48 +00:00
e55c42c13e Remove limitation on the amount of maximum pending HW decoder inputs.
Plus log first few decoder frames in and out events.

BUG=b/25287910

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

Cr-Commit-Position: refs/heads/master@{#10439}
2015-10-28 17:30:38 +00:00
98f53510b2 system_wrappers: rename interface -> include
BUG=webrtc:5095
R=tommi@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10438}
2015-10-28 17:17:50 +00:00
ebc0b4e993 Use webrtc/base/logging.h for rtp_rtcp.
BUG=webrtc:5118
R=stefan@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10437}
2015-10-28 15:39:43 +00:00
605db69130 Disable EndToEndTest.AssignsTrans... for memcheck
The test is flaky on the bot.

BUG=webrtc:5134
TBR=sprang@webrtc.org
NOTRY=true

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

Cr-Commit-Position: refs/heads/master@{#10436}
2015-10-28 15:27:11 +00:00
6408174cdc Fix for "Android audio playout doesn't support non-call media stream"
BUG=webrtc:4767
R=magjed@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10435}
2015-10-28 12:06:24 +00:00
83585c9075 VideoCapturerAndroid: More frequent and verbose logging
BUG=b/24437529

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

Cr-Commit-Position: refs/heads/master@{#10434}
2015-10-28 10:27:30 +00:00
ec9d187f70 Added override keyword to overridden methods to stop compiler warnings.
BUG=

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

Cr-Commit-Position: refs/heads/master@{#10433}
2015-10-27 21:22:21 +00:00
fce4a945b8 RentACodec: New class that takes over part of ACMCodecDB's job
Following CLs will finish the takeover completely. After that,
RentACodec will also start creating and owning codecs, at which point
its name will start making sense.

BUG=webrtc:5028

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

Cr-Commit-Position: refs/heads/master@{#10432}
2015-10-27 18:40:29 +00:00
77d0d6e858 When all connections timed out on writing, delete them all.
BUG=5111

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

Cr-Commit-Position: refs/heads/master@{#10431}
2015-10-27 18:34:50 +00:00
f116bd0d7a Call OnSentPacket for all packets sent in the test framework.
Required a bit of refactoring to make it possible to pass a Call to DirectTransport on construction. This also lead to me having to remove the shared lock between PacketTransport and RtpRtcpObserver. Now RtpRtcpObserver has a SetTransports method instead of a SetReceivers method.

BUG=webrtc:4173

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

Cr-Commit-Position: refs/heads/master@{#10430}
2015-10-27 15:29:47 +00:00
f1dcd46a9b UBSan: Add blacklist files for WebRTC standalone.
For more info, see
http://dev.chromium.org/developers/testing/undefinedbehaviorsanitizer

BUG=webrtc:5124
TESTED=Passing compilation using:
GYP_DEFINES="ubsan=1" webrtc/build/gyp_webrtc && ninja -C out/Release
GYP_DEFINES="ubsan_vptr=1" webrtc/build/gyp_webrtc && ninja -C out/Release
R=pbos@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10429}
2015-10-27 14:31:58 +00:00
9397d84659 Roll chromium_revision 625f6c8..657e8d9 (356202:356260)
Change log: 625f6c8..657e8d9
Full diff: 625f6c8..657e8d9

No dependencies changed.
No update to Clang.

TBR=
CQ_EXTRA_TRYBOTS=tryserver.webrtc:win_baremetal,mac_baremetal,linux_baremetal

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

Cr-Commit-Position: refs/heads/master@{#10428}
2015-10-27 12:03:55 +00:00
27f6fd346a Remove noparent from talk/OWNERS.
Lets webrtc root OWNERS approve talk/ code as well.

BUG=
R=pthatcher@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10427}
2015-10-27 11:08:19 +00:00