Index: source/convert_from.cc |
diff --git a/source/convert_from.cc b/source/convert_from.cc |
index f81054c20d2c696d221f0dcc8b28abe1435e5441..f5d70e4bf582a9922408023f5a7ccef59152470d 100644 |
--- a/source/convert_from.cc |
+++ b/source/convert_from.cc |
@@ -976,6 +976,14 @@ int I420ToRGB565Dither(const uint8* src_y, |
} |
} |
#endif |
+#if defined(HAS_ARGBTORGB565DITHERROW_MSA) |
+ if (TestCpuFlag(kCpuHasMSA)) { |
+ ARGBToRGB565DitherRow = ARGBToRGB565DitherRow_Any_MSA; |
+ if (IS_ALIGNED(width, 8)) { |
+ ARGBToRGB565DitherRow = ARGBToRGB565DitherRow_MSA; |
+ } |
+ } |
+#endif |
{ |
// Allocate a row of argb. |
align_buffer_64(row_argb, width * 4); |