kjellander@webrtc.org
0fcaf99b71
Enable cpplint for webrtc/video_engine
...
Enable cpplint and have it use a whitelist that also checks
in subdirectories.
Move the cpplint check so it runs before the pylint check
since that one always run and increases the time to errors
for cpplint.
Fix all cpplint errors in webrtc/video_engine.
BUG=webrtc:5149
TESTED=Fixed issues reported by:
find webrtc/video_engine -type f -name *.cc -o -name *.h | xargs cpplint.py
followed by 'git cl presubmit'.
R=pbos@chromium.org , phoglund@chromium.org
TBR=pbos@webrtc.org , phoglund@webrtc.org
Review URL: https://codereview.webrtc.org/1481723003 .
Cr-Commit-Position: refs/heads/master@{#10808}
2015-11-26 14:25:02 +00:00
Henrik Kjellander
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
Åsa Persson
746210f46d
Remove unused overuse detection metric (capture jitter).
...
BUG=
R=pbos@webrtc.org , stefan@webrtc.org
Review URL: https://codereview.webrtc.org/1250593002 .
Cr-Commit-Position: refs/heads/master@{#9881}
2015-09-08 08:52:54 +00:00
Asa Persson
cddb3676e3
Remove unused metric in overuse detector.
...
BUG=
R=stefan@webrtc.org
Review URL: https://codereview.webrtc.org/1237963002 .
Cr-Commit-Position: refs/heads/master@{#9590}
2015-07-16 06:08:20 +00:00
Peter Boström
4b91bd0897
Move frame input (ViECapturer) to webrtc/video/.
...
Renames ViECapturer to VideoCaptureInput and initializes several
parameters on construction instead of setters.
Also removes an old deadlock suppression.
BUG=1695, 2999
R=asapersson@webrtc.org , mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/53559004 .
Cr-Commit-Position: refs/heads/master@{#9508}
2015-06-26 04:58:23 +00:00
Peter Boström
300eeb68f5
Remove VideoEngine interfaces.
...
Removes ViE interfaces, _impl.cc files, managers (such as
ViEChannelManager and ViEInputManager) as well as ViESharedData.
Interfaces necessary to implement observers have been moved to a
corresponding header (such as vie_channel.h).
BUG=1695, 4491
R=mflodman@webrtc.org , solenberg@webrtc.org
TBR=pthatcher@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/55379004
Cr-Commit-Position: refs/heads/master@{#9179}
2015-05-12 14:51:08 +00:00
kjellander@webrtc.org
14665ff7d4
Roll chromium_revision e144d30..6fdb142 (318658:318841) + remove OVERRIDE macro
...
Clang version changed 223108:230914
Details: e144d30..6fdb142 /tools/clang/scripts/update.sh
Removes the OVERRIDE macro defined in:
* webrtc/base/common.h
* webrtc/typedefs.h
The majority of the source changes were done by running this in src/:
perl -0pi -e "s/virtual\s([^({;]*(\([^({;]*\)[^({;]*))(OVERRIDE|override)/\1override/sg" `find {talk,webrtc} -name "*.h" -o -name "*.cc*" -o -name "*.mm*"`
which converted all:
virtual Foo() OVERRIDE
functions to:
Foo() override
Then I manually edited:
* talk/media/webrtc/fakewebrtccommon.h
* webrtc/test/fake_common.h
Remaining uses of OVERRIDE was fixed by search+replace.
Manual edits were done to fix virtual destructors that were
overriding inherited ones.
Finally a build error related to the pure virtual definitions of
Read, Write and Rewind in common_types.h required a bit of
refactoring in:
* webrtc/common_types.cc
* webrtc/common_types.h
* webrtc/system_wrappers/interface/file_wrapper.h
* webrtc/system_wrappers/source/file_impl.cc
This roll should make it possible for us to finally re-enable deadlock
detection for TSan on the buildbots.
BUG=4106
R=pbos@webrtc.org , tommi@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/41069004
Cr-Commit-Position: refs/heads/master@{#8596}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8596 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-03-04 13:04:54 +00:00
kwiberg@webrtc.org
00b8f6b364
Use base/scoped_ptr.h; system_wrappers/interface/scoped_ptr.h is going away
...
BUG=
R=andrew@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/36229004
Cr-Commit-Position: refs/heads/master@{#8517}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8517 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-02-26 14:43:50 +00:00
pbos@webrtc.org
3e6e271ec3
Implement CpuOveruseMetrics as callbacks.
...
Adds avg_encode_ms and encode_usage_percent in WebRtcVideoEngine2 and
corresponding stats to VideoSendStream::Stats.
BUG=1667, 1788
R=asapersson@webrtc.org , mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/42429004
Cr-Commit-Position: refs/heads/master@{#8513}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8513 4adac7df-926f-26a2-2b94-8c16560cd09d
2015-02-26 12:20:24 +00:00
asapersson@webrtc.org
049e4ece30
Change default values for CpuOveruseOptions.
...
Enabled method based on encode time and modified values for the low (60->55) and high threshold (90->85).
Moved DelayedEncoder to fake_encoder.h and added configuration for the delay.
R=mflodman@webrtc.org , pbos@webrtc.org , stefan@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/30969004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7722 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-11-20 10:19:46 +00:00
asapersson@webrtc.org
7f10513efc
Remove unused code in overuse detector.
...
R=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/31579004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7557 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-10-29 10:05:21 +00:00
asapersson@webrtc.org
9aed002090
Add ability to include a larger time span (in addition to encode time) for measuring the processing time of a frame.
...
Controlled by setting enable_extended_processing_usage. Enabled by default.
R=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/13289004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@7460 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-10-16 06:57:12 +00:00
asapersson@webrtc.org
23a4d8522e
Decreased kMaxOverusesBeforeApplyRampupDelay (from 7 to 4).
...
Increased kStandardRampUpDelayMs (30 to 40s).
BUG=1577
R=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/20129004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6886 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-08-13 14:33:49 +00:00
asapersson@webrtc.org
2881ab1e36
Increased kMaxRampUpDelayMs (120 to 240s).
...
Add support for triggering on encode rsd metric if its thresholds are configured. Added unit tests.
BUG=1577
R=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/16649004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6410 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-06-12 08:46:46 +00:00
asapersson@webrtc.org
ab6bf4f54c
Added api for getting cpu measures using a struct.
...
R=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/12479004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6249 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-05-27 07:43:15 +00:00
asapersson@webrtc.org
ce12f1fd32
Add configuration for ability to use the encode usage measure for triggering overuse/underuse.
...
BUG=1577
R=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/10509004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@5767 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-03-24 21:59:16 +00:00
asapersson@webrtc.org
8a8c3ef2ae
Add ability to configure cpu overuse options via an API.
...
BUG=1577
R=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/9299006
git-svn-id: http://webrtc.googlecode.com/svn/trunk@5736 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-03-20 13:15:01 +00:00
asapersson@webrtc.org
b60346e951
Reset estimate if no frame has been seen for a certain time (to avoid large jitter if stop sending).
...
Add delay before start processing after a reset.
BUG=1577
R=mflodman@webrtc.org , stefan@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/8699006
git-svn-id: http://webrtc.googlecode.com/svn/trunk@5561 4adac7df-926f-26a2-2b94-8c16560cd09d
2014-02-17 19:02:15 +00:00
asapersson@webrtc.org
9e5b0342f6
Added a delay measurement, measures the time between an incoming captured frame until the frame is being processed. Measures the delay per second.
...
R=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/4249004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@5212 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-12-04 13:47:44 +00:00
asapersson@webrtc.org
c7ff8f990a
Added measure of encode time. Added encode time to the ViE CpuOveruseMeasure api.
...
R=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/4099004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@5178 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-11-26 11:12:33 +00:00
asapersson@webrtc.org
b24d33565c
Added ViE API for getting overuse measure.
...
R=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/3129005
git-svn-id: http://webrtc.googlecode.com/svn/trunk@5141 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-11-20 13:51:40 +00:00
asapersson@webrtc.org
e2af622edf
- Reset capture deltas at resolution change.
...
- Applied smoothing of capture jitter.
- Adjusted thresholds.
R=stefan@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/2070005
git-svn-id: http://webrtc.googlecode.com/svn/trunk@4817 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-09-23 20:05:39 +00:00
pbos@webrtc.org
a957570d62
Overuse detection based on capture-input jitter.
...
This is believed to be more reliable in real-world cases. The camera seems to fall behind sooner than the encoder starts taking too long time encoding, so this is believed to be an earlier trigger.
BUG=2325
R=asapersson@webrtc.org , mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/2140004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@4648 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-08-30 17:16:32 +00:00
mflodman@webrtc.org
d4412feeb0
Adding possibility to use encoding time when trigger underuse for frame based overuse detection.
...
BUG=
TEST=Added unittest.
R=asapersson@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/1885004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@4452 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-07-31 16:42:21 +00:00
mflodman@webrtc.org
6879c8adad
Hooking up first simple CPU adaptation version.
...
BUG=
R=pbos@webrtc.org , stefan@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/1767004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@4384 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-07-23 11:35:00 +00:00
mflodman@webrtc.org
e6168f5f41
Adding a first simple version of overuse detection, but not hooked up.
...
BUG=
R=asapersson@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/1717004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@4268 4adac7df-926f-26a2-2b94-8c16560cd09d
2013-06-26 11:23:01 +00:00