diff options
author | lixia zhang <zhanglixia-hf@loongson.cn> | 2018-07-04 18:40:48 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2018-07-20 22:53:04 +0000 |
commit | 21be9122aadf7824efe3fc19b2a09ff253a688e1 (patch) | |
tree | d22c41b2361d63169a0bfca4805b3b7990e5e420 /source/scale_common.cc | |
parent | 55f5d91f11f929c4c59c32621c3d5457cca3ab0b (diff) | |
download | libyuv-21be9122aadf7824efe3fc19b2a09ff253a688e1.tar.gz |
libyuv:loongson optimize compare/row/scale/rotate files with mmi.
Currently, libyuv supports MIPS SIMD Arch(MSA),
but libyuv does not supports MultiMedia Instruction(MMI)(such as loongson3a platform).
In order to improve performance of libyuv on loongson3a platform,
this provides optimize 98 functions with mmi.
BUG=libyuv:804
Change-Id: I8947626009efad769b3103a867363ece25d79629
Reviewed-on: https://chromium-review.googlesource.com/1122064
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/scale_common.cc')
-rw-r--r-- | source/scale_common.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/scale_common.cc b/source/scale_common.cc index b28d7da4..106b482a 100644 --- a/source/scale_common.cc +++ b/source/scale_common.cc @@ -1073,6 +1073,14 @@ void ScalePlaneVertical(int src_height, } } #endif +#if defined(HAS_INTERPOLATEROW_MMI) + if (TestCpuFlag(kCpuHasMMI)) { + InterpolateRow = InterpolateRow_Any_MMI; + if (IS_ALIGNED(dst_width_bytes, 8)) { + InterpolateRow = InterpolateRow_MMI; + } + } +#endif for (j = 0; j < dst_height; ++j) { int yi; int yf; |