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

Issue 2559693002: Add MSA optimized ARGB Attenuate/RGB565/Shuffle/Shader/Gray/Sepia row functions (Closed)

Created:
4 years ago by manojkumar.bhosale
Modified:
4 years ago
Reviewers:
fbarchard1
CC:
gordana.cmiljanovic_imgtec.com, raghu.gandham_imgtec.com, parag.salasakar_imgtec.com, mandar.sahastrabuddhe_imgtec.com, rob.isherwood_imgtec.com
Target Ref:
refs/heads/master
Project:
libyuv
Visibility:
Public.

Description

Add MSA optimized ARGB Attenuate/RGB565/Shuffle/Shader/Gray/Sepia row functions R=fbarchard@google.com BUG=libyuv:634 Performance Gain (vs C vectorized) ARGBAttenuateRow_MSA - ~1.1x ARGBAttenuateRow_Any_MSA - ~1.1x ARGBToRGB565DitherRow_MSA - ~6.4x ARGBToRGB565DitherRow_Any_MSA - ~6.2x ARGBShuffleRow_MSA - ~5.1x ARGBShuffleRow_Any_MSA - ~1.9x ARGBShadeRow_MSA - ~1.1x ARGBGrayRow_MSA - ~2.6x ARGBSepiaRow_MSA - ~11.6x Performance Gain (vs C non-vectorized) ARGBAttenuateRow_MSA - ~2.46x ARGBAttenuateRow_Any_MSA - ~2.45x ARGBToRGB565DitherRow_MSA - ~9.4x ARGBToRGB565DitherRow_Any_MSA - ~12.5x ARGBShuffleRow_MSA - ~5.2x ARGBShuffleRow_Any_MSA - ~1.9x ARGBShadeRow_MSA - ~4.3x ARGBGrayRow_MSA - ~10.5x ARGBSepiaRow_MSA - ~12.2x Committed: https://chromium.googlesource.com/libyuv/libyuv/+/a899dea25167749697ecd97de57e07db9d85a841

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -0 lines) Patch
M include/libyuv/row.h View 9 chunks +32 lines, -0 lines 0 comments Download
M source/convert_argb.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M source/convert_from.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M source/convert_from_argb.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M source/planar_functions.cc View 6 chunks +38 lines, -0 lines 0 comments Download
M source/row_any.cc View 3 chunks +14 lines, -0 lines 0 comments Download
M source/row_msa.cc View 1 chunk +238 lines, -0 lines 4 comments Download

Messages

Total messages: 11 (4 generated)
manojkumar.bhosale
4 years ago (2016-12-07 09:16:09 UTC) #1
manojkumar.bhosale
Updated with reviewers, cc list and performance gain numbers
4 years ago (2016-12-07 09:19:38 UTC) #4
kjellander_chromium
On 2016/12/07 09:19:38, manojkumar.bhosale wrote: > Updated with reviewers, cc list and performance gain numbers ...
4 years ago (2016-12-07 09:20:51 UTC) #6
manojkumar.bhosale
On 2016/12/07 09:20:51, kjellander_chromium wrote: > On 2016/12/07 09:19:38, manojkumar.bhosale wrote: > > Updated with ...
4 years ago (2016-12-07 09:24:33 UTC) #7
fbarchard1
lgtm https://codereview.chromium.org/2559693002/diff/1/source/row_msa.cc File source/row_msa.cc (right): https://codereview.chromium.org/2559693002/diff/1/source/row_msa.cc#newcode1050 source/row_msa.cc:1050: src0 = (v16u8)__msa_ld_b((v16i8*)src_argb, 0); Can this function be ...
4 years ago (2016-12-12 20:09:03 UTC) #8
manojkumar.bhosale
Committed patchset #1 (id:1) manually as a899dea25167749697ecd97de57e07db9d85a841 (presubmit successful).
4 years ago (2016-12-15 06:34:57 UTC) #10
manojkumar.bhosale
4 years ago (2016-12-15 06:35:21 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/2559693002/diff/1/source/row_msa.cc
File source/row_msa.cc (right):

https://codereview.chromium.org/2559693002/diff/1/source/row_msa.cc#newcode1050
source/row_msa.cc:1050: src0 = (v16u8)__msa_ld_b((v16i8*)src_argb, 0);
On 2016/12/12 20:09:03, fbarchard1 wrote:
> Can this function be further optimized?  Suggest a TODO for now, but when
used,
> this function tends to be used alot for converting ARGB to a form that can be
> alpha blended with premultiplied values on each frame.

Acknowledged.

https://codereview.chromium.org/2559693002/diff/1/source/row_msa.cc#newcode1218
source/row_msa.cc:1218: v16u8 const_0x4B0F = (v16u8)__msa_fill_h(0x4B0F);
On 2016/12/12 20:09:03, fbarchard1 wrote:
> note these constants may need to be passed in as parameters in future.

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698