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

Issue 2527983002: Add MSA optimized ARGB scaling 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 scaling functions R=fbarchard@google.com BUG=libyuv:634 Performance Gain (vs C vectorized) ScaleARGBRowDown2_MSA - ~2.6x ScaleARGBRowDown2Linear_MSA - ~7.9x ScaleARGBRowDown2Box_MSA - ~3.7x ScaleARGBRowDownEven_MSA - ~1.2x ScaleARGBRowDownEvenBox_MSA - ~3.5x ScaleARGBRowDown2_Any_MSA - ~2.6x ScaleARGBRowDown2Linear_Any_MSA - ~7.9x ScaleARGBRowDown2Box_Any_MSA - ~3.6x ScaleARGBRowDownEven_Any_MSA - ~1.2x ScaleARGBRowDownEvenBox_Any_MSA - ~3.5x Performance Gain (vs C non-vectorized) ScaleARGBRowDown2_MSA - 2.6x ScaleARGBRowDown2Linear_MSA - 13.5x ScaleARGBRowDown2Box_MSA - 5.8x ScaleARGBRowDownEven_MSA - 1.2x ScaleARGBRowDownEvenBox_MSA - 3.7x ScaleARGBRowDown2_Any_MSA - 2.6x ScaleARGBRowDown2Linear_Any_MSA - 13.5x ScaleARGBRowDown2Box_Any_MSA - 5.3x ScaleARGBRowDownEven_Any_MSA - 1.2x ScaleARGBRowDownEvenBox_Any_MSA - 3.7x Committed: https://chromium.googlesource.com/libyuv/libyuv/+/56b5bbb0be6368c50dca5e120a3d72379e1ffbad

Patch Set 1 #

Patch Set 2 : Added build files #

Patch Set 3 : Corrected patchset files #

Total comments: 9

Patch Set 4 : Changes as per review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -4 lines) Patch
M Android.mk View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M CMakeLists.txt View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M include/libyuv/scale_row.h View 5 chunks +49 lines, -0 lines 0 comments Download
M libyuv.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M source/scale_any.cc View 1 2 3 2 chunks +32 lines, -0 lines 0 comments Download
M source/scale_argb.cc View 2 chunks +26 lines, -0 lines 0 comments Download
A source/scale_msa.cc View 1 2 3 1 chunk +177 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
manojkumar.bhosale
4 years ago (2016-11-24 15:39:55 UTC) #1
manojkumar.bhosale
Updated with reviewers, cc list and performance gain numbers
4 years ago (2016-11-24 15:44:00 UTC) #4
fbarchard1
lgtm but suggest doing 4 pixels for all loops and please confirm rounding shift is ...
4 years ago (2016-11-30 01:15:49 UTC) #6
manojkumar.bhosale
https://codereview.chromium.org/2527983002/diff/40001/source/scale_msa.cc File source/scale_msa.cc (right): https://codereview.chromium.org/2527983002/diff/40001/source/scale_msa.cc#newcode22 source/scale_msa.cc:22: void ScaleARGBRowDown2_MSA(const uint8_t* src_argb, On 2016/11/30 01:15:48, fbarchard1 wrote: ...
4 years ago (2016-12-01 13:06:07 UTC) #7
fbarchard1
lgtm https://codereview.chromium.org/2527983002/diff/40001/source/scale_msa.cc File source/scale_msa.cc (right): https://codereview.chromium.org/2527983002/diff/40001/source/scale_msa.cc#newcode90 source/scale_msa.cc:90: reg1 = (v8u16)__msa_srari_h((v8i16)reg1, 2); On 2016/12/01 13:06:06, manojkumar.bhosale ...
4 years ago (2016-12-06 00:45:20 UTC) #8
manojkumar.bhosale
4 years ago (2016-12-07 06:16:25 UTC) #10
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
56b5bbb0be6368c50dca5e120a3d72379e1ffbad (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698