Index: source/planar_functions.cc |
diff --git a/source/planar_functions.cc b/source/planar_functions.cc |
index 143ae869dde2cbdf44ade9442accb09a14b83ae9..31d14ac3cd2b32eb7e1878f9dc836811229edcf5 100644 |
--- a/source/planar_functions.cc |
+++ b/source/planar_functions.cc |
@@ -1243,6 +1243,14 @@ static int I422ToRGBAMatrix(const uint8* src_y, int src_stride_y, |
I422ToRGBARow = I422ToRGBARow_DSPR2; |
} |
#endif |
+#if defined(HAS_I422TORGBAROW_MSA) |
+ if (TestCpuFlag(kCpuHasMSA)) { |
+ I422ToRGBARow = I422ToRGBARow_Any_MSA; |
+ if (IS_ALIGNED(width, 8)) { |
+ I422ToRGBARow = I422ToRGBARow_MSA; |
+ } |
+ } |
+#endif |
for (y = 0; y < height; ++y) { |
I422ToRGBARow(src_y, src_u, src_v, dst_rgba, yuvconstants, width); |