| Index: source/convert_from_argb.cc
|
| diff --git a/source/convert_from_argb.cc b/source/convert_from_argb.cc
|
| index 41df216dbec69e729da0f26c9d527f59c792a779..81b59ba2914665f359bd6b3f0ca489bae6b765e4 100644
|
| --- a/source/convert_from_argb.cc
|
| +++ b/source/convert_from_argb.cc
|
| @@ -977,6 +977,15 @@ int ARGBToRGB565Dither(const uint8* src_argb,
|
| }
|
| }
|
| #endif
|
| +#if defined(HAS_ARGBTORGB565DITHERROW_MSA)
|
| + if (TestCpuFlag(kCpuHasMSA)) {
|
| + ARGBToRGB565DitherRow = ARGBToRGB565DitherRow_Any_MSA;
|
| + if (IS_ALIGNED(width, 8)) {
|
| + ARGBToRGB565DitherRow = ARGBToRGB565DitherRow_MSA;
|
| + }
|
| + }
|
| +#endif
|
| +
|
| for (y = 0; y < height; ++y) {
|
| ARGBToRGB565DitherRow(src_argb, dst_rgb565,
|
| *(uint32*)(dither4x4 + ((y & 3) << 2)),
|
|
|