[x265] [PATCH 3 of 3] Adding function pointer initializations for luma vsp functions
nabajit at multicorewareinc.com
nabajit at multicorewareinc.com
Mon Nov 11 10:47:10 CET 2013
# HG changeset patch
# User Nabajit Deka
# Date 1384163146 -19800
# Mon Nov 11 15:15:46 2013 +0530
# Node ID 417a4fc8bc99ebbaa018fe1d867a78b9c64d2fa3
# Parent 60d3c9c739261fd3c32555bc9619a581a3ebae38
Adding function pointer initializations for luma vsp functions.
diff -r 60d3c9c73926 -r 417a4fc8bc99 source/common/x86/asm-primitives.cpp
--- a/source/common/x86/asm-primitives.cpp Mon Nov 11 15:14:31 2013 +0530
+++ b/source/common/x86/asm-primitives.cpp Mon Nov 11 15:15:46 2013 +0530
@@ -191,6 +191,9 @@
p.luma_vpp[LUMA_ ## W ## x ## H] = x265_interp_8tap_vert_pp_ ## W ## x ## H ## cpu; \
p.luma_vps[LUMA_ ## W ## x ## H] = x265_interp_8tap_vert_ps_ ## W ## x ## H ## cpu;
+#define SETUP_LUMA_SP_FUNC_DEF(W, H, cpu) \
+ p.luma_vsp[LUMA_ ## W ## x ## H] = x265_interp_8tap_vert_sp_ ## W ## x ## H ## cpu;
+
#define SETUP_LUMA_BLOCKCOPY_FUNC_DEF(W, H, cpu) \
p.luma_copy_pp[LUMA_ ## W ## x ## H] = x265_blockcopy_pp_ ## W ## x ## H ## cpu;
@@ -221,6 +224,33 @@
SETUP_LUMA_FUNC_DEF(64, 16, cpu); \
SETUP_LUMA_FUNC_DEF(16, 64, cpu);
+#define LUMA_SP_FILTERS(cpu) \
+ SETUP_LUMA_SP_FUNC_DEF(4, 4, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(8, 8, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(8, 4, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(4, 8, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(16, 16, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(16, 8, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(8, 16, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(16, 12, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(12, 16, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(16, 4, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(4, 16, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(32, 32, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(32, 16, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(16, 32, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(32, 24, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(24, 32, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(32, 8, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(8, 32, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(64, 64, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(64, 32, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(32, 64, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(64, 48, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(48, 64, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(64, 16, cpu); \
+ SETUP_LUMA_SP_FUNC_DEF(16, 64, cpu);
+
#define LUMA_BLOCKCOPY(cpu) \
SETUP_LUMA_BLOCKCOPY_FUNC_DEF(4, 4, cpu); \
SETUP_LUMA_BLOCKCOPY_FUNC_DEF(8, 8, cpu); \
@@ -435,6 +465,7 @@
p.ipfilter_sp[FILTER_V_S_P_8] = x265_interp_8tap_v_sp_ssse3;
p.luma_p2s = x265_luma_p2s_ssse3;
p.chroma_p2s = x265_chroma_p2s_ssse3;
+ LUMA_SP_FILTERS(_ssse3);
}
if (cpuMask & X265_CPU_SSE4)
{
More information about the x265-devel
mailing list