[x265] [PATCH] ipfilter_ps now requires at least SSSE3

praveen at multicorewareinc.com praveen at multicorewareinc.com
Mon Jul 29 12:44:23 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1375094654 -19800
# Node ID 7e4a0d1ae55309a133aea36e1201872356fdaeaf
# Parent  6d1437cdaf6464a909891104ce34884ef2f9b23e
ipfilter_ps now requires at least SSSE3

diff -r 6d1437cdaf64 -r 7e4a0d1ae553 source/common/vec/ipfilter.inc
--- a/source/common/vec/ipfilter.inc	Mon Jul 29 16:04:01 2013 +0530
+++ b/source/common/vec/ipfilter.inc	Mon Jul 29 16:14:14 2013 +0530
@@ -44,15 +44,14 @@
 #if INSTRSET > 3
     p.ipfilter_pp[FILTER_H_P_P_4] = filterHorizontal_p_p<4>;
     p.ipfilter_pp[FILTER_H_P_P_8] = filterHorizontal_p_p<8>;
+    p.ipfilter_ps[FILTER_H_P_S_4] = filterHorizontal_p_s<4>;
+    p.ipfilter_ps[FILTER_H_P_S_8] = filterHorizontal_p_s<8>;
 #endif
 
     p.ipfilter_pp[FILTER_V_P_P_4] = filterVertical_p_p<4>;
     p.ipfilter_pp[FILTER_V_P_P_8] = filterVertical_p_p<8>;
 
-    p.ipfilter_ps[FILTER_H_P_S_4] = filterHorizontal_p_s<4>;
     p.ipfilter_sp[FILTER_V_S_P_4] = filterVertical_s_p<4>;
-    
-    p.ipfilter_ps[FILTER_H_P_S_8] = filterHorizontal_p_s<8>;
     p.ipfilter_sp[FILTER_V_S_P_8] = filterVertical_s_p<8>;
 
     p.ipfilter_p2s = filterConvertPelToShort;
diff -r 6d1437cdaf64 -r 7e4a0d1ae553 source/common/vec/ipfilter8.inc
--- a/source/common/vec/ipfilter8.inc	Mon Jul 29 16:04:01 2013 +0530
+++ b/source/common/vec/ipfilter8.inc	Mon Jul 29 16:14:14 2013 +0530
@@ -1104,6 +1104,7 @@
 
 #endif /* if INSTRSET > 4 */
 
+#if INSTRSET > 3
 template<int N>
 void filterHorizontal_p_s(pixel *src, int srcStride, short *dst, int dstStride, int width, int height, short const *coeff)
 {
@@ -1195,6 +1196,8 @@
     }
 }
 
+#endif /* if INSTRSET > 3 */
+
 void filterConvertPelToShort(pixel *src, int srcStride, short *dst, int dstStride, int width, int height)
 {
     pixel* srcOrg = src;


More information about the x265-devel mailing list