[x265] [PATCH 3 of 3] Adding asm function declaration and initialization for weight_pp asm routine
nabajit at multicorewareinc.com
nabajit at multicorewareinc.com
Mon Nov 25 11:18:05 CET 2013
# HG changeset patch
# User Nabajit Deka
# Date 1385374609 -19800
# Mon Nov 25 15:46:49 2013 +0530
# Node ID 92969306ae85ed2c506d53d709e02f3d98b895f7
# Parent f7422dfb7eef017344b4d974dac641cb00f7f5b7
Adding asm function declaration and initialization for weight_pp asm routine.
diff -r f7422dfb7eef -r 92969306ae85 source/common/vec/pixel-sse41.cpp
--- a/source/common/vec/pixel-sse41.cpp Mon Nov 25 15:45:25 2013 +0530
+++ b/source/common/vec/pixel-sse41.cpp Mon Nov 25 15:46:49 2013 +0530
@@ -777,7 +777,7 @@
#if HIGH_BIT_DEPTH
Setup_Vec_Pixel16Primitives_sse41(p);
#else
- p.weight_pp = weight_pp;
+ //p.weight_pp = weight_pp;
p.weight_sp = weight_sp;
#endif /* !HIGH_BIT_DEPTH */
}
diff -r f7422dfb7eef -r 92969306ae85 source/common/x86/asm-primitives.cpp
--- a/source/common/x86/asm-primitives.cpp Mon Nov 25 15:45:25 2013 +0530
+++ b/source/common/x86/asm-primitives.cpp Mon Nov 25 15:46:49 2013 +0530
@@ -663,6 +663,8 @@
p.intra_pred_dc[BLOCK_8x8] = x265_intra_pred_dc8_sse4;
p.intra_pred_dc[BLOCK_16x16] = x265_intra_pred_dc16_sse4;
p.intra_pred_dc[BLOCK_32x32] = x265_intra_pred_dc32_sse4;
+
+ p.weight_pp = x265_weight_pp_sse4;
}
if (cpuMask & X265_CPU_AVX)
{
diff -r f7422dfb7eef -r 92969306ae85 source/common/x86/pixel.h
--- a/source/common/x86/pixel.h Mon Nov 25 15:45:25 2013 +0530
+++ b/source/common/x86/pixel.h Mon Nov 25 15:46:49 2013 +0530
@@ -379,5 +379,6 @@
int x265_pixel_ssd_64x32_sse4(pixel *, intptr_t, pixel *, intptr_t);
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);
#endif // ifndef X265_I386_PIXEL_H
More information about the x265-devel
mailing list