14320 Commits

Author SHA1 Message Date
stefan
abcc3de169 Add pps id and sps id parsing to the h.264 depacketizer.
BUG=webrtc:6208

Review-Url: https://codereview.webrtc.org/2238253002
Cr-Commit-Position: refs/heads/master@{#13838}
2016-08-22 08:20:43 +00:00
sakal
86ccd7bfba Revert of Add field_trial_default dependency to libjingle_peerconnection (patchset #3 id:40001 of https://codereview.webrtc.org/2120673004/ )
Reason for revert:
Breaks chromium.

Original issue's description:
> Add field_trial_default dependency to libjingle_peerconnection
>
> This is needed for webrtc::field_trial::FindFullName in peerconnection.cc
>
> NOTRY=True
>
> Committed: https://crrev.com/a7a01df2aebe7108afad208ccd0341c2f0bc7b3b
> Cr-Commit-Position: refs/heads/master@{#13836}

TBR=pthatcher@webrtc.org,pthatcher@chromium.org,kjellander@webrtc.org,arlolra@gmail.com
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

Review-Url: https://codereview.webrtc.org/2263063002
Cr-Commit-Position: refs/heads/master@{#13837}
2016-08-22 07:26:11 +00:00
arlolra
a7a01df2ae Add field_trial_default dependency to libjingle_peerconnection
This is needed for webrtc::field_trial::FindFullName in peerconnection.cc

NOTRY=True

Review-Url: https://codereview.webrtc.org/2120673004
Cr-Commit-Position: refs/heads/master@{#13836}
2016-08-22 06:48:14 +00:00
magjed
8177452698 iOS H264VideoToolBoxEncoder: Stop scaling native CVPixelBuffers
If the input to H264VideoToolBoxEncoder is a native CVPixelBuffer and
the quality scaler requests scaling, we fall back to a slow path where
the buffer is converted from NV12 to I420 on the CPU and then uploaded
to a native CVPixelBuffer again. It turns out this scaling is not needed
and that the H264VideoToolBoxEncoder can handle the scaling internally.

BUG=b/30939444

Review-Url: https://codereview.webrtc.org/2258103003
Cr-Commit-Position: refs/heads/master@{#13835}
2016-08-20 17:53:32 +00:00
henrika
d7a89dbe8b Revert of Cleanup of the AudioDeviceBuffer class (patchset #6 id:100001 of https://codereview.webrtc.org/2256833003/ )
Reason for revert:
Seems to break an external client.

Original issue's description:
> Cleanup of the AudioDeviceBuffer class.
>
> WebRTC works on 10ms buffer sizes in both directions but this class has contained
> support for any size (with some limits) and for changes on the fly. It makes no sense to maintain such code and we have no tests to test it. This CL ensures that only 10ms audio buffers are supported and that nothing can be changed on the fly.
>
> It also updates the style to follow the Google C++ style guide.
>
> Finally, I remove very old (not tested and not maintained) support for file
> handling since the code is never used. It was more or less dead code.
>
> BUG=NONE
> R=magjed@webrtc.org
>
> Committed: https://crrev.com/cf327b45b9f5738950d4fca2b6a7b6030d508cdf
> Cr-Commit-Position: refs/heads/master@{#13833}

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

Review-Url: https://codereview.webrtc.org/2260183002
Cr-Commit-Position: refs/heads/master@{#13834}
2016-08-19 15:09:29 +00:00
henrika
cf327b45b9 Cleanup of the AudioDeviceBuffer class.
WebRTC works on 10ms buffer sizes in both directions but this class has contained
support for any size (with some limits) and for changes on the fly. It makes no sense to maintain such code and we have no tests to test it. This CL ensures that only 10ms audio buffers are supported and that nothing can be changed on the fly.

It also updates the style to follow the Google C++ style guide.

Finally, I remove very old (not tested and not maintained) support for file
handling since the code is never used. It was more or less dead code.

BUG=NONE
R=magjed@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#13833}
2016-08-19 14:38:07 +00:00
danilchap
da161d795c Reformat rtcp_receiver
git cl format --full

BUG=webrtc:5565
NOTRY=true

Review-Url: https://codereview.webrtc.org/2259213002
Cr-Commit-Position: refs/heads/master@{#13832}
2016-08-19 14:29:51 +00:00
ehmaldonado
861da3c662 Refactor neteq_test_support.
Take 'tools/neteq_quality_test.cc' and 'tools/neteq_quality_test.h' outside of neteq_test_support into their own target, neteq_quality_test_support.

BUG=webrtc:6228
NOTRY=True

Review-Url: https://codereview.webrtc.org/2252413002
Cr-Commit-Position: refs/heads/master@{#13831}
2016-08-19 14:02:31 +00:00
sakal
294fb050a0 Add a timeout for starting the camera on CameraCapturer.
This allows to at least get a camera error back if the camera thread freezes. Application can use this as a signal to restart the program.

R=magjed@webrtc.org

Review-Url: https://codereview.webrtc.org/2257123002
Cr-Commit-Position: refs/heads/master@{#13830}
2016-08-19 10:02:44 +00:00
ehmaldonado
bcba64a0fa GN: Add "//build/config/sanitizers:deps" as a dependency to executable targets.
When the sanitizer bots are switched to GN, this needs to be included as a dependency so that the executables can be compiled.

BUG=webrtc:6215
NOTRY=True

Review-Url: https://codereview.webrtc.org/2250893003
Cr-Commit-Position: refs/heads/master@{#13829}
2016-08-19 09:11:15 +00:00
kthelgason
4a85abb80e Add support for more resolutions on iOS/macOS
BUG=

Review-Url: https://codereview.webrtc.org/2231033002
Cr-Commit-Position: refs/heads/master@{#13828}
2016-08-19 08:24:49 +00:00
kjellander
ec5c9061c8 GN: Fix errors when some variables are set to non-default values.
BUG=webrtc:6223
TESTED=Passing generation with:
gn gen out/Default --args='rtc_build_expat=false rtc_build_json=false rtc_build_libyuv=false'
NOTRY=True

Review-Url: https://codereview.webrtc.org/2257753002
Cr-Commit-Position: refs/heads/master@{#13827}
2016-08-19 08:07:33 +00:00
kjellander
72333d2ca0 Add kjellander@webrtc.org to more BUILD.gn OWNERS files.
NOTRY=True

Review-Url: https://codereview.webrtc.org/2258983003
Cr-Commit-Position: refs/heads/master@{#13826}
2016-08-19 07:48:39 +00:00
vopatop.skam
96b6b8336a iOS: add type to peer connection local streams
BUG=

Review-Url: https://codereview.webrtc.org/2249173002
Cr-Commit-Position: refs/heads/master@{#13825}
2016-08-18 21:21:27 +00:00
Peter Boström
c21560b3e1 Remove pbos@webrtc.org from autoroll TBRs.
BUG=
TBR=kjellander@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#13824}
2016-08-18 19:10:49 +00:00
Taylor Brandstetter
9b5306c4ef Adding test for unordered, fragmented SCTP message delivery.
This functionality broke after a recent usrsctp roll. This test would be
useful in catching issues that arise in the future.

BUG=633959
R=honghaiz@webrtc.org, pthatcher@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#13823}
2016-08-18 18:40:45 +00:00
peah
b5b30908dc Corrected the testvectors for the level controller
bitexactness test. The activation of the test will
be done in another CL.

BUG=

Review-Url: https://codereview.webrtc.org/2257733002
Cr-Commit-Position: refs/heads/master@{#13822}
2016-08-18 16:47:52 +00:00
isheriff
8df4d0e426 Add playout_delay_oracle_unittest as gn target
BUG=

Review-Url: https://codereview.webrtc.org/2256743002
Cr-Commit-Position: refs/heads/master@{#13821}
2016-08-18 14:53:44 +00:00
maxmorin
3a11933a63 Remove audio_device_test_func.
This code does not work and hasn't been used in a long time. It also
lacks a GN target. There's no reason to save it.

BUG=none

Review-Url: https://codereview.webrtc.org/2255173002
Cr-Commit-Position: refs/heads/master@{#13820}
2016-08-18 14:20:48 +00:00
peah
644fa96886 Added recording of the configuration for the AudioFrame API call
BUG=webrtc:6227

Review-Url: https://codereview.webrtc.org/2252043003
Cr-Commit-Position: refs/heads/master@{#13819}
2016-08-18 13:48:38 +00:00
minyue
7320866091 Reland of Adding audio to video_quality_test.
The original commit was https://codereview.webrtc.org/2136573002/.

BUG=

Review-Url: https://codereview.webrtc.org/2259783002
Cr-Commit-Position: refs/heads/master@{#13818}
2016-08-18 13:28:59 +00:00
danilchap
2b616397de Remove TMMBRSet class
by cleaning RTCPReceiveInfo class
and following cleaning of RTCPReceiver::BoundingSet function.

BUG=webrtc:5565

Review-Url: https://codereview.webrtc.org/2254703003
Cr-Commit-Position: refs/heads/master@{#13817}
2016-08-18 13:17:48 +00:00
ossu
e1f5b4a7fe voice_engine: Removed old variants of Channel constructor and CreateChannel
These are no longer used internally and their interface is not to be
considered public. They were due to be changed in
https://codereview.webrtc.org/1993783002/ but remained due to a
misunderstanding.

Review-Url: https://codereview.webrtc.org/2082483003
Cr-Commit-Position: refs/heads/master@{#13816}
2016-08-18 11:23:04 +00:00
henrik.lundin
38d840c35a NetEq: Changing checked_cast to saturated_cast
The cast involves packet_len_samp, which is derived from the timestamps
and sequence numbers of incoming packets. Being values from the outside,
these should be treated as if any value is possible, making a
checked_cast unsuitable. Changing instead to saturated_cast to avoid
overflow with out-of-bounds values.

Review-Url: https://codereview.webrtc.org/2243403007
Cr-Commit-Position: refs/heads/master@{#13815}
2016-08-18 10:49:41 +00:00
kwiberg
96bbdd585e WebRtcSpl_SynthesisQMF: Fix UBSan fuzzer bug (left shift of negative value)
BUG=chromium:614033

Review-Url: https://codereview.webrtc.org/2253943002
Cr-Commit-Position: refs/heads/master@{#13814}
2016-08-18 10:17:10 +00:00
peah
e9a6acfbf5 Added missing unittest to the modules/BUILD.gn build file
NOTRY=True

BUG=

Review-Url: https://codereview.webrtc.org/2255093002
Cr-Commit-Position: refs/heads/master@{#13813}
2016-08-18 09:41:51 +00:00
kjellander
cb2d701946 Add kjellander as BUILD.gn OWNER in webrtc/modules
NOTRY=True

Review-Url: https://codereview.webrtc.org/2258593003
Cr-Commit-Position: refs/heads/master@{#13812}
2016-08-18 09:39:14 +00:00
danilchap
71fead2146 Reland of StartTimestamp generated randomly in RtpSender constructor (patchset #1 id:1 of https://codereview.webrtc.org/2248413002/ )
Reason for revert:
Reland: downstream code expectation about rtp_sender timestamp adjusted.

Original issue's description:
> Revert of StartTimestamp generated randomly in RtpSender constructor (patchset #4 id:60001 of https://codereview.webrtc.org/2241193002/ )
>
> Reason for revert:
> Breaks downstream code.
>
> Original issue's description:
> > StartTimestamp generated randomly in RtpSender constructor
> > instead of not-randomly at SetSendingState(true)
> > Renamed to timestamp_offset_ to better match meaning of the variable.
> >
> > R=asapersson@webrtc.org, terelius@webrtc.org
> >
> > Committed: https://crrev.com/4466782ae43e1b1125a55ee7e18abd10dd37cede
> > Cr-Commit-Position: refs/heads/master@{#13796}
>
> TBR=asapersson@webrtc.org,terelius@webrtc.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
>
> Committed: https://crrev.com/86c96948e340cf8b879bddb0c7293f3b5ad4dad4
> Cr-Commit-Position: refs/heads/master@{#13798}

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

Review-Url: https://codereview.webrtc.org/2257083002
Cr-Commit-Position: refs/heads/master@{#13811}
2016-08-18 09:02:16 +00:00
ossu
d4e9f62ea7 Updated AudioDecoderFactory to list AudioCodecSpecs instead of SdpAudioFormats.
BUG=webrtc:5805

Review-Url: https://codereview.webrtc.org/2123923004
Cr-Commit-Position: refs/heads/master@{#13810}
2016-08-18 09:02:15 +00:00
magjed
235020dba6 Roll chromium_revision 915e47250f..e3860bd297 (412201:412289)
Change log: 915e47250f..e3860bd297
Full diff: 915e47250f..e3860bd297

No dependencies changed.
No update to Clang.

NOTRY=TRUE
TBR=
BUG=webrtc:6219

Review-Url: https://codereview.webrtc.org/2253973002
Cr-Commit-Position: refs/heads/master@{#13809}
2016-08-18 08:45:53 +00:00
sakal
010f092919 GN: Add Android support to video_engine_tests.
R=kjellander@webrtc.org
NOTRY=True

Review-Url: https://codereview.webrtc.org/2246423002
Cr-Commit-Position: refs/heads/master@{#13808}
2016-08-18 07:42:05 +00:00
Honghai Zhang
fd16da290c Do not switch to a high-cost connection that is not receiving.
This prevents connection switching due to remote-side network down.

R=deadbeef@webrtc.org, pthatcher@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#13807}
2016-08-17 23:12:58 +00:00
tkchin
41a3287472 Nil out EAGLContext explicitly on RTCEAGLVideoView dealloc.
Theoretical fix to address some EAGLContext issues from other UIImageViews that could be active.

NOTRY=True
BUG=

Review-Url: https://codereview.webrtc.org/2259513002
Cr-Commit-Position: refs/heads/master@{#13806}
2016-08-17 23:03:09 +00:00
Alex Glaznev
869dab775c Disable Intel VP8 HW encoder.
Need to investigate dequeueOutputBuffer failure on Asus
Zenfones before re-enabling back.

BUG=b/30890961
R=jiayl@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#13805}
2016-08-17 22:41:22 +00:00
noahric
6a35590d14 Add code for dummy file audio to fallback to dummy audio.
BUG=

Review-Url: https://codereview.webrtc.org/2250853002
Cr-Commit-Position: refs/heads/master@{#13804}
2016-08-17 22:19:55 +00:00
Alex Glaznev
7c0f8ee67a Avoid null pointer exception if Android getCameraInfo fails.
BUG=b/30890971
R=magjed@webrtc.org, sakal@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#13803}
2016-08-17 22:18:27 +00:00
noahric
d8a72f0ab2 Close input file in FileAudioDevice::StopRecording.
Also added some more logging, to help track down start/stop, start
failure, and the name of the file used.

BUG=

Review-Url: https://codereview.webrtc.org/2253763002
Cr-Commit-Position: refs/heads/master@{#13802}
2016-08-17 22:14:57 +00:00
magjed
78810b633c Expose media constraint string constants as ObjC NSStrings
Review-Url: https://codereview.webrtc.org/2252783003
Cr-Commit-Position: refs/heads/master@{#13801}
2016-08-17 18:07:44 +00:00
kwiberg
d22854bf7d FilePlayer: Remove unused default values for arguments
The functions in question were virtual, so we would've wanted to get
rid of the default values even if callers had relied on them.

Review-Url: https://codereview.webrtc.org/2045943004
Cr-Commit-Position: refs/heads/master@{#13800}
2016-08-17 16:27:08 +00:00
henrika
4a42900540 Removes redundant log warning in WebRtcAudioManager.
Trivial patch which avoids logs that are of no value.

BUG=NONE

Review-Url: https://codereview.webrtc.org/2250403002
Cr-Commit-Position: refs/heads/master@{#13799}
2016-08-17 15:43:59 +00:00
danilchap
86c96948e3 Revert of StartTimestamp generated randomly in RtpSender constructor (patchset #4 id:60001 of https://codereview.webrtc.org/2241193002/ )
Reason for revert:
Breaks downstream code.

Original issue's description:
> StartTimestamp generated randomly in RtpSender constructor
> instead of not-randomly at SetSendingState(true)
> Renamed to timestamp_offset_ to better match meaning of the variable.
>
> R=asapersson@webrtc.org, terelius@webrtc.org
>
> Committed: https://crrev.com/4466782ae43e1b1125a55ee7e18abd10dd37cede
> Cr-Commit-Position: refs/heads/master@{#13796}

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

Review-Url: https://codereview.webrtc.org/2248413002
Cr-Commit-Position: refs/heads/master@{#13798}
2016-08-17 15:12:27 +00:00
kwiberg
5a25d9504a FileRecorder + FilePlayer: Let Create functions return unique_ptr
Because passing ownership in raw pointers makes kittens cry.

This also means we can ditch the Destroy functions and the protected
destructors. (Well, almost. We need to keep the old CreateFilePlayer
and DestroyFilePlayer around for a little while longer because of an
external caller.)

Review-Url: https://codereview.webrtc.org/2049683003
Cr-Commit-Position: refs/heads/master@{#13797}
2016-08-17 14:31:18 +00:00
Danil Chapovalov
4466782ae4 StartTimestamp generated randomly in RtpSender constructor
instead of not-randomly at SetSendingState(true)
Renamed to timestamp_offset_ to better match meaning of the variable.

R=asapersson@webrtc.org, terelius@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#13796}
2016-08-17 13:07:49 +00:00
ehmaldonado
2ae1fb62f6 Fix get_landmines.py script.
BUG=webrtc:6216
NOTRY=True

Review-Url: https://codereview.webrtc.org/2250343002
Cr-Commit-Position: refs/heads/master@{#13795}
2016-08-17 11:00:47 +00:00
kwiberg
144dd27056 FileRecorderImpl and FilePlayerImpl don't need their own .h and .cc files
They are implementations of interfaces that are only ever exposed
via "create" functions, so the entire class definitions can be put in
anonymous namespaces in the .cc files that defines the "create"
functions.

NOPRESUBMIT=true

Review-Url: https://codereview.webrtc.org/2038513002
Cr-Commit-Position: refs/heads/master@{#13794}
2016-08-17 09:46:57 +00:00
ossu
c54071d8ab WebRtcVoiceEngine: Use AudioDecoderFactory to generate recv codecs.
Reland of https://codereview.webrtc.org/2072753002/ which broke
chromium due to how their build was setup. This issue should now be
resolved.

Changed WebRtcVoiceEngine to present receive codecs from the formats
provided by its decoder factory. Added supported formats to
BuiltinAudioDecoderFactory. Added helper functions for creating some
simple decoder factories for mocking.

Created a PayloadTypeMapper for assigning payload types to formats. I
think we'll eventually want to use this further up, or possibly in
both the audio and video sides. It would be best if the engines didn't
have to talk payload types at all, but it might be more difficult to
get around when payload types depend on each-other, like the RTX
codecs for video.

BUG=webrtc:5805
TBR=ivoc@webrtc.org

Review-Url: https://codereview.webrtc.org/2250683002
Cr-Commit-Position: refs/heads/master@{#13793}
2016-08-17 09:45:47 +00:00
stefan
a93d5ac019 Don't simulate probing based on rtc event logs since we don't have that info logged.
BUG=webrtc:6217

Review-Url: https://codereview.webrtc.org/2250963002
Cr-Commit-Position: refs/heads/master@{#13792}
2016-08-17 09:14:38 +00:00
philipel
eb680eac5d CongestionController::SetBweBitrates may now trigger probing.
BUG=webrtc:5859
R=stefan@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#13791}
2016-08-17 09:12:14 +00:00
noahric
c594aa61bc Add a gyp/gn option to use dummy audio file devices.
Conceptually, dummy audio file devices are a "platform", like
win/mac/linux, and so the conditional slots under
include_internal_audio_device. When enabled, use_dummy_audio_file_devices
disables whatever platform-specific audio layer would have been used and
turns on dummy file device support.

BUG=

Review-Url: https://codereview.webrtc.org/2250483002
Cr-Commit-Position: refs/heads/master@{#13790}
2016-08-17 01:21:23 +00:00
Honghai Zhang
e05bcc22b3 Do not switch a connection if the new connection is not ready to send packets.
There is no benefit of making such switches.

R=deadbeef@webrtc.org, pthatcher@webrtc.org

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

Cr-Commit-Position: refs/heads/master@{#13789}
2016-08-17 01:19:21 +00:00