Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Issue 2564373002: Properly report number of quality downscales in stats. (Closed)

Created:
4 years ago by kthelgason
Modified:
4 years ago
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, video-team_agora.io, yujie_mao (webrtc), zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Properly report number of quality downscales in stats. A regression was introduced in 876222f that caused these stats to be reported incorrectly. This used to be only implemented for VP8 but should now be available for all codecs. BUG=webrtc:6860 Review-Url: https://codereview.webrtc.org/2564373002 Cr-Commit-Position: refs/heads/master@{#15673} Committed: https://chromium.googlesource.com/external/webrtc/+/0c8c5388355f5df085595d9ea24fa38995708120

Patch Set 1 #

Patch Set 2 : add missing header #

Patch Set 3 : switch strategy to avoid data race #

Patch Set 4 : Fix bug with incorrect initialization #

Patch Set 5 : unused include #

Total comments: 14

Patch Set 6 : Code review comments #

Patch Set 7 : tests passing #

Total comments: 5

Patch Set 8 : Factor ScalingSettings into decision on whether to report scaling stats #

Patch Set 9 : fix tests #

Total comments: 5

Patch Set 10 : code review #

Patch Set 11 : clarify check for initialized encoder in simulcast adapter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -50 lines) Patch
M webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video/send_statistics_proxy.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -2 lines 0 comments Download
M webrtc/video/send_statistics_proxy.cc View 1 2 3 4 5 6 7 8 9 3 chunks +23 lines, -18 lines 0 comments Download
M webrtc/video/send_statistics_proxy_unittest.cc View 1 2 3 4 5 6 7 5 chunks +21 lines, -12 lines 0 comments Download
M webrtc/video/vie_encoder.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video/vie_encoder.cc View 1 2 3 4 5 6 7 8 8 chunks +12 lines, -9 lines 0 comments Download
M webrtc/video_frame.h View 1 chunk +3 lines, -7 lines 0 comments Download

Messages

Total messages: 57 (43 generated)
kthelgason
4 years ago (2016-12-12 12:21:49 UTC) #16
åsapersson
https://codereview.webrtc.org/2564373002/diff/80001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/2564373002/diff/80001/webrtc/video/send_statistics_proxy.cc#newcode484 webrtc/video/send_statistics_proxy.cc:484: report_quality_scales = simulcast_idx == 0; Scaling could be disabled ...
4 years ago (2016-12-14 09:25:13 UTC) #17
kthelgason
Thanks for the review, I've uploaded a new patchset. Please take a look when you ...
4 years ago (2016-12-15 10:33:54 UTC) #18
åsapersson
https://codereview.webrtc.org/2564373002/diff/120001/webrtc/video/send_statistics_proxy.cc File webrtc/video/send_statistics_proxy.cc (right): https://codereview.webrtc.org/2564373002/diff/120001/webrtc/video/send_statistics_proxy.cc#newcode484 webrtc/video/send_statistics_proxy.cc:484: report_quality_scales &= simulcast_idx == 0; Shouldn't this be decided ...
4 years ago (2016-12-16 14:45:14 UTC) #29
kthelgason
I made some changes that make sure `scaling_enabled` passed to the stats proxy depends on ...
4 years ago (2016-12-19 10:25:27 UTC) #39
stefan-webrtc
https://codereview.webrtc.org/2564373002/diff/120001/webrtc/video/send_statistics_proxy.h File webrtc/video/send_statistics_proxy.h (right): https://codereview.webrtc.org/2564373002/diff/120001/webrtc/video/send_statistics_proxy.h#newcode61 webrtc/video/send_statistics_proxy.h:61: void OnQualityRestrictedResolutionChanged(int nr_of_downscales); s/nr_of_downscales/num_downscales, same for nr_of_quality_downscales. I think ...
4 years ago (2016-12-19 12:12:00 UTC) #42
kthelgason
Thanks for the comments Stefan, fixed. https://codereview.webrtc.org/2564373002/diff/180001/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc File webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc (right): https://codereview.webrtc.org/2564373002/diff/180001/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc#newcode467 webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc:467: if (NumberOfStreams(codec_) != ...
4 years ago (2016-12-19 12:18:18 UTC) #43
stefan-webrtc
https://codereview.webrtc.org/2564373002/diff/180001/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc File webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc (right): https://codereview.webrtc.org/2564373002/diff/180001/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc#newcode467 webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc:467: if (NumberOfStreams(codec_) != 1 || streaminfos_.size() != 1) On ...
4 years ago (2016-12-19 12:21:26 UTC) #44
kthelgason
On 2016/12/19 12:21:26, stefan-webrtc (holmer) wrote: > https://codereview.webrtc.org/2564373002/diff/180001/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc > File webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc > (right): > > ...
4 years ago (2016-12-19 12:25:12 UTC) #45
stefan-webrtc
lgtm
4 years ago (2016-12-19 12:29:39 UTC) #48
åsapersson
lgtm
4 years ago (2016-12-19 12:56:12 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2564373002/220001
4 years ago (2016-12-19 13:02:45 UTC) #53
commit-bot: I haz the power
Committed patchset #11 (id:220001) as https://chromium.googlesource.com/external/webrtc/+/0c8c5388355f5df085595d9ea24fa38995708120
4 years ago (2016-12-19 13:04:44 UTC) #56
kthelgason
4 years ago (2016-12-19 14:17:14 UTC) #57
Message was sent while issue was closed.
A revert of this CL (patchset #11 id:220001) has been created in
https://codereview.webrtc.org/2586783003/ by kthelgason@webrtc.org.

The reason for reverting is: Breaks perf tests.

Powered by Google App Engine
This is Rietveld 408576698