8673 Commits

Author SHA1 Message Date
nisse
de2920cb46 Delete unused file sessionid.h.
BUG=None.

Review-Url: https://codereview.webrtc.org/2370723002
Cr-Commit-Position: refs/heads/master@{#14387}
2016-09-27 06:28:51 +00:00
stefan
89175a606e Trust that calls to RemoteEstimatorProxy::Process are done at the right frequency.
BUG=None

Review-Url: https://codereview.webrtc.org/2365293002
Cr-Commit-Position: refs/heads/master@{#14386}
2016-09-26 18:56:03 +00:00
minyue
fd8e33d3ad Removing a useless ctor in AudioNetworkAdaptorImpl.
BUG=webrtc:6303

Review-Url: https://codereview.webrtc.org/2367743002
Cr-Commit-Position: refs/heads/master@{#14384}
2016-09-26 18:46:45 +00:00
hbos
8af4fd0128 Disabled flaky VideoSendStreamTest.ChangingNetworkRoute
BUG=webrtc:6422
NOTRY=True
TBR=stefan@webrtc.org

Review-Url: https://codereview.webrtc.org/2372553002
Cr-Commit-Position: refs/heads/master@{#14383}
2016-09-26 18:45:44 +00:00
nisse
98088dcccc header_usage.sh script: Exclude matches in gyp and gn files.
NOTRY=true
BUG=None

Review-Url: https://codereview.webrtc.org/2363423002
Cr-Commit-Position: refs/heads/master@{#14382}
2016-09-26 18:44:36 +00:00
kjellander
660312b0c6 Enable //build/config/clang:extra_warnings for rtc_media
The code compiles fine with this config removed.

BUG=webrtc:6323
NOTRY=True
NOTREECHECKS=True

Review-Url: https://codereview.webrtc.org/2369893002
Cr-Commit-Position: refs/heads/master@{#14381}
2016-09-26 13:11:57 +00:00
kjellander
464382da71 Remove duplicated entry for bwe_simulations.cc
Since modules_unittests already depends on
remote_bitrate_estimator:bwe_simulator and the bwe_simulations.cc
source was added to that target in https://codereview.webrtc.org/2296253002
there's no point having it added here.

BUG=webrtc:6323
NOTRY=True
NOPRESUBMIT=True
NOTREECHECKS=True

Review-Url: https://codereview.webrtc.org/2368933002
Cr-Commit-Position: refs/heads/master@{#14380}
2016-09-26 10:00:09 +00:00
kjellander
3901128075 Remove unnecessary jsoncpp includes.
These are already added in third_party/jsoncpp/BUILD.gn so they
shouldn't be needed.

BUG=webrtc:6412
NOTRY=True
NOTREECHECKS=True

Review-Url: https://codereview.webrtc.org/2368543002
Cr-Commit-Position: refs/heads/master@{#14379}
2016-09-26 09:52:40 +00:00
jianjun.zhu
20684110fd r14326 added '-Wno-unused-result' to 'WARNING_CFLAGS!' which removes the
flag. This change moves it to WARNING_CFLAGS, and makes it work for both
iOS and mac.

BUG=webrtc:6396
NOTRY=True
NOPRESUBMIT=True
NOTREECHECKS=True

Review-Url: https://codereview.webrtc.org/2369803002
Cr-Commit-Position: refs/heads/master@{#14378}
2016-09-26 09:41:40 +00:00
zijiehe
c59bf0415a Remove differ from ScreenCapturer implementations
We can use ScreenCapturerDifferWrapper if needed, otherwise ScreenCapturer does
not need to calculate updated region itself, setting to entire screen is enough.

BUG=633802

Review-Url: https://codereview.webrtc.org/2348803003
Cr-Commit-Position: refs/heads/master@{#14377}
2016-09-24 00:54:40 +00:00
solenberg
d3d230f788 - Make RtpSenderAudio not inherit from DtmfQueue.
- Remove unused method DtmfQueue::ResetDTMF()

BUG=webrtc:2795

Review-Url: https://codereview.webrtc.org/2365873002
Cr-Commit-Position: refs/heads/master@{#14376}
2016-09-23 20:10:50 +00:00
danilchap
92ea601e90 Move class RTCPHelp::RTCPPacketInformation into RTCPReceiver
Use it by pointer instead of by reference.
Renamed PacketInformation members to follow style,
Unused members removed.

BUG=webrtc:5565

Review-Url: https://codereview.webrtc.org/2366563002
Cr-Commit-Position: refs/heads/master@{#14375}
2016-09-23 17:36:12 +00:00
henrika
dda366611e Fixes minor issue in AudioDeviceTest.RunPlayoutAndRecordingInFullDuplex for iOS.
Followup on https://codereview.webrtc.org/2349263004/

BUG=NONE
NOTRY=TRUE

Review-Url: https://codereview.webrtc.org/2362263002
Cr-Commit-Position: refs/heads/master@{#14374}
2016-09-23 15:42:49 +00:00
Per
f8c5f2b485 Fix vie_encoder_unittest.cc.
This was broken in https://codereview.webrtc.org/2338133003/ Let ViEEncoder tell VideoSendStream about reconfigurations when I manually landed that cl without rebasing.
Shame on me.

BUG=webrtc:5687, webrtc:6371
TBR=mflodman@webrtc.org
NOTREECHECKS=true

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

Cr-Commit-Position: refs/heads/master@{#14373}
2016-09-23 14:25:10 +00:00
magjed
44428a8aa6 iOS: Always build H264 HW encoder/decoder
This CL removes the use_objc_h264 flag. This means that the VideoToolbox
H264 encoder and decoder will always be built.

BUG=webrtc:4081
NOTRY=TRUE

Review-Url: https://codereview.webrtc.org/2366443003
Cr-Commit-Position: refs/heads/master@{#14372}
2016-09-23 14:01:44 +00:00
Per
512ecb3206 Let ViEEncoder tell VideoSendStream about reconfigurations.
This cl change so that all encoder configuration changes are reported to VideoSendStream through the ViEEncoder.
Also, the PayLoadRouter is changed to never stop sending on a an ssrc due to the encoder video frame size changes. Instead, the number of sending streams is only decided by the number of sending ssrc.

This cl is a preparation for moving encoder reconfiguration due to input video frame size changes from WebRtcVideoSendStream to ViEEncoder.

BUG=webrtc:5687, webrtc:6371
R=mflodman@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#14371}
2016-09-23 13:52:20 +00:00
nisse
2a27b0a478 Delete unused class FakeScreenCapturerFactory.
Last use of the header file probably deleted in cl
https://codereview.webrtc.org/1903393004

BUG=None

Review-Url: https://codereview.webrtc.org/2353043003
Cr-Commit-Position: refs/heads/master@{#14370}
2016-09-23 11:42:49 +00:00
solenberg
347ec5c72e Change thread check to race check. Also, add comment to explain implementation of RaceChecker.
BUG=webrtc:6345

Review-Url: https://codereview.webrtc.org/2350663002
Cr-Commit-Position: refs/heads/master@{#14369}
2016-09-23 11:21:55 +00:00
ossu
f1b08da5b4 Stopped using the NetEqDecoder enum internally in NetEq.
NetEqDecoder is still used in the external interfaces, but this change
opens up the ability to use SdpAudioFormats directly, once appropriate
interfaces have been added.

BUG=webrtc:5805

Review-Url: https://codereview.webrtc.org/2355503002
Cr-Commit-Position: refs/heads/master@{#14368}
2016-09-23 09:19:49 +00:00
asapersson
1490f7aa55 Add histogram for end-to-end delay:
"WebRTC.Video.EndToEndDelayInMs"

Make capture time in local timebase available for decoded VP9 video frames (propagate ntp_time_ms from EncodedImage to decoded VideoFrame).

BUG=webrtc:6409

Review-Url: https://codereview.webrtc.org/1905563002
Cr-Commit-Position: refs/heads/master@{#14367}
2016-09-23 09:09:59 +00:00
minyue
6d4c8c307e Renaming a proto target in GYP for audio network adaptor.
It was incorrectly named for GYP in https://codereview.webrtc.org/2365723002
This makes the target name be the same for GN and GYP.

BUG=webrtc:6303
NOTRY=True

Review-Url: https://codereview.webrtc.org/2366883002
Cr-Commit-Position: refs/heads/master@{#14366}
2016-09-23 08:42:22 +00:00
sakal
e87d6734ea Return texture frame when dropping frames in CameraCapturer.
BUG=webrtc:6411,b/31686979

Review-Url: https://codereview.webrtc.org/2363043002
Cr-Commit-Position: refs/heads/master@{#14365}
2016-09-23 08:27:38 +00:00
kjellander
b62dbbe985 GN: Change rtc_source_set targets --> rtc_static_library
This changes most non-test related rtc_source_set targets to be
rtc_static_library instead. Targets without any .cc files are excluded.
This should bring back the build behavior we used to have with GYP
(i.e. same symbols exported in the libjingle_peerconnection.a file, which
are used by some downstream projects).

After doing an Android build with these changes:
$ nm --defined-only -g -C out/Release/lib.unstripped/libjingle_peerconnection_so.so | grep -i createpeerconnectionf
00077c51 T Java_org_webrtc_PeerConnectionFactory_nativeCreatePeerConnectionFactory
$ nm --defined-only -g -C out/Release/obj/webrtc/api/libjingle_peerconnection.a | grep -i createpeerconnectionf
00000001 T webrtc::CreatePeerConnectionFactory(rtc::Thread*, rtc::Thread*, rtc::Thread*, webrtc::AudioDeviceModule*, cricket::WebRtcVideoEncoderFactory*, cricket::WebRtcVideoDecoderFactory*)
00000001 T webrtc::CreatePeerConnectionFactory()

See https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/cookbook.md#Note-on-static-libraries
for more details on this.

NOTICE: This should be further cleaned up in the future, to reduce
binary bloat and unnecessary linking time. Right now it's more
important to restore the desired build output though.

BUG=webrtc:6410, chromium:630755

Review-Url: https://codereview.webrtc.org/2361623004
Cr-Commit-Position: refs/heads/master@{#14364}
2016-09-23 07:38:58 +00:00
minyue
25f6a39181 Relanding of "Adding debug dump to audio network adaptor."
The original CL was https://codereview.webrtc.org/2356763002

but got reverted https://codereview.webrtc.org/2362003002/.

The error was that ana_debug_dump_proto as a proto_library was placed under rtc_include_tests.

BUG=webrtc:6303

Review-Url: https://codereview.webrtc.org/2365723002
Cr-Commit-Position: refs/heads/master@{#14363}
2016-09-23 05:23:28 +00:00
minyue
161b3907ab Revert of Adding debug dump to audio network adaptor. (patchset #5 id:140001 of https://codereview.webrtc.org/2356763002/ )
Reason for revert:
Chromium bot fails

Original issue's description:
> Adding debug dump to audio network adaptor.
>
> BUG=webrtc:6303
>
> Committed: https://crrev.com/7e4f8928062afc8d571bb69f3223711701cbaad6
> Cr-Commit-Position: refs/heads/master@{#14361}

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

Review-Url: https://codereview.webrtc.org/2362003002
Cr-Commit-Position: refs/heads/master@{#14362}
2016-09-22 21:17:01 +00:00
minyue
7e4f892806 Adding debug dump to audio network adaptor.
BUG=webrtc:6303

Review-Url: https://codereview.webrtc.org/2356763002
Cr-Commit-Position: refs/heads/master@{#14361}
2016-09-22 20:39:18 +00:00
glaznev
893a7eeecb Support more QCOM specific color formats for Android HW decoder.
BUG=b/31483393

Review-Url: https://codereview.webrtc.org/2349843002
Cr-Commit-Position: refs/heads/master@{#14359}
2016-09-22 17:44:34 +00:00
magjed
87ef6f7501 Revert of Rename AppRTCDemo on Android and iOS to AppRTCMobile (patchset #2 id:20001 of https://codereview.webrtc.org/2343403002/ )
Reason for revert:
Breaks internal project.

Original issue's description:
> Rename AppRTCDemo on Android and iOS to AppRTCMobile
>
> The purpose is to make it clearer it is a mobile application.
>
> BUG=webrtc:6359
> NOPRESUBMIT=true
>
> Committed: https://crrev.com/d3af58bdab5b25acd62cd816363becc7003d3e5a
> Cr-Commit-Position: refs/heads/master@{#14356}

TBR=sakal@webrtc.org,kthelgason@webrtc.org,tommi@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:6359

Review-Url: https://codereview.webrtc.org/2358133003
Cr-Commit-Position: refs/heads/master@{#14358}
2016-09-22 17:15:43 +00:00
Honghai Zhang
3e02430587 Fix a stun attribute leak.
In https://cs.chromium.org/chromium/src/third_party/webrtc/p2p/base/stun.cc?rcl=1474384719&l=352,
if read returned false, the created attr would not be released.

BUG=chromium:648064
R=skvlad@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#14357}
2016-09-22 16:52:30 +00:00
magjed
d3af58bdab Rename AppRTCDemo on Android and iOS to AppRTCMobile
The purpose is to make it clearer it is a mobile application.

BUG=webrtc:6359
NOPRESUBMIT=true

Review-Url: https://codereview.webrtc.org/2343403002
Cr-Commit-Position: refs/heads/master@{#14356}
2016-09-22 16:12:38 +00:00
henrika
051d151569 Adds audio session status to logs for each valid audio route change on iOS
BUG=b/30944297
NOTRY=TRUE

Review-Url: https://codereview.webrtc.org/2355393005
Cr-Commit-Position: refs/heads/master@{#14355}
2016-09-22 15:48:10 +00:00
kthelgason
c37e9835a7 Add custom info.plist to modules_unittests
This is to fix an issue introduced with iOS 10 where all applications that access the microphone have to include a string in the Info.plist file explaining why they need it.

BUG=webrtc:6403

Review-Url: https://codereview.webrtc.org/2359863003
Cr-Commit-Position: refs/heads/master@{#14354}
2016-09-22 15:00:57 +00:00
danilchap
f292e31511 Relax too strict DCHECKs while parsing rtcp reports
BUG=chromium:649129

Review-Url: https://codereview.webrtc.org/2361493004
Cr-Commit-Position: refs/heads/master@{#14353}
2016-09-22 14:24:38 +00:00
ivoc
aac9d6fb25 Added graph for plotting the audio level from an Rtc event log.
This uses the audio level values that are stored in the RTP header extension.

BUG=webrtc:4741

Review-Url: https://codereview.webrtc.org/2346363003
Cr-Commit-Position: refs/heads/master@{#14352}
2016-09-22 14:01:55 +00:00
minyue
d0ede4493e Adding FecController to audio network adaptor.
BUG=webrtc:6303

Review-Url: https://codereview.webrtc.org/2337103006
Cr-Commit-Position: refs/heads/master@{#14351}
2016-09-22 13:20:59 +00:00
sakal
1c6d3f7eae Add new Camera2Enumerator.isSupported with Context parameter.
The old method is marked deprecated and will be removed soon. The new
method checks if all cameras on the device support better than legacy
implementation of the camera2 API.

BUG=webrtc:6390

Review-Url: https://codereview.webrtc.org/2354883002
Cr-Commit-Position: refs/heads/master@{#14350}
2016-09-22 12:52:13 +00:00
charujain
09baefeaf9 GN: Remove non-existing header file: media/base/videorenderer.h
This header was removed in https://codereview.webrtc.org/1819103003
but the BUILD.gn file was not updated.

BUG=webrtc:5949
NOTRY=True
TBR=nisse@webrtc.org

Review-Url: https://codereview.webrtc.org/2359113002
Cr-Commit-Position: refs/heads/master@{#14349}
2016-09-22 11:51:57 +00:00
danilchap
799a9d017a Revert of Remove unnecessary interface TelephoneEventHandler (patchset #3 id:40001 of https://codereview.webrtc.org/2357583002/ )
Reason for revert:
breaks downstream code

Original issue's description:
> Remove unnecessary interface TelephoneEventHandler.
>
> BUG=webrtc:2795
>
> Committed: https://crrev.com/2beb42983ca24e1326a9a7f2c06b3ad740eea2c3
> Cr-Commit-Position: refs/heads/master@{#14346}

TBR=henrik.lundin@webrtc.org,solenberg@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:2795

Review-Url: https://codereview.webrtc.org/2362673002
Cr-Commit-Position: refs/heads/master@{#14348}
2016-09-22 10:36:34 +00:00
ossu
a70695a3e1 Moved Opus-specific payload splitting into AudioDecoderOpus.
The biggest change to NetEq is the move from a primary flag, to a
Priority with two separate levels: one set by RED splitting and one
set by the codec itself. This allows us to unambigously prioritize
"fallback" packets from these two sources. I've chosen what I believe
is the sensible ordering: packets that the codec prioritizes are
chosen first, regardless of if they are secondary RED packets or
not. So if we were to use Opus w/ FEC in RED, we'd only do Opus FEC
decoding if there was no RED packet that could cover the time slot.

With this change, PayloadSplitter now only deals with RED
packets. Maybe it should be renamed RedPayloadSplitter?

BUG=webrtc:5805

Review-Url: https://codereview.webrtc.org/2342443005
Cr-Commit-Position: refs/heads/master@{#14347}
2016-09-22 09:07:03 +00:00
solenberg
2beb42983c Remove unnecessary interface TelephoneEventHandler.
BUG=webrtc:2795

Review-Url: https://codereview.webrtc.org/2357583002
Cr-Commit-Position: refs/heads/master@{#14346}
2016-09-22 08:46:08 +00:00
nisse
6f5a6c3188 New class AdaptedVideoTrackSource.
BUG=webrtc:6353

Review-Url: https://codereview.webrtc.org/2328333002
Cr-Commit-Position: refs/heads/master@{#14345}
2016-09-22 08:26:06 +00:00
minyue
bc77ed7657 Adding reordering logic in audio network adaptor.
BUG=webrtc:6303

Review-Url: https://codereview.webrtc.org/2349113002
Cr-Commit-Position: refs/heads/master@{#14344}
2016-09-22 07:45:23 +00:00
minyue
4aec1d4437 Relanding of "Adding BitrateController to audio network adaptor."
Adding BitrateController to audio network adaptor was first landed in https://codereview.webrtc.org/2334613002/ but reverted in https://codereview.webrtc.org/2352223002/ due to ODR violation.

This CL tries to use namespace trick to solve the ODR problem.

BUG=webrtc:6303

Review-Url: https://codereview.webrtc.org/2353293002
Cr-Commit-Position: refs/heads/master@{#14343}
2016-09-22 06:01:34 +00:00
zijiehe
05bba2be48 Several minor changes to ScreenCapturerWinMagnifier
1. Remove legacy screen-saver-blocking logic
2. tls_index_ is not a good choice, we can use thread-static
3. ScreenCapturerHelper is not designed for this scenario
4. Disable this capturer on 2+ monitors system

BUG=638802

Review-Url: https://codereview.webrtc.org/2319383002
Cr-Commit-Position: refs/heads/master@{#14342}
2016-09-22 00:25:48 +00:00
zijiehe
66cadfc0e3 Several minor improvements of DirectX capturer
1. It looks like ComPtr cannot work well with vector::emplace_back, I got a
consistent crash on one of my machine, but not the other. Move constructor
should have no impact to lvalue reference, but I may be wrong here. The
impact here is ComPtr released before it should be. So a simple solution is to
use copy instead of reference. The D3dDevice is a collection of reference
counted pointers (Microsoft::WRL::ComPtr), there is almost no extra cost.

2. Actively set several fields in D3D11_TEXTURE2D_DESC to avoid potential break
if there are some platform changes later.

3. AcquireNextFrame returns both a DXGI_OUTDUPL_FRAME_INFO with
AccumulatedFrames and an IDXGIResource. But there is no comment in MSDN to
ensure IDXGIResource won't be nullptr if AccumulatedFrames > 0. Adding an extra
check in DxgiOutputDuplicator makes it a safer.

BUG=314516

Review-Url: https://codereview.webrtc.org/2345163002
Cr-Commit-Position: refs/heads/master@{#14341}
2016-09-22 00:19:15 +00:00
qiangchen
6f79d840ba Bug Fix: Mac Retina Screen Capture's Mouse Cursor Too Small
On retina display, when we do screen capture, the mouse cursor
looks too small. The reason is that we painted the cursor with
low resolution on to the frame directly.

This CL fixes the bug.

BUG=632995

Review-Url: https://codereview.webrtc.org/2350743003
Cr-Commit-Position: refs/heads/master@{#14340}
2016-09-21 23:45:03 +00:00
minyue
e35d329315 Adding FrameLengthController to audio network adaptor.
BUG=webrtc:6303

Review-Url: https://codereview.webrtc.org/2335163002
Cr-Commit-Position: refs/heads/master@{#14339}
2016-09-21 23:00:38 +00:00
zijiehe
acc39c44bc Use RgbaColor in DesktopFrameGenerator and add RgbaColorTest
This change uses RgbaColor in DesktopFrameGenerator instead of raw uint32_t to
avoid potential endian issues.

BUG=633802

Review-Url: https://codereview.webrtc.org/2334853002
Cr-Commit-Position: refs/heads/master@{#14337}
2016-09-21 19:23:22 +00:00
Alex Glaznev
772bd0d40b Log supported camera preview resolutions.
BUG=b/29935437
R=sakal@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#14336}
2016-09-21 19:17:15 +00:00
kwiberg
c4ccd4d61c AcmReceiver: Eliminate AcmReceiver::decoders_
BUG=webrtc:5801

Review-Url: https://codereview.webrtc.org/2351183002
Cr-Commit-Position: refs/heads/master@{#14335}
2016-09-21 17:55:21 +00:00