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

Issue 7003082: Implements RGB to YV12 conversion in YASM. (Closed)

Created:
9 years, 6 months ago by Hironori Bono
Modified:
8 years, 9 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, Paweł Hajdan Jr., acolwell GONE FROM CHROMIUM, annacc, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing), Steve Block
Visibility:
Public.

Description

Implements RGB to YV12 conversions in YASM. This change implements two conversions (RGB32-to-YV12 and RGB24-to-YV12) in YASM. This change uses 8-bit fixed-point calculation and converts up to four pixels at once. BUG=none TEST=YUVConvertTest.SideBySideRGB Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100352

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 9

Patch Set 4 : '' #

Total comments: 36

Patch Set 5 : '' #

Total comments: 15

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 5

Patch Set 8 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1942 lines, -9 lines) Patch
M media/base/cpu_features.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M media/base/cpu_features_arm.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/cpu_features_x86.cc View 1 2 3 4 5 6 7 3 chunks +22 lines, -7 lines 0 comments Download
A media/base/simd/convert_rgb_to_yuv.h View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
A media/base/simd/convert_rgb_to_yuv.cc View 1 2 3 4 5 6 7 1 chunk +101 lines, -0 lines 0 comments Download
A media/base/simd/convert_rgb_to_yuv_ssse3.h View 1 2 3 4 5 6 7 1 chunk +57 lines, -0 lines 0 comments Download
A media/base/simd/convert_rgb_to_yuv_ssse3.asm View 1 2 3 4 5 6 7 1 chunk +317 lines, -0 lines 0 comments Download
A media/base/simd/convert_rgb_to_yuv_ssse3.inc View 1 2 3 4 5 6 7 1 chunk +200 lines, -0 lines 0 comments Download
A media/base/simd/convert_rgb_to_yuv_unittest.cc View 1 2 3 4 5 6 7 1 chunk +124 lines, -0 lines 0 comments Download
A media/base/simd/x86inc.asm View 1 2 3 4 1 chunk +1001 lines, -0 lines 1 comment Download
M media/base/yuv_convert.cc View 1 2 3 4 5 6 7 3 chunks +18 lines, -2 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 2 chunks +55 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Hironori Bono
Greetings, Even though I have implemented this change long time ago, I forgot sending its ...
9 years, 6 months ago (2011-06-10 09:13:37 UTC) #1
fbarchard
Thanks for doing this! http://codereview.chromium.org/7003082/diff/2002/media/base/simd/convert_row.asm File media/base/simd/convert_row.asm (right): http://codereview.chromium.org/7003082/diff/2002/media/base/simd/convert_row.asm#newcode21 media/base/simd/convert_row.asm:21: ; int16 SIMD_ConvertRGBAToYUV_kTable[8 * 3] ...
9 years, 6 months ago (2011-06-10 17:29:45 UTC) #2
rbultje
Hi, Frank asked me to look at this since this is the first use (or ...
9 years, 6 months ago (2011-06-10 18:26:33 UTC) #3
Alpha Left Google
This is excellent work! and sorry about the long delay for this review. I'd like ...
9 years, 4 months ago (2011-08-22 14:16:47 UTC) #4
Alpha Left Google
http://codereview.chromium.org/7003082/diff/19001/media/base/simd/yuv_convert.cc File media/base/simd/yuv_convert.cc (right): http://codereview.chromium.org/7003082/diff/19001/media/base/simd/yuv_convert.cc#newcode1 media/base/simd/yuv_convert.cc:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
9 years, 4 months ago (2011-08-22 14:16:58 UTC) #5
Alpha Left Google
One more question: it looks like UV are not fully subsampled from a 4x4 block ...
9 years, 4 months ago (2011-08-22 14:26:01 UTC) #6
Hironori Bono
Greetings, Sorry for the lack of updates. I have totally re-written this change with x86inc.asm ...
9 years, 3 months ago (2011-09-01 10:25:13 UTC) #7
Alpha Left Google
On 2011/09/01 10:25:13, hbono wrote: > Greetings, > > Sorry for the lack of updates. ...
9 years, 3 months ago (2011-09-01 10:29:21 UTC) #8
Alpha Left Google
I haven't looked at YUV -> RGB, but the algorithm for RGB -> YUV looks ...
9 years, 3 months ago (2011-09-01 13:24:45 UTC) #9
Alpha Left Google
http://codereview.chromium.org/7003082/diff/34022/media/base/yuv_convert_unittest.cc File media/base/yuv_convert_unittest.cc (right): http://codereview.chromium.org/7003082/diff/34022/media/base/yuv_convert_unittest.cc#newcode360 media/base/yuv_convert_unittest.cc:360: TEST(YUVConvertTest, SideBySideRGB) { One more comment on these tests, ...
9 years, 3 months ago (2011-09-01 13:26:41 UTC) #10
Hironori Bono
Greetings, Thank you so much for your review and comments. My previous change forgot adding ...
9 years, 3 months ago (2011-09-02 09:13:48 UTC) #11
Alpha Left Google
LGTM. Good work!!
9 years, 3 months ago (2011-09-06 11:27:46 UTC) #12
Alpha Left Google
Sorry about reflecting.. There are a couple changes that I'd like to see: 1. use ...
9 years, 3 months ago (2011-09-06 17:08:31 UTC) #13
Alpha Left Google
Excellent! LGTM, thanks!
9 years, 3 months ago (2011-09-07 10:30:41 UTC) #14
Steve Block
http://codereview.chromium.org/7003082/diff/51004/media/base/simd/x86inc.asm File media/base/simd/x86inc.asm (right): http://codereview.chromium.org/7003082/diff/51004/media/base/simd/x86inc.asm#newcode12 media/base/simd/x86inc.asm:12: ;* copyright notice and this permission notice appear in ...
8 years, 9 months ago (2012-03-19 15:37:16 UTC) #15
Hironori Bono
8 years, 9 months ago (2012-03-20 13:31:20 UTC) #16
Greetings,

Thanks for your comment.
Yes, but Chrome now uses libyuv and it is better to remove this code to avoid
confusion. I will send a revert change soon.

Regards,

Hironori Bono

Powered by Google App Engine
This is Rietveld 408576698