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

Issue 2362683002: New helper function test::ReadI420Buffer, refactor FrameReader to use it. (Closed)

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

Description

New helper function test::ReadI420Buffer, refactor FrameReader to use it. This change reduces the number of places where we first fread a I420 frame into a uint8_t buffer, followed by a copy into a frame buffer object. BUG=None Committed: https://crrev.com/115bd153c7f5a64eabbac222bad66e223abbfe2b Cr-Commit-Position: refs/heads/master@{#14456}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Comment updates. #

Patch Set 3 : Rebase. #

Patch Set 4 : Typo fix in CalculateMetrics. #

Patch Set 5 : Fix testcase VideoProcessorTest.ProcessFrame. #

Total comments: 3

Patch Set 6 : Fix stride logic in TestVp8Impl. #

Patch Set 7 : Added size_t/int casts, needed for windows builds. #

Patch Set 8 : Another try to fix the 64-bit windows build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -231 lines) Patch
M webrtc/common_video/libyuv/libyuv_unittest.cc View 1 2 17 chunks +28 lines, -33 lines 0 comments Download
M webrtc/modules/video_coding/codecs/test/videoprocessor.h View 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/modules/video_coding/codecs/test/videoprocessor.cc View 5 chunks +5 lines, -10 lines 0 comments Download
M webrtc/modules/video_coding/codecs/test/videoprocessor_integrationtest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/video_coding/codecs/test/videoprocessor_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc View 1 2 3 4 5 4 chunks +12 lines, -15 lines 0 comments Download
M webrtc/modules/video_coding/codecs/vp8/vp8_sequence_coder.cc View 1 2 1 chunk +9 lines, -12 lines 0 comments Download
M webrtc/modules/video_processing/test/denoiser_test.cc View 1 2 3 chunks +11 lines, -10 lines 0 comments Download
M webrtc/modules/video_processing/test/video_processing_unittest.cc View 1 2 8 chunks +28 lines, -37 lines 0 comments Download
M webrtc/test/BUILD.gn View 1 2 2 chunks +1 line, -1 line 0 comments Download
M webrtc/test/frame_generator.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -25 lines 0 comments Download
M webrtc/test/frame_utils.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M webrtc/test/frame_utils.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M webrtc/test/test.gyp View 2 chunks +1 line, -1 line 0 comments Download
M webrtc/test/testsupport/frame_reader.h View 1 2 4 chunks +11 lines, -10 lines 0 comments Download
M webrtc/test/testsupport/frame_reader.cc View 3 chunks +16 lines, -17 lines 0 comments Download
M webrtc/test/testsupport/frame_reader_unittest.cc View 3 chunks +14 lines, -15 lines 0 comments Download
M webrtc/test/testsupport/metrics/video_metrics.cc View 1 2 3 3 chunks +12 lines, -40 lines 0 comments Download
M webrtc/test/testsupport/mock/mock_frame_reader.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (10 generated)
nisse-webrtc
PTAL. Kjellander: FrameReader, in the test_support target, now uses a helper in the video_test_common target, ...
4 years, 3 months ago (2016-09-22 11:06:30 UTC) #2
kjellander_webrtc
lgtm with comments addressed. Are you sure you cannot reference this to any existing bug? ...
4 years, 3 months ago (2016-09-22 11:29:37 UTC) #3
nisse-webrtc
https://codereview.webrtc.org/2362683002/diff/1/webrtc/test/testsupport/frame_reader.cc File webrtc/test/testsupport/frame_reader.cc (right): https://codereview.webrtc.org/2362683002/diff/1/webrtc/test/testsupport/frame_reader.cc#newcode40 webrtc/test/testsupport/frame_reader.cc:40: width_ * height_ + 2 * ((width_ + 1) ...
4 years, 3 months ago (2016-09-22 11:48:15 UTC) #4
nisse-webrtc
On 2016/09/22 11:29:37, kjellander_webrtc wrote: > lgtm with comments addressed. > Are you sure you ...
4 years, 3 months ago (2016-09-22 11:57:06 UTC) #5
kjellander_webrtc
https://codereview.webrtc.org/2362683002/diff/1/webrtc/test/testsupport/frame_reader_unittest.cc File webrtc/test/testsupport/frame_reader_unittest.cc (right): https://codereview.webrtc.org/2362683002/diff/1/webrtc/test/testsupport/frame_reader_unittest.cc#newcode21 webrtc/test/testsupport/frame_reader_unittest.cc:21: const size_t kFrameLength = 3; On 2016/09/22 11:48:15, nisse-webrtc ...
4 years, 3 months ago (2016-09-22 13:46:40 UTC) #6
nisse-webrtc
Commenting on my own cl. https://codereview.webrtc.org/2362683002/diff/80001/webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc File webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc (right): https://codereview.webrtc.org/2362683002/diff/80001/webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc#newcode151 webrtc/modules/video_coding/codecs/vp8/test/vp8_impl_unittest.cc:151: // No scaling in ...
4 years, 2 months ago (2016-09-27 14:27:18 UTC) #7
stefan-webrtc
I've not reviewed webrtc/test in detail, but I trust kjellander, lgtm.
4 years, 2 months ago (2016-09-29 12:57:38 UTC) #8
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/2362683002/100001
4 years, 2 months ago (2016-09-30 06:38:03 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_rel/builds/18236)
4 years, 2 months ago (2016-09-30 07:02:22 UTC) #13
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/2362683002/120001
4 years, 2 months ago (2016-09-30 07:37:41 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_rel on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_rel/builds/18242)
4 years, 2 months ago (2016-09-30 07:46:11 UTC) #18
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/2362683002/140001
4 years, 2 months ago (2016-09-30 09:16:39 UTC) #21
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-09-30 11:14:11 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 11:14:17 UTC) #24
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/115bd153c7f5a64eabbac222bad66e223abbfe2b
Cr-Commit-Position: refs/heads/master@{#14456}

Powered by Google App Engine
This is Rietveld 408576698