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

Issue 9320025: Introducing a helper wrapper for YUV-to-RGB convertion and/or scaling. (Closed)

Created:
8 years, 10 months ago by alexeypa (please no reviews)
Modified:
8 years, 10 months ago
Reviewers:
Wez
Visibility:
Public.

Description

Introducing helper wrappers for copying a rectangle from a one partial buffer to another. YUV to RGB and RGB to RGB operations are supported. YUV to RGB allows down-scaling of rectangles. The wrappers hide (to some degree) gory details of manipulations with buffer pointers and rectangles. Added unit tests (remoting_unittests.Yuv2Rgb) to verify functionality of the YUV to RGB wrapper. BUG=109938 TEST=remoting_unittests.Yuv2Rgb Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120739

Patch Set 1 #

Total comments: 15

Patch Set 2 : 2nd try. #

Patch Set 3 : Make VC++ happy. #

Patch Set 4 : Make VC++ happy, take two. #

Total comments: 14

Patch Set 5 : ConvertYUVToRGB32() can handle odd width and height. #

Patch Set 6 : Incorporating code review feedback. #

Patch Set 7 : More review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+399 lines, -127 lines) Patch
M media/base/yuv_convert.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M remoting/base/decoder_vp8.h View 1 chunk +0 lines, -13 lines 0 comments Download
M remoting/base/decoder_vp8.cc View 2 chunks +24 lines, -78 lines 0 comments Download
M remoting/base/util.h View 1 2 3 4 5 2 chunks +34 lines, -9 lines 0 comments Download
M remoting/base/util.cc View 1 2 3 4 5 6 4 chunks +150 lines, -25 lines 0 comments Download
A remoting/base/util_unittest.cc View 1 2 3 1 chunk +187 lines, -0 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
alexeypa (please no reviews)
This is the 1st part of the decoder pipeline refactoring.
8 years, 10 months ago (2012-02-02 00:54:45 UTC) #1
Wez
https://chromiumcodereview.appspot.com/9320025/diff/1/remoting/base/util.cc File remoting/base/util.cc (right): https://chromiumcodereview.appspot.com/9320025/diff/1/remoting/base/util.cc#newcode114 remoting/base/util.cc:114: DCHECK((dest_rect.x() & 1) == 0 && (dest_rect.y() & 1) ...
8 years, 10 months ago (2012-02-02 01:35:28 UTC) #2
alexeypa (please no reviews)
I added quite a few changes. Please take another look. https://chromiumcodereview.appspot.com/9320025/diff/1/remoting/base/util.cc File remoting/base/util.cc (right): https://chromiumcodereview.appspot.com/9320025/diff/1/remoting/base/util.cc#newcode114 ...
8 years, 10 months ago (2012-02-02 21:33:02 UTC) #3
alexeypa (please no reviews)
You had lots of CLs to view yesterday. Pinging to make sure mine is still ...
8 years, 10 months ago (2012-02-03 20:03:13 UTC) #4
Wez
http://codereview.chromium.org/9320025/diff/1/remoting/base/util.cc File remoting/base/util.cc (right): http://codereview.chromium.org/9320025/diff/1/remoting/base/util.cc#newcode173 remoting/base/util.cc:173: int bottom = SkScalarCeilToInt(scale_y * rect.bottom()); On 2012/02/02 21:33:03, ...
8 years, 10 months ago (2012-02-03 22:40:35 UTC) #5
alexeypa (please no reviews)
http://codereview.chromium.org/9320025/diff/1/remoting/base/util.cc File remoting/base/util.cc (right): http://codereview.chromium.org/9320025/diff/1/remoting/base/util.cc#newcode173 remoting/base/util.cc:173: int bottom = SkScalarCeilToInt(scale_y * rect.bottom()); I guess we ...
8 years, 10 months ago (2012-02-03 23:29:35 UTC) #6
Wez
OK, LGTM but see comments below. http://codereview.chromium.org/9320025/diff/10005/remoting/base/util.cc File remoting/base/util.cc (right): http://codereview.chromium.org/9320025/diff/10005/remoting/base/util.cc#newcode125 remoting/base/util.cc:125: // ConvertYUVToRGB32(). On ...
8 years, 10 months ago (2012-02-04 01:03:43 UTC) #7
alexeypa (please no reviews)
http://codereview.chromium.org/9320025/diff/10005/remoting/base/util.cc File remoting/base/util.cc (right): http://codereview.chromium.org/9320025/diff/10005/remoting/base/util.cc#newcode125 remoting/base/util.cc:125: // ConvertYUVToRGB32(). I'll stick to this approach for now. ...
8 years, 10 months ago (2012-02-06 05:45:16 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/9320025/11011
8 years, 10 months ago (2012-02-06 05:45:40 UTC) #9
commit-bot: I haz the power
Try job failure for 9320025-11011 (retry) on mac_rel for step "test_shell_tests". It's a second try, ...
8 years, 10 months ago (2012-02-06 07:29:43 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/9320025/11011
8 years, 10 months ago (2012-02-06 07:33:05 UTC) #11
commit-bot: I haz the power
Try job failure for 9320025-11011 on linux_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=13772 Step "update" is always ...
8 years, 10 months ago (2012-02-06 07:40:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/9320025/11011
8 years, 10 months ago (2012-02-06 15:18:07 UTC) #13
commit-bot: I haz the power
Try job failure for 9320025-11011 (retry) on mac_rel for steps "test_shell_tests, ui_tests". It's a second ...
8 years, 10 months ago (2012-02-06 17:14:11 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/9320025/11011
8 years, 10 months ago (2012-02-06 18:02:35 UTC) #15
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 10 months ago (2012-02-06 21:56:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/9320025/11011
8 years, 10 months ago (2012-02-06 22:21:05 UTC) #17
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
8 years, 10 months ago (2012-02-07 03:23:47 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/9320025/11011
8 years, 10 months ago (2012-02-07 06:31:17 UTC) #19
commit-bot: I haz the power
8 years, 10 months ago (2012-02-07 07:47:23 UTC) #20
Change committed as 120739

Powered by Google App Engine
This is Rietveld 408576698