Commit Graph

11056 Commits

Author SHA1 Message Date
dc29780722 Re-enable DCHECKs for increasing timestamps in paced_sender
This reverts https://codereview.webrtc.org/1618333002

BUG=webrtc:5452

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

Cr-Commit-Position: refs/heads/master@{#11824}
2016-03-01 08:47:03 +00:00
10a029e952 Changed AudioEncoder::Encode to take an rtc::Buffer* instead of uint8_t* and a maximum size.
For backwards compatibility, I've added kept the old interface to
Encode() and EncodeInternal and created default implementations of both
variants of EncodeInternal(), each calling the other. At least one of
the variants must be implemented in a subclass or we'll run out of stack
and explode. Would be nice if we could catch that before runtime. :/

The new interface to EncodeInternal() is protected, since it should
never be called from the outside.

Was unable to mark the old EncodeInternal() as RTC_DEPRECATED, since the
default implementaion of the new variant needs to call it to work around
old implementations. The old Encode() variant is deprecated, at least.

Added a test for backwards compatibility in audio_encoder_unittest.cc.
For the added test I broke out MockEncodeHelper from
audio_encoder_copy_red_unittest.cc and renamed it MockAudioEncoderHelper.

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

Cr-Commit-Position: refs/heads/master@{#11823}
2016-03-01 08:41:39 +00:00
22c2b4814a Move RTP stats histograms from VieChannel to SendStatisticsProxy.
Also slice for screensharing.

BUG=
R=mflodman@webrtc.org, pbos@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11822}
2016-03-01 08:40:54 +00:00
681e20e008 .gitignore: remove no longer needed entries.
The Android apps that were previously built with bash
commmands are now using Chromium build targets and no
longer produces output into the source tree. Thus such
Git ignore entries can be removed.

TESTED=Built for Android and verified no files showed up
when running 'git status'.

R=perkj@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11821}
2016-03-01 07:55:21 +00:00
ac287ee8b5 VideoCaptureInput enforce VideoFrame::render_time to be generated by webrtc clock.
render_time time field (means capture time for sender side) is used by rtcp SenderReport to calculate offset since last frame and to estimate rtp timestamp for the time SenderReport should be send at.
mapping between rtp timestamp and ntp time in SenderReport is used for stream synchronization.

calculation of rtp_timestamp (using ntp_time of incoming video frame) for rtp packets is unchanged.

BUG=webrtc:5433, webrtc:5504, webrtc:5505

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

Cr-Commit-Position: refs/heads/master@{#11820}
2016-02-29 20:17:10 +00:00
b9338ac62b Added an operator[] to Buffer, to make reading data easier.
Review URL: https://codereview.webrtc.org/1745033002

Cr-Commit-Position: refs/heads/master@{#11819}
2016-02-29 17:36:44 +00:00
012f8c0e73 Remove unused encoder_config_ variable.
BUG=
R=danilchap@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11818}
2016-02-29 14:42:30 +00:00
c9bbbe454f Revert "Calculating ERLE in AEC more properly."
This reverts commit 944744b25c76810e576516d2f676b1d9105e302f.

NOTRY=True
TBR=peah@webrtc.org,kjellander@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11817}
2016-02-29 14:20:54 +00:00
7d9112cbc4 Make it possible to exclude device management code from rtc_media target.
Chromium doesn't use the device managment code in webrtc/media
so we need a way to turn it off in order to eliminate Chromium's
src/third_party/libjingle/libjingle.gyp

BUG=webrtc:4256
NOTRY=True
TESTED=Trybots + successfully compiled with
GYP_DEFINES=include_internal_device_management=0 webrtc/build/gyp_webrtc
ninja -C out/Debug rtc_media

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

Cr-Commit-Position: refs/heads/master@{#11816}
2016-02-29 14:14:51 +00:00
dda8a837ce Trace tracing Start/Stop events.
Permits measuring times from start of recording (usually start of a
call), and not time from first event that occurs after tracing starts.

BUG=
R=tommi@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11815}
2016-02-29 13:54:14 +00:00
3f55dea259 Replace scoped_ptr with unique_ptr in webrtc/modules/video_coding/
BUG=webrtc:5520

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

Cr-Commit-Position: refs/heads/master@{#11814}
2016-02-29 13:52:06 +00:00
a4f31bd03a TMMBRSet become vector<rtcp::TmmbItem>
this is a slice of https://codereview.webrtc.org/1474693002/
All TMMBRSet functions intentionally left unchanged. Goal to make them obsolete, not to clear.

BUG=webrtc:5565

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

Cr-Commit-Position: refs/heads/master@{#11813}
2016-02-29 13:26:05 +00:00
dffb894a4c Enable CQ
This reverts commit 7352804849012c1b6f47d4dbba87a75d9978a1f1 committed
in https://codereview.webrtc.org/1749673002/

The CQ is now supposed to be functional again.

BUG=chromium:590671
TBR=tandrii@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#11812}
2016-02-29 12:12:19 +00:00
739fcb989d Cleanup of webrtc::VideoFrame.
Delete EqualsFrame method, used only by tests. Delete one of the
CreateFrame methods. Drop return value for CreateEmptyFrame, CreateFrame
and CopyFrame.

BUG=webrtc:5426

Committed: https://crrev.com/208019637bfed975f8f13b16d40b90e200763cd6
Cr-Commit-Position: refs/heads/master@{#11783}

R=mflodman@webrtc.org, pbos@webrtc.org, perkj@webrtc.org, pthatcher@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11811}
2016-02-29 12:11:57 +00:00
944744b25c Calculating ERLE in AEC more properly.
The audio level of the AEC's output level was calculated before overlapping add, and therefore, a compensation was needed. The compensation is multiplying the level by 2 since, before overlapping add, the level is roughly halved due to windowing.

This had to be that way because the level was calculated in frequency domain and the signal after overlapping add has only its time domain representation.

The level calculation has been updated to work on time domain signal and therefore the problem is not there any longer.

This CL is to put the calculation of the AEC output level after overlapping add and remove the compensation.

BUG=
R=peah@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11810}
2016-02-29 12:09:07 +00:00
Per
fb45d170c0 Reland Remove unused cricket::VideoCapturer methods. Originally reviewed and landed as patchset #2 id:30001 of https://codereview.webrtc.org/1733673002/)
I readded virtual bool Pause(bool paused) for now with a dummy implementation since Chrome remoting override this method.

Original cl description:

Removed unused cricket::VideoCapturer methods:

void UpdateAspectRatio(int ratio_w, int ratio_h);
void ClearAspectRatio();
bool Pause(bool paused);
Restart(const VideoFormat& capture_format);
MuteToBlackThenPause(bool muted);
IsMuted() const
set_square_pixel_aspect_ratio
bool square_pixel_aspect_ratio()

This cl also remove the use of messages and posting of state change.
Further more - a thread checker is added to make sure methods are called on only one thread. Construction can happen on a separate thred.
It does not add restrictions on what thread frames are delivered on though.

There is more features in VideoCapturer::Onframe related to screen share in ARGB that probably can be cleaned up in a follow up cl.

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

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

Cr-Commit-Position: refs/heads/master@{#11809}
2016-02-29 11:07:45 +00:00
f3ed9d75dd Remove thread checker from CongestionController.
R=terelius@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11808}
2016-02-29 09:42:21 +00:00
7352804849 Disable CQ since being flooded with jobs
BUG=chromium:590671
TBR=tandrii@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#11807}
2016-02-29 09:33:59 +00:00
f15a7e9b43 Removed adresp from video
Added danilchap to rtcp

R=andresp@webrtc.org, andresp

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

Cr-Commit-Position: refs/heads/master@{#11806}
2016-02-29 09:26:39 +00:00
7e937e951c Remove workaround for Opus DTX noise pumping issue.
A workaround for Opus DTX noise pumping issue was made according upon this
https://codereview.webrtc.org/1422213003

Recently, Opus has fixed this problem internally, and hence the workaround is not needed any longer.

This CL removes this workaround.

BUG=586175
R=flim@webrtc.org, tina.legrand@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11805}
2016-02-29 09:24:25 +00:00
2d5f0913f2 Move direct use of VideoCapturer::VideoAdapter to VideoSinkWants.
The purose of this cl is to remove dependency on cricket::VideoCapturer from WebRtcVideoChannel2.
This cl change CPU adaptation to use a new VideoSinkWants.Resolution

Cl is WIP and uploaded to start the discussion.

Tested on a N5 with hw acceleration turned off.

BUG=webrtc:5426

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

Cr-Commit-Position: refs/heads/master@{#11804}
2016-02-29 08:04:50 +00:00
50772f1e16 GN: Update audio_sink.h location
This should have been a part of
https://codereview.webrtc.org/1740873003/
but wasn't discovered since we cannot have --check turned
on for GN yet.

BUG=webrtc:5589
TBR=solenberg@webrtc.org, henrika@webrtc.org,

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

Cr-Commit-Position: refs/heads/master@{#11803}
2016-02-29 05:49:54 +00:00
804e0822fc CQ: Add android_compile_mips_dbg to default trybots
BUG=chromium:449603
TBR=pbos@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11802}
2016-02-29 04:55:13 +00:00
250fc658c5 Lazily allocate output buffer for AsyncTCPSocket.
As a follow-up to https://codereview.webrtc.org/1737053006/ this CL further
improves memory usage by lazily allocating output buffers up to the passed
maximum size. This also changes the output buffer to a Buffer object.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#11801}
2016-02-28 23:06:47 +00:00
2b31a90062 Roll chromium_revision a5a1e78..ee31124 (378154:378158)
Change log: a5a1e78..ee31124
Full diff: a5a1e78..ee31124

No dependencies changed.
No update to Clang.

TBR=

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

Cr-Commit-Position: refs/heads/master@{#11800}
2016-02-28 20:03:16 +00:00
3379edc4a2 Roll chromium_revision ba93bd2..a5a1e78 (378149:378154)
Change log: ba93bd2..a5a1e78
Full diff: ba93bd2..a5a1e78

No dependencies changed.
No update to Clang.

TBR=

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

Cr-Commit-Position: refs/heads/master@{#11799}
2016-02-28 12:04:41 +00:00
73eb67915c Roll chromium_revision fd4c78b..ba93bd2 (378132:378149)
Change log: fd4c78b..ba93bd2
Full diff: fd4c78b..ba93bd2

Changed dependencies:
* src/third_party/ffmpeg: b828a1b..60fc535
DEPS diff: fd4c78b..ba93bd2/DEPS

No update to Clang.

TBR=

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

Cr-Commit-Position: refs/heads/master@{#11798}
2016-02-28 04:08:15 +00:00
215f228559 Roll chromium_revision b815f03..fd4c78b (378096:378132)
Change log: b815f03..fd4c78b
Full diff: b815f03..fd4c78b

No dependencies changed.
No update to Clang.

TBR=

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

Cr-Commit-Position: refs/heads/master@{#11797}
2016-02-27 12:03:44 +00:00
7b9601edf5 Roll chromium_revision 968c1e7..b815f03 (377935:378096)
Change log: 968c1e7..b815f03
Full diff: 968c1e7..b815f03

No dependencies changed.
No update to Clang.

TBR=

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

Cr-Commit-Position: refs/heads/master@{#11796}
2016-02-27 04:16:54 +00:00
0a00759780 Fix the stereo support in IntelligibilityEnhancer
Review URL: https://codereview.webrtc.org/1729753003

Cr-Commit-Position: refs/heads/master@{#11795}
2016-02-27 01:17:44 +00:00
7ffeab525c Reland "Move webrtc/audio/audio_sink.h to webrtc/ and fix some dependencies."
This is a reland of https://codereview.webrtc.org/1737593002/ minus
the added missing headers in webrtc/{BUILD.gn,webrtc.gyp} and
webrtc/common.gyp that breaks GN in Chromium since it's using
the --check flag (which we should support).

BUG=webrtc:4243, webrtc:5589
TESTED=Tried generating GN files with --check in a Chromium checkout with this patch applied, successfully.
TBR=pbos@webrtc.org, perkj@webrtc.org, solenberg@webrtc.org, tommi@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11794}
2016-02-26 21:46:22 +00:00
f0fcbf3d83 Roll chromium_revision 405f35f..968c1e7 (377868:377935)
Change log: 405f35f..968c1e7
Full diff: 405f35f..968c1e7

No dependencies changed.
No update to Clang.

TBR=

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

Cr-Commit-Position: refs/heads/master@{#11793}
2016-02-26 20:04:34 +00:00
cedddbdf7b Android MediaCodecVideoDecoder: Limit measured decode time to 200ms
This change is done to remove abnormally high decode time measurements for H264 decoding. H264 decoding sometimes keeps a few frames as reference before outputting a new decoded frame. This pipeline causes some frames to get stuck when the source stops sending new frames. When the source starts sending frames again, the decode time measurements for the frames that were stuck will include the pause time, which can be arbitrary high. This CL is a simple fix for this problem by constraining the decode time values to a "reasonable" range.

BUG=b/27306053

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

Cr-Commit-Position: refs/heads/master@{#11792}
2016-02-26 17:36:09 +00:00
3c1657658d Don't allocate buffers for listening sockets.
Listening sockets will not read/write directly, so they don't need buffers.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#11791}
2016-02-26 17:31:41 +00:00
9e69dfdfd5 Java SurfaceTextureHelper: Remove support for external thread
Currently, VideoCapturerAndroid owns a dedicated tread, and
SurfaceTextureHelper get this thread passed in the ctor. In
VideoCapturerAndroid.dispose(), ownership of the thread is passed to
SurfaceTextureHelper so that we can return directly instead of waiting
for the last frame to return.

This CL makes the SurfaceTextureHelper own the thread the whole time
instead, and VideoCapturerAndroid calls getHandler() to get it instead.

BUG=webrtc:5519

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

Cr-Commit-Position: refs/heads/master@{#11790}
2016-02-26 15:45:50 +00:00
54ebfca934 Revert of Cleanup of webrtc::VideoFrame. (patchset #6 id:100001 of https://codereview.webrtc.org/1679323002/ )
Reason for revert:
Breaks downstream compilation. Please make non-breaking API changes for the reland or coordinate fixing downstream code quickly with the sheriff.

Original issue's description:
> Cleanup of webrtc::VideoFrame.
>
> Delete EqualsFrame method, used only by tests. Delete one of the
> CreateFrame methods. Drop return value for CreateEmptyFrame, CreateFrame
> and CopyFrame.
>
> BUG=webrtc:5426
>
> Committed: https://crrev.com/208019637bfed975f8f13b16d40b90e200763cd6
> Cr-Commit-Position: refs/heads/master@{#11783}

TBR=pbos@webrtc.org,perkj@webrtc.org,pthatcher@webrtc.org,mflodman@webrtc.org,marpan@webrtc.org,nisse@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:5426

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

Cr-Commit-Position: refs/heads/master@{#11789}
2016-02-26 15:38:57 +00:00
f8136bac63 Remove add/removal of RTP modules in PacketRouter.
PacketRouter still relies on SendingMedia() which is set to false for
the disabled modules.

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

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

Cr-Commit-Position: refs/heads/master@{#11788}
2016-02-26 15:37:22 +00:00
8b79b07a55 Move RTP module activation into PayloadRouter.
Simplifies PayloadRouter to not accept dynamically-changing modules as
well as usage of PayloadRouter inside ViEChannel::SetSendCodec.

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

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

Cr-Commit-Position: refs/heads/master@{#11787}
2016-02-26 15:31:44 +00:00
9c01725e37 Simplify registration of RTP-header extensions.
Removes per-extension functions in ViEChannel/ViEReceiver and instead
register extensions directly on the RTP module by mapping extension
string to RTP-header-extension type.

BUG=webrtc:5494
R=danilchap@webrtc.org, stefan@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11786}
2016-02-26 15:26:29 +00:00
ff474da11b Roll chromium_revision 38664e7..405f35f (377790:377868)
Change log: 38664e7..405f35f
Full diff: 38664e7..405f35f

No dependencies changed.
No update to Clang.

TBR=

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

Cr-Commit-Position: refs/heads/master@{#11785}
2016-02-26 15:25:52 +00:00
d6f67435fd CQ: Add linux_ubsan to default trybots.
Since it's now green.

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

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

Cr-Commit-Position: refs/heads/master@{#11784}
2016-02-26 15:06:22 +00:00
208019637b Cleanup of webrtc::VideoFrame.
Delete EqualsFrame method, used only by tests. Delete one of the
CreateFrame methods. Drop return value for CreateEmptyFrame, CreateFrame
and CopyFrame.

BUG=webrtc:5426

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

Cr-Commit-Position: refs/heads/master@{#11783}
2016-02-26 14:40:47 +00:00
c63f79a0a5 Fix ubsan warning in byteio_unittest
BUG=webrtc:5490

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

Cr-Commit-Position: refs/heads/master@{#11782}
2016-02-26 13:13:51 +00:00
e31dc95084 Make pbos owner of additional video files.
NOTRY=True

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

Cr-Commit-Position: refs/heads/master@{#11781}
2016-02-26 12:29:17 +00:00
10cd6ff5d0 Roll chromium_revision 7542f07..38664e7 (377632:377790) + set SDK 10.11 on Mac
Change log: 7542f07..38664e7
Full diff: 7542f07..38664e7

Changed dependencies:
* src/buildtools: 97b5c48..14288a0
* src/tools/swarming_client: 71c61c8..a72f46e
DEPS diff: 7542f07..38664e7/DEPS

No update to Clang.

TBR=tkchin@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11780}
2016-02-26 11:21:18 +00:00
686a8efad9 Replace scoped_ptr with unique_ptr in webrtc/media/
BUG=webrtc:5520

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

Cr-Commit-Position: refs/heads/master@{#11779}
2016-02-26 11:00:39 +00:00
029e220593 Removes use of DeRegister Rtp Header Extension for video
BUG=webrtc:1884
R=pbos@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#11778}
2016-02-26 10:58:36 +00:00
74622e0613 Revert of Removed unused cricket::VideoCapturer methods (patchset #2 id:30001 of https://codereview.webrtc.org/1733673002/ )
Reason for revert:
Breaks remoting::protocol::WebrtcVideoCapturerAdapter::Pause'

See https://build.chromium.org/p/chromium.webrtc.fyi/builders/Win%20Builder/builds/3689/steps/compile/logs/stdio

Original issue's description:
> Removed unused cricket::VideoCapturer methods:
>
> void UpdateAspectRatio(int ratio_w, int ratio_h);
> void ClearAspectRatio();
> ool Pause(bool paused);
> Restart(const VideoFormat& capture_format);
> MuteToBlackThenPause(bool muted);
> IsMuted() const
> set_square_pixel_aspect_ratio
> bool square_pixel_aspect_ratio()
>
> This cl also remove the use of messages and posting of state change.
> Further more - a thread checker is added to make sure methods are called on only one thread. Construction can happen on a separate thred.
> It does not add restrictions on what thread frames are delivered on though.
>
> There is more features in VideoCapturer::Onframe related to screen share in ARGB that probably can be cleaned up in a follow up cl.
>
> BUG=webrtc:5426
>
> Committed: https://crrev.com/e9c0cdff2dad2553b6ff6820c0c7429cb2854861
> Cr-Commit-Position: refs/heads/master@{#11773}

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

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

Cr-Commit-Position: refs/heads/master@{#11777}
2016-02-26 10:54:43 +00:00
806706875d iSAC entropy coder: Avoid signed integer overflow
By doing an unsigned instead of a signed addition, we get the exact
same machine code (in non-UBSan builds), but no longer trigger
undefined behavior since unsigned overflow is defined behavior.

BUG=webrtc:5485

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

Cr-Commit-Position: refs/heads/master@{#11776}
2016-02-26 10:52:14 +00:00
db25d2e8c5 Make VideoTrack and VideoTrackRenderers implement rtc::VideoSourceInterface.
This patch tries to only change the interface to VideoTrack, with
minimal changes to the implementation. Some points worth noting:

VideoTrackRenderers should ultimately be deleted, but it is kept for
now since we need an object implementing webrtc::VideoRenderer, and
that shouldn't be VideoTrack.

BUG=webrtc:5426
TBR=glaznev@webrtc.org  // please look at  examples

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

Cr-Commit-Position: refs/heads/master@{#11775}
2016-02-26 09:25:02 +00:00