Commit Graph

9908 Commits

Author SHA1 Message Date
Per
327d8babc8 Add DecodedImageCallback::Decoded() function with custom decode time value.
On Android, we would like to use MediaCodec output buffers to hold decoded frames until they can be rendered to a texture. There can only be one texture buffer used at the same time and therefore the calculated decode time in VCMTiming will be wrong since that calculation will also include the time where the decoder waited for the upper layers (that depend on network jitter and actual render time) to release the frame.

This new method will be used in
https://codereview.webrtc.org/1422963003/

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

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

Cr-Commit-Position: refs/heads/master@{#10576}
2015-11-10 13:00:45 +00:00
805fc710f7 Let Rent-A-Codec™ create and own speech encoders
BUG=webrtc:5028

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

Cr-Commit-Position: refs/heads/master@{#10575}
2015-11-10 12:05:23 +00:00
3cea256806 Reland "Prevent Opus DTX from generating intermittent noise during silence"
The original CL is reviewed at
https://codereview.webrtc.org/1415173005/

A silly mistake was made at the last patch set, and the CL was reverted. This CL is to fix and reland it.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#10574}
2015-11-10 11:49:32 +00:00
626252fa66 Adding minyue@ to some watch lists.
minyue@ (myself) works on multiple audio projects and it is good to keep track of audio related changes. e.g., VOE, ACM, APM and NetEq.

TBR=tina.legrand@webrtc.org

BUG=

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

Cr-Commit-Position: refs/heads/master@{#10573}
2015-11-10 10:47:18 +00:00
77ccfb4d16 Work on flexible mode and screen sharing.
Implement VP8 style screensharing but with spatial layers.
Implement flexible mode.

Files from other patches:
generic_encoder.cc
layer_filtering_transport.cc

BUG=webrtc:4914

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

Cr-Commit-Position: refs/heads/master@{#10572}
2015-11-10 10:19:20 +00:00
ce83ae1c19 Improve informative message in codereview.settings.
In https://codereview.webrtc.org/1389963002 the message
displayed when trying to create a CL from an unsupported
location was improved. However it's confusing for developers
working from a WebRTC checkout if they stand in src/webrtc
when trying to create a CL.

R=henrika@webrtc.org, phoglund@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10571}
2015-11-10 10:08:36 +00:00
c12be3984f -Removed the indirect error message reporting in aec and aecm.
-Made the component error messages generic to be an unspecified error message.

BUG=webrtc:5099

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

Cr-Commit-Position: refs/heads/master@{#10570}
2015-11-10 07:53:53 +00:00
952892a28a Fix a 64-bit pointer truncation bug found by VC++ 2015
When converting from void* to unsigned long long it is dangerous to go
through unsigned long because for VC++ 64-bit builds this will be 32
bits. When casting a pointer to an integral type the safest type to
choose for the integral cast is always intptr_t or uintptr_t.

BUG=440500
NOPRESUBMIT=true

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

Cr-Commit-Position: refs/heads/master@{#10569}
2015-11-10 06:52:00 +00:00
e36de90ac1 Roll chromium_revision 7818e07..95473df (358577:358772)
Change log: 7818e07..95473df
Full diff: 7818e07..95473df

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/1438523002

Cr-Commit-Position: refs/heads/master@{#10568}
2015-11-10 04:35:59 +00:00
b4a753fdb5 Revert of Prevent Opus DTX from generating intermittent noise during silence (patchset #10 id:250001 of https://codereview.webrtc.org/1415173005/ )
Reason for revert:
Breaks voe_auto_test on all three "large tests bots".
https://build.chromium.org/p/client.webrtc/builders/Win32%20Release%20%5Blarge%20tests%5D/builds/5630/steps/voe_auto_test/logs/stdio
https://build.chromium.org/p/client.webrtc/builders/Mac32%20Release%20%5Blarge%20tests%5D/builds/5599/steps/voe_auto_test/logs/stdio
https://build.chromium.org/p/client.webrtc/builders/Linux64%20Release%20%5Blarge%20tests%5D/builds/5645/steps/voe_auto_test/logs/stdio

Notice these bots are no longer a part of the default trybot set, so they have to be run manually when working with code that affects their tests (they were removed as they queued up all the time in the CQ, and usually don't catch breakages).

Original issue's description:
> Prevent Opus DTX from generating intermittent noise during silence.
>
> Opus may have an internal error that causes this. Here we make a workaround by adding some small disturbance to the input signals to break a long sequence of zeros.
>
> BUG=webrtc:5127
>
> Committed: https://crrev.com/f475add57eada116bc960fe2935876ec8c077977
> Cr-Commit-Position: refs/heads/master@{#10565}

TBR=tina.legrand@webrtc.org,kwiberg@webrtc.org,solenberg@webrtc.org,minyue@webrtc.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:5127

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

Cr-Commit-Position: refs/heads/master@{#10567}
2015-11-09 21:27:11 +00:00
c1cd2bbd79 Turned off progress report for finished processing when the progress report is explicitly deactivated
BUG=webrtc:5099

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

Cr-Commit-Position: refs/heads/master@{#10566}
2015-11-09 18:38:12 +00:00
f475add57e Prevent Opus DTX from generating intermittent noise during silence.
Opus may have an internal error that causes this. Here we make a workaround by adding some small disturbance to the input signals to break a long sequence of zeros.

BUG=webrtc:5127

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

Cr-Commit-Position: refs/heads/master@{#10565}
2015-11-09 18:08:20 +00:00
ab48ef3534 Remove legacy audio device glue files.
I cannot find any references to these old locations.

TESTED=
git cl try -c --bot=win_compile_rel --bot=linux_compile_rel --bot=android_compile_rel --bot=mac_compile_rel --bot=ios_rel -m tryserver.webrtc

R=henrikg@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10564}
2015-11-09 16:44:05 +00:00
83dfad6853 VideoCapturerAndroid: Changed camera freeze check to check that all frames are pending before reporting a client error.
BUG=b/25514149

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

Cr-Commit-Position: refs/heads/master@{#10563}
2015-11-09 15:39:55 +00:00
48407f7122 Changed queue implementation to the proposed vector-based solution.
Added unit tests.

BUG=webrtc:5099
TBR=hlundin-webrtc

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

Cr-Commit-Position: refs/heads/master@{#10562}
2015-11-09 13:24:56 +00:00
cbe0cd4252 Roll chromium_revision 5477ec0..7818e07 (358562:358577)
Change log: 5477ec0..7818e07
Full diff: 5477ec0..7818e07

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/1422313005

Cr-Commit-Position: refs/heads/master@{#10561}
2015-11-09 11:54:32 +00:00
1f1912d1f0 Added unittest of the locking functionality in the audio processing module
The test is currently disabled as it takes too long to run in a coffe-cup manner

BUG=webrtc:5099

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

Cr-Commit-Position: refs/heads/master@{#10560}
2015-11-09 11:13:25 +00:00
89ef6cc13e Attempt to open Android camera later if it is already in use.
This change VideoCapturerAndroid to attempt 3 times with a period of 300ms to open the camera if it fails.
This is so that if another application have it already opened, it would have more time to release it.
BUG=b/25190234

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

Cr-Commit-Position: refs/heads/master@{#10559}
2015-11-09 09:35:26 +00:00
1ebf8ba368 SurfaceViewRenderer: Drop old frames instead of new frames
If SurfaceViewRenderer can't keep up with the stream of incoming frames it has to drop frames. Currently, new frames are dropped until the old pending frame is rendered. This CL drops the old pending frame instead.

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

Cr-Commit-Position: refs/heads/master@{#10558}
2015-11-09 08:41:55 +00:00
e15303b74c Roll chromium_revision 78fd1c0..5477ec0 (358554:358562)
Change log: 78fd1c0..5477ec0
Full diff: 78fd1c0..5477ec0

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/1421773006

Cr-Commit-Position: refs/heads/master@{#10557}
2015-11-09 03:55:16 +00:00
b17900cd7a Roll chromium_revision 56d4322..78fd1c0 (358550:358554)
Change log: 56d4322..78fd1c0
Full diff: 56d4322..78fd1c0

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/1418733003

Cr-Commit-Position: refs/heads/master@{#10556}
2015-11-08 19:54:19 +00:00
3bfef44a4d Changed timeout to 6s for reporting android camera freeze.
Also distinguish between camera failures and failures due to that buffers has not been returned.
Adds unit tests for making sure CameraEventHandler.onError is triggered if frames are not returned.

BUG=b/25514149

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

Cr-Commit-Position: refs/heads/master@{#10555}
2015-11-08 14:58:22 +00:00
e2e1de494f Roll chromium_revision fa2f634..56d4322 (358544:358550)
Change log: fa2f634..56d4322
Full diff: fa2f634..56d4322

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/1433603003

Cr-Commit-Position: refs/heads/master@{#10554}
2015-11-08 11:54:21 +00:00
b8c5af70ff Roll chromium_revision 4598ddc..fa2f634 (358535:358544)
Change log: 4598ddc..fa2f634
Full diff: 4598ddc..fa2f634

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/1425933006

Cr-Commit-Position: refs/heads/master@{#10553}
2015-11-08 03:54:59 +00:00
0ad924f1fb Roll chromium_revision e99453b..4598ddc (358523:358535)
Change log: e99453b..4598ddc
Full diff: e99453b..4598ddc

Changed dependencies:
* src/third_party/libvpx_new/source/libvpx: c664170..eba14dd
DEPS diff: e99453b..4598ddc/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/1412423014

Cr-Commit-Position: refs/heads/master@{#10552}
2015-11-07 19:54:24 +00:00
110c19ba98 Roll chromium_revision a469250..e99453b (358505:358523)
Change log: a469250..e99453b
Full diff: a469250..e99453b

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/1419823013

Cr-Commit-Position: refs/heads/master@{#10551}
2015-11-07 11:54:17 +00:00
a40f2ec9a9 Roll chromium_revision e2bf349..a469250 (358372:358505)
Change log: e2bf349..a469250
Full diff: e2bf349..a469250

Changed dependencies:
* src/third_party/libyuv: c2bff1a..98eb102
* src/third_party/nss: aab0d08..a676aa0
DEPS diff: e2bf349..a469250/DEPS

No update to Clang.

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

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

Cr-Commit-Position: refs/heads/master@{#10550}
2015-11-07 03:55:10 +00:00
39d8bee397 Make ACMCodecDB private to RentACodec
BUG=webrtc:5028

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

Cr-Commit-Position: refs/heads/master@{#10549}
2015-11-07 00:22:50 +00:00
566ef247b9 Move VoiceEngineObserver into AudioSendStream so that we detect typing noises and return properly in GetStats().
BUG=webrtc:4690

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

Cr-Commit-Position: refs/heads/master@{#10548}
2015-11-06 23:34:58 +00:00
19299fb28b Remove interface directories kept to avoid breaking downstream.
This is a follow-up CL for https://codereview.webrtc.org/1417683006
now that downstream code has been updated to use the 'include' directories
for header files instead.

BUG=webrtc:5095
TESTED=git cl try -c --bot=android_compile_rel --bot=linux_compile_rel --bot=win_compile_rel --bot=mac_compile_rel -m tryserver.webrtc --bot=ios_rel

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

Cr-Commit-Position: refs/heads/master@{#10547}
2015-11-06 23:24:52 +00:00
d6c0f8cac1 Remove ACMCodecDB::Codec, and make the rest of ACMCodecDB private
BUG=webrtc:5028

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

Cr-Commit-Position: refs/heads/master@{#10546}
2015-11-06 22:28:08 +00:00
23725e09c6 Remove ICU usage from jni_helpers.cc.
JNI already has jstring<->UTF8 string conversion, so using that should
save ~1mb off android binaries (ICU is *large*), probably around
300-400k after compression.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#10545}
2015-11-06 21:56:11 +00:00
a821afec8a Roll chromium_revision 736929d..e2bf349 (358303:358372)
Change log: 736929d..e2bf349
Full diff: 736929d..e2bf349

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/1416513010

Cr-Commit-Position: refs/heads/master@{#10544}
2015-11-06 20:37:48 +00:00
bb79127a87 Add Riku Voipio to AUTHORS.
Contributed this openmax patch:
crrev.com/4636f5bb744c0828ac853e1a513e375886fcd424

R=riku.voipio@linaro.org

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

Cr-Commit-Position: refs/heads/master@{#10543}
2015-11-06 18:52:06 +00:00
d66daa2d2f Removed cname and receiver_reference_time_report from proto and logging code. Changed logging of RTCP to omit messages of type SDES and APP.
BUG=

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

Cr-Commit-Position: refs/heads/master@{#10542}
2015-11-06 17:00:21 +00:00
56b1128c8f Change to use local Random object instead of global rand() in the RtcEventLog unit test.
Removed Rand(int low, int high) since that function outputs results that are non-random and/or outside the interval if low is negative.

Added new Uniform(uint32_t, uint32_t) function to replace Rand(int low, int high).

Changed various unit tests to use the new functions.
BUG=

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

Cr-Commit-Position: refs/heads/master@{#10541}
2015-11-06 13:14:01 +00:00
698aa8d26e Cleanup workaround for grit version dependency
BUG=webrtc:5160
R=phoglund@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10540}
2015-11-06 12:45:35 +00:00
c4a1c370aa Removed vie_defines.h
The defines still in use was only used in single files, so they were
moved to these specific cc-files.

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

Cr-Commit-Position: refs/heads/master@{#10539}
2015-11-06 12:33:56 +00:00
d812e14ff1 Roll chromium_revision d3da94c..736929d (358098:358303)
Change log: d3da94c..736929d
Full diff: d3da94c..736929d

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/1407893007

Cr-Commit-Position: refs/heads/master@{#10538}
2015-11-06 12:05:56 +00:00
dc0da59eba Remove old system_wrappers event_tracer.h.
Replaced by webrtc/base/event_tracer.h and no longer used.

BUG=
R=tommi@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10537}
2015-11-06 10:16:56 +00:00
fb3d8b3df2 Remove ACMCodecDB::CodecFreq
BUG=webrtc:5028

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

Cr-Commit-Position: refs/heads/master@{#10536}
2015-11-06 09:24:16 +00:00
288886b2ec Pass audio to AudioEncoder::Encode() in an ArrayView
Instead of in separate pointer and size arguments.

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

Cr-Commit-Position: refs/heads/master@{#10535}
2015-11-06 09:21:39 +00:00
1a4e9d7572 Roll chromium_revision 74a3f59..d3da94c (358040:358098)
Change log: 74a3f59..d3da94c
Full diff: 74a3f59..d3da94c

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/1420703009

Cr-Commit-Position: refs/heads/master@{#10534}
2015-11-06 09:15:01 +00:00
c253a1c00e Reland of "Change type of pid_diff (int16_t -> uint8_t) according to updates in RTP payload profile."
BUG=webrtc:5144
TBR=mflodman@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10533}
2015-11-06 08:12:09 +00:00
b7a5c16d2c Revert of Add aecdump support to audioproc_f. (patchset #8 id:200001 of https://codereview.webrtc.org/1409943002/ )
This is the second revert. The first attempt in https://codereview.webrtc.org/1423693008/
was missing a subtle curly brace caused by a merge conflict.
I'm going to let this one go through the CQ.

Reason for revert:
This breaks iOS GYP generation as described on http://www.webrtc.org/native-code/ios
I'm going to drive getting the build_with_libjingle=1 setting removed from the bots to match the official instructions.

See https://code.google.com/p/webrtc/issues/detail?id=4653 for more context, as this is exactly what that issue tries to solve.

Original issue's description:
> 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.
>
> Committed: https://crrev.com/bdafe31b86e9819b0adb9041f87e6194b7422b08
> Cr-Commit-Position: refs/heads/master@{#10460}

TBR=aluebs@webrtc.org,peah@webrtc.org,andrew@webrtc.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#10532}
2015-11-05 20:33:25 +00:00
006d93d3c6 Added protobuf message for loss-based BWE events, and wired it up to the send side bandwidth estimator.
BUG=

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

Cr-Commit-Position: refs/heads/master@{#10531}
2015-11-05 20:02:19 +00:00
962c5ce7e8 Re-enable VP9 resize test.
TBR=stefan@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10530}
2015-11-05 18:11:49 +00:00
cc4989a458 Remove BaseUnitTest suppression.
Test no longer exists and doesn't need to be suppressed on DrMemory.

BUG=webrtc:3904
TBR=kjellander@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10529}
2015-11-05 17:21:09 +00:00
586c066cfc Remove DrMemory gtest_exclude for dead test.
VideoSendStreamTest.RetransmitsNackOverRtxWithPacing no longer exists
and doesn't have to be suppressed.

BUG=webrtc:3471
TBR=kjellander@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#10528}
2015-11-05 17:15:19 +00:00
b0a078b84e Roll chromium_revision b483788..74a3f59 (358023:358040)
Change log: b483788..74a3f59
Full diff: b483788..74a3f59

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/1405063007

Cr-Commit-Position: refs/heads/master@{#10527}
2015-11-05 16:59:42 +00:00