[x265] [PATCH 3 of 3] Adding asm function declaration and initialization for weight_sp asm routine

nabajit at multicorewareinc.com nabajit at multicorewareinc.com
Mon Nov 25 11:38:26 CET 2013


# HG changeset patch
# User Nabajit Deka
# Date 1385375851 -19800
#      Mon Nov 25 16:07:31 2013 +0530
# Node ID 151fd72f899c10f9c7cb59058f5214648e607d27
# Parent  21d87345c83d732137d6319023ead387a442377a
Adding asm function declaration and initialization for weight_sp asm routine

diff -r 21d87345c83d -r 151fd72f899c source/common/vec/pixel-sse41.cpp
--- a/source/common/vec/pixel-sse41.cpp	Mon Nov 25 16:06:44 2013 +0530
+++ b/source/common/vec/pixel-sse41.cpp	Mon Nov 25 16:07:31 2013 +0530
@@ -778,7 +778,7 @@
     Setup_Vec_Pixel16Primitives_sse41(p);
 #else
     //p.weight_pp = weight_pp;
-    p.weight_sp = weight_sp;
+    //p.weight_sp = weight_sp;
 #endif /* !HIGH_BIT_DEPTH */
 }
 }
diff -r 21d87345c83d -r 151fd72f899c source/common/x86/asm-primitives.cpp
--- a/source/common/x86/asm-primitives.cpp	Mon Nov 25 16:06:44 2013 +0530
+++ b/source/common/x86/asm-primitives.cpp	Mon Nov 25 16:07:31 2013 +0530
@@ -665,6 +665,7 @@
         p.intra_pred_dc[BLOCK_32x32] = x265_intra_pred_dc32_sse4;
 
         p.weight_pp = x265_weight_pp_sse4;
+        p.weight_sp = x265_weight_sp_sse4;
     }
     if (cpuMask & X265_CPU_AVX)
     {
diff -r 21d87345c83d -r 151fd72f899c source/common/x86/pixel.h
--- a/source/common/x86/pixel.h	Mon Nov 25 16:06:44 2013 +0530
+++ b/source/common/x86/pixel.h	Mon Nov 25 16:07:31 2013 +0530
@@ -380,5 +380,6 @@
 int x265_pixel_ssd_64x48_sse4(pixel *, intptr_t, pixel *, intptr_t);
 int x265_pixel_ssd_64x64_sse4(pixel *, intptr_t, pixel *, intptr_t);
 void x265_weight_pp_sse4(pixel *src, pixel *dst, intptr_t srcStride, intptr_t dstStride, int width, int height, int w0, int round, int shift, int offset);
+void x265_weight_sp_sse4(int16_t *src, pixel *dst, intptr_t srcStride, intptr_t dstStride, int width, int height, int w0, int round, int shift, int offset);
 
 #endif // ifndef X265_I386_PIXEL_H


More information about the x265-devel mailing list