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

Issue 1492053003: Add unit test for stand-alone denoiser and fixed some bugs. (Closed)

Created:
5 years ago by jackychen
Modified:
4 years, 11 months ago
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add unit test for stand-alone denoiser and fixed some bugs. The unit test will run the pure C denoiser and SSE2/NEON denoiser (based on the CPU detection) and compare the denoised frames to ensure the bit exact. TBR=tommi@webrtc.org BUG=webrtc:5255 Committed: https://crrev.com/67e94fb6f2a84cad97ba96abce3506c29f8ebb24 Cr-Commit-Position: refs/heads/master@{#11216}

Patch Set 1 #

Patch Set 2 : Remove debug code. #

Patch Set 3 : Initilize buffer for msan/asan test. #

Patch Set 4 : Fix asan test failure. #

Total comments: 27

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Patch Set 7 : remove gtest_disabled.h #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -72 lines) Patch
M webrtc/common_video/i420_video_frame_unittest.cc View 1 2 3 4 5 4 chunks +2 lines, -47 lines 0 comments Download
M webrtc/common_video/video_frame.cc View 1 2 3 4 5 2 chunks +43 lines, -0 lines 4 comments Download
M webrtc/modules/modules.gyp View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M webrtc/modules/video_processing/frame_preprocessor.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A webrtc/modules/video_processing/test/denoiser_test.cc View 1 2 3 4 5 6 1 chunk +156 lines, -0 lines 0 comments Download
M webrtc/modules/video_processing/util/denoiser_filter.h View 1 chunk +1 line, -1 line 2 comments Download
M webrtc/modules/video_processing/util/denoiser_filter.cc View 1 2 3 4 1 chunk +16 lines, -12 lines 2 comments Download
M webrtc/modules/video_processing/util/denoiser_filter_c.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_processing/util/denoiser_filter_sse2.cc View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M webrtc/modules/video_processing/video_denoiser.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/video_processing/video_denoiser.cc View 1 2 3 4 2 chunks +5 lines, -3 lines 2 comments Download
M webrtc/video_frame.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
jackychen
5 years ago (2015-12-03 00:40:17 UTC) #3
stefan-webrtc
Thanks for adding this! https://codereview.webrtc.org/1492053003/diff/60001/webrtc/modules/video_processing/test/denoiser_test.cc File webrtc/modules/video_processing/test/denoiser_test.cc (right): https://codereview.webrtc.org/1492053003/diff/60001/webrtc/modules/video_processing/test/denoiser_test.cc#newcode21 webrtc/modules/video_processing/test/denoiser_test.cc:21: static int CompareImage(const VideoFrame *const ...
5 years ago (2015-12-10 08:53:26 UTC) #4
jackychen
https://codereview.webrtc.org/1492053003/diff/60001/webrtc/modules/video_processing/test/denoiser_test.cc File webrtc/modules/video_processing/test/denoiser_test.cc (right): https://codereview.webrtc.org/1492053003/diff/60001/webrtc/modules/video_processing/test/denoiser_test.cc#newcode21 webrtc/modules/video_processing/test/denoiser_test.cc:21: static int CompareImage(const VideoFrame *const img1, On 2015/12/10 08:53:25, ...
5 years ago (2015-12-11 19:57:57 UTC) #5
stefan-webrtc
https://codereview.webrtc.org/1492053003/diff/60001/webrtc/modules/video_processing/test/denoiser_test.cc File webrtc/modules/video_processing/test/denoiser_test.cc (right): https://codereview.webrtc.org/1492053003/diff/60001/webrtc/modules/video_processing/test/denoiser_test.cc#newcode21 webrtc/modules/video_processing/test/denoiser_test.cc:21: static int CompareImage(const VideoFrame *const img1, On 2015/12/11 19:57:56, ...
5 years ago (2015-12-15 21:00:30 UTC) #6
jackychen
https://codereview.webrtc.org/1492053003/diff/60001/webrtc/modules/video_processing/test/denoiser_test.cc File webrtc/modules/video_processing/test/denoiser_test.cc (right): https://codereview.webrtc.org/1492053003/diff/60001/webrtc/modules/video_processing/test/denoiser_test.cc#newcode21 webrtc/modules/video_processing/test/denoiser_test.cc:21: static int CompareImage(const VideoFrame *const img1, On 2015/12/15 21:00:30, ...
5 years ago (2015-12-16 22:41:56 UTC) #12
stefan-webrtc
Two nits, otherwise I'm very happy with this! lgtm https://codereview.webrtc.org/1492053003/diff/180001/webrtc/common_video/video_frame.cc File webrtc/common_video/video_frame.cc (right): https://codereview.webrtc.org/1492053003/diff/180001/webrtc/common_video/video_frame.cc#newcode228 webrtc/common_video/video_frame.cc:228: ...
5 years ago (2015-12-17 10:07:47 UTC) #13
jackychen
https://codereview.webrtc.org/1492053003/diff/180001/webrtc/common_video/video_frame.cc File webrtc/common_video/video_frame.cc (right): https://codereview.webrtc.org/1492053003/diff/180001/webrtc/common_video/video_frame.cc#newcode228 webrtc/common_video/video_frame.cc:228: bool VideoFrame::EqualFrames(const VideoFrame& frame) const { On 2015/12/17 10:07:47, ...
5 years ago (2015-12-18 07:32:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1492053003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1492053003/240001
4 years, 11 months ago (2016-01-12 04:58:49 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:240001)
4 years, 11 months ago (2016-01-12 05:34:10 UTC) #21
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/67e94fb6f2a84cad97ba96abce3506c29f8ebb24 Cr-Commit-Position: refs/heads/master@{#11216}
4 years, 11 months ago (2016-01-12 05:34:21 UTC) #23
tommi (sloooow) - chröme
Hi - I just noticed this change by coincidence and that I was TBRed on ...
4 years, 11 months ago (2016-01-12 12:01:21 UTC) #25
jackychen_
4 years, 11 months ago (2016-01-13 03:07:51 UTC) #27
Message was sent while issue was closed.
Hi Tommi, since I can't log with my webrtc account now in HK, I fixed the issues
in https://codereview.webrtc.org/1578373003/ for convenience and added you as
reviewer.

https://codereview.webrtc.org/1492053003/diff/240001/webrtc/common_video/vide...
File webrtc/common_video/video_frame.cc (right):

https://codereview.webrtc.org/1492053003/diff/240001/webrtc/common_video/vide...
webrtc/common_video/video_frame.cc:39: } else {
On 2016/01/12 12:01:21, tommi-chromium wrote:
> nit: no need for else

Done.

https://codereview.webrtc.org/1492053003/diff/240001/webrtc/common_video/vide...
webrtc/common_video/video_frame.cc:229: if ((this->width() != frame.width()) ||
(this->height() != frame.height()) ||
On 2016/01/12 12:01:21, tommi-chromium wrote:
> no need for extra parenthesis for each of the expressions and if could remove
> use of |this->|, that'd be good too.

Done.

https://codereview.webrtc.org/1492053003/diff/240001/webrtc/modules/video_pro...
File webrtc/modules/video_processing/util/denoiser_filter.cc (right):

https://codereview.webrtc.org/1492053003/diff/240001/webrtc/modules/video_pro...
webrtc/modules/video_processing/util/denoiser_filter.cc:48: return filter;
On 2016/01/12 12:01:21, tommi-chromium wrote:
> nit: first RTC_DCHECK(filter)?

Done.

https://codereview.webrtc.org/1492053003/diff/240001/webrtc/modules/video_pro...
File webrtc/modules/video_processing/util/denoiser_filter.h (right):

https://codereview.webrtc.org/1492053003/diff/240001/webrtc/modules/video_pro...
webrtc/modules/video_processing/util/denoiser_filter.h:33: static
DenoiserFilter* Create(bool runtime_cpu_detection);
On 2016/01/12 12:01:21, tommi-chromium wrote:
> it would be good to change the return type in these cases to be
> scoped_ptr<DenoiseFilter> to explicitly declare ownership passing and require
> the caller to use scoped_ptr.

Done.

https://codereview.webrtc.org/1492053003/diff/240001/webrtc/modules/video_pro...
File webrtc/modules/video_processing/video_denoiser.cc (right):

https://codereview.webrtc.org/1492053003/diff/240001/webrtc/modules/video_pro...
webrtc/modules/video_processing/video_denoiser.cc:83: metrics_.reset(new
DenoiseMetrics[mb_cols * mb_rows]());
On 2016/01/12 12:01:21, tommi-chromium wrote:
> I'm curious about what this change does?

This is to initialize the array, since the msan test will check this and give a
warning, though it is not necessary to init it.
This will only do once when the denoiser starts, so not expensive.

Powered by Google App Engine
This is Rietveld 408576698