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

Issue 2707023008: Step #2: Add batch mode to VideoProcessor integration tests. (Closed)

Created:
3 years, 10 months ago by brandtr
Modified:
3 years, 9 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, zhengzhonghou_agora.io, video-team_agora.io, stefan-webrtc, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add batch mode to VideoProcessor integration tests. Prior to this CL, the encoding/decoding in the VideoProcessor integration tests were run "online", in the sense that rate allocations could be changed in between frames. This is useful for evaluating the rate control of SW codecs, which is one of the reasons for the existence of these integration tests in the first place. This CL adds a batch mode, in which the tests are run "offline". The two main differences to the original mode are: 1) rate control metrics are calculated after the fact, and 2) no rate allocation changes are allowed during the test. Difference 1) is the reason for this CL, as HW codecs that are pipelining will not work well when rate control metrics are calculated right after a frame has been sent for encode. Difference 2) is a side effect of the introduction of the batch mode. If we want to be able to support online rate allocation for pipelining HW codecs in the future, this can be introduced by adding a delay between encoding and rate allocation. This was not deemed necessary at this point in time, and hence this CL does not do that. The batch mode is only intended to be used for manual experimentation on devices with HW codecs, and the integration tests running on the bots should thus NOT use batch mode. BUG=webrtc:6634 Review-Url: https://codereview.webrtc.org/2707023008 Cr-Commit-Position: refs/heads/master@{#17164} Committed: https://chromium.googlesource.com/external/webrtc/+/b2def1d06f9edd2b5192675180679847d5318fc7

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase. #

Patch Set 3 : Rebase. #

Patch Set 4 : Rebase. #

Patch Set 5 : Nits. #

Total comments: 14

Patch Set 6 : asapersson comments 1. #

Patch Set 7 : sprang comments 1. #

Patch Set 8 : asapersson comments 2. #

Messages

Total messages: 26 (12 generated)
brandtr
Step #2.
3 years, 10 months ago (2017-02-23 14:59:23 UTC) #3
brandtr
https://codereview.webrtc.org/2707023008/diff/20001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h File webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h (right): https://codereview.webrtc.org/2707023008/diff/20001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h#newcode567 webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h:567: // In batch mode, we calculate the metrics for ...
3 years, 10 months ago (2017-02-24 08:19:35 UTC) #5
brandtr
Rebase.
3 years, 9 months ago (2017-02-28 19:00:22 UTC) #6
brandtr
Rebase.
3 years, 9 months ago (2017-03-06 15:28:54 UTC) #7
brandtr
https://codereview.webrtc.org/2707023008/diff/20001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h File webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h (right): https://codereview.webrtc.org/2707023008/diff/20001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h#newcode567 webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h:567: // In batch mode, we calculate the metrics for ...
3 years, 9 months ago (2017-03-06 16:08:15 UTC) #8
brandtr
Rebase.
3 years, 9 months ago (2017-03-07 09:28:51 UTC) #9
åsapersson
https://codereview.webrtc.org/2707023008/diff/100001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h File webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h (left): https://codereview.webrtc.org/2707023008/diff/100001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h#oldcode593 webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h:593: EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, decoder_->Release()); maybe make this change if needed in ...
3 years, 9 months ago (2017-03-08 15:26:46 UTC) #10
sprang_webrtc
https://codereview.webrtc.org/2707023008/diff/100001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h File webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h (right): https://codereview.webrtc.org/2707023008/diff/100001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h#newcode385 webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h:385: int layer = LayerIndexForFrame(frame_number); Not obvious to me which ...
3 years, 9 months ago (2017-03-08 16:20:21 UTC) #11
brandtr
https://codereview.webrtc.org/2707023008/diff/100001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h File webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h (left): https://codereview.webrtc.org/2707023008/diff/100001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h#oldcode593 webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h:593: EXPECT_EQ(WEBRTC_VIDEO_CODEC_OK, decoder_->Release()); On 2017/03/08 15:26:46, åsapersson wrote: > maybe ...
3 years, 9 months ago (2017-03-09 15:18:27 UTC) #13
åsapersson
lgtm https://codereview.webrtc.org/2707023008/diff/100001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h File webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h (right): https://codereview.webrtc.org/2707023008/diff/100001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h#newcode616 webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h:616: int num_resize_actions = processor_->NumberSpatialResizes(); On 2017/03/09 15:18:27, brandtr ...
3 years, 9 months ago (2017-03-10 08:43:27 UTC) #14
brandtr
https://codereview.webrtc.org/2707023008/diff/100001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h File webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h (right): https://codereview.webrtc.org/2707023008/diff/100001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h#newcode616 webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h:616: int num_resize_actions = processor_->NumberSpatialResizes(); On 2017/03/10 08:43:27, åsapersson wrote: ...
3 years, 9 months ago (2017-03-10 08:48:40 UTC) #15
sprang_webrtc
lgtm https://codereview.webrtc.org/2707023008/diff/100001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h File webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h (right): https://codereview.webrtc.org/2707023008/diff/100001/webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h#newcode575 webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.h:575: for (frame_number = 0; frame_number < num_frames; ++frame_number) ...
3 years, 9 months ago (2017-03-10 09:09:37 UTC) #16
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/2707023008/180001
3 years, 9 months ago (2017-03-10 12:17:54 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 12:20:14 UTC) #26
Message was sent while issue was closed.
Committed patchset #8 (id:180001) as
https://chromium.googlesource.com/external/webrtc/+/b2def1d06f9edd2b519267518...

Powered by Google App Engine
This is Rietveld 408576698