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

Issue 2008723002: Forward Encode failure codes from sub encoders. (Closed)

Created:
4 years, 7 months ago by noahric
Modified:
4 years, 7 months ago
Reviewers:
pbos-webrtc, mflodman
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhengzhonghou_agora.io, video-team_agora.io, stefan-webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Forward Encode failure codes from sub encoders. Previously, failure codes were ignored, which meant simulcasted codecs couldn't e.g. trigger software fallback. This stops the simulcasted Encode call at the first faiulre and returns that code. Another option is to continue sending the frame to the other encoders but still return the first failure code. It's not clear that that is any better than just quitting as soon as a failure happens. BUG= Committed: https://crrev.com/57779104f0b7b5cb6b4e6eb33eb3267cb9f4d423 Cr-Commit-Position: refs/heads/master@{#12892}

Patch Set 1 #

Patch Set 2 : git cl format #

Patch Set 3 : unit test + nicemock cleanup #

Total comments: 2

Patch Set 4 : Test: only set software fallback on 2nd encoder. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -6 lines) Patch
M webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.cc View 1 2 chunks +10 lines, -4 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc View 1 2 3 4 chunks +36 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
noahric
4 years, 7 months ago (2016-05-23 21:42:31 UTC) #2
pbos-webrtc
On 2016/05/23 21:42:31, noahric wrote: Can you write a test that verifies that we forward ...
4 years, 7 months ago (2016-05-23 21:50:14 UTC) #3
noahric
On 2016/05/23 21:50:14, pbos-webrtc wrote: > On 2016/05/23 21:42:31, noahric wrote: > > Can you ...
4 years, 7 months ago (2016-05-23 22:33:28 UTC) #4
pbos-webrtc
lgtm with nit fixed https://codereview.webrtc.org/2008723002/diff/40001/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc File webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc (right): https://codereview.webrtc.org/2008723002/diff/40001/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc#newcode477 webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc:477: encoder->set_encode_return_value(WEBRTC_VIDEO_CODEC_FALLBACK_SOFTWARE); Set only one of ...
4 years, 7 months ago (2016-05-24 13:26:33 UTC) #5
noahric
https://codereview.webrtc.org/2008723002/diff/40001/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc File webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc (right): https://codereview.webrtc.org/2008723002/diff/40001/webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc#newcode477 webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter_unittest.cc:477: encoder->set_encode_return_value(WEBRTC_VIDEO_CODEC_FALLBACK_SOFTWARE); On 2016/05/24 13:26:33, pbos-webrtc wrote: > Set only ...
4 years, 7 months ago (2016-05-24 18:31:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2008723002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2008723002/60001
4 years, 7 months ago (2016-05-24 21:14:57 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 7 months ago (2016-05-24 23:15:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2008723002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2008723002/60001
4 years, 7 months ago (2016-05-25 13:47:12 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-25 13:48:51 UTC) #14
commit-bot: I haz the power
4 years, 7 months ago (2016-05-25 13:49:01 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/57779104f0b7b5cb6b4e6eb33eb3267cb9f4d423
Cr-Commit-Position: refs/heads/master@{#12892}

Powered by Google App Engine
This is Rietveld 408576698