Index: source/convert_from_argb.cc |
diff --git a/source/convert_from_argb.cc b/source/convert_from_argb.cc |
index 2a8682b7eb42f17642d27ea5ff1cfd7759d4ddae..50ede22a686e056df90f82979207c8674a2970d8 100644 |
--- a/source/convert_from_argb.cc |
+++ b/source/convert_from_argb.cc |
@@ -553,6 +553,14 @@ int ARGBToYUY2(const uint8* src_argb, int src_stride_argb, |
} |
} |
#endif |
+#if defined(HAS_I422TOYUY2ROW_MSA) |
+ if (TestCpuFlag(kCpuHasMSA)) { |
+ I422ToYUY2Row = I422ToYUY2Row_Any_MSA; |
+ if (IS_ALIGNED(width, 32)) { |
+ I422ToYUY2Row = I422ToYUY2Row_MSA; |
+ } |
+ } |
+#endif |
{ |
// Allocate a rows of yuv. |
@@ -655,6 +663,14 @@ int ARGBToUYVY(const uint8* src_argb, int src_stride_argb, |
} |
} |
#endif |
+#if defined(HAS_I422TOUYVYROW_MSA) |
+ if (TestCpuFlag(kCpuHasMSA)) { |
+ I422ToUYVYRow = I422ToUYVYRow_Any_MSA; |
+ if (IS_ALIGNED(width, 32)) { |
+ I422ToUYVYRow = I422ToUYVYRow_MSA; |
+ } |
+ } |
+#endif |
{ |
// Allocate a rows of yuv. |