[x265] [PATCH] integrating asm code for sa8d in primitives.cpp

yuvaraj at multicorewareinc.com yuvaraj at multicorewareinc.com
Thu Dec 5 07:55:29 CET 2013


# HG changeset patch
# User Yuvaraj Venkatesh <yuvaraj at multicorewareinc.com>
# Date 1386226346 -19800
#      Thu Dec 05 12:22:26 2013 +0530
# Node ID 87e6792f52249f74b27e2175455f47ab21290350
# Parent  d35b423823312ab5cdc51d2d144d8b9b2c008c66
integrating asm code for sa8d in primitives.cpp

there was no separate functions for sa8d in assembly, we are just re-using sa8d_inter functions for sa8d.

diff -r d35b42382331 -r 87e6792f5224 source/common/primitives.cpp
--- a/source/common/primitives.cpp	Wed Dec 04 22:44:18 2013 -0600
+++ b/source/common/primitives.cpp	Thu Dec 05 12:22:26 2013 +0530
@@ -130,10 +130,11 @@
     Setup_Assembly_Primitives(primitives, cpuid);
 #endif
 
-    primitives.sa8d_inter[LUMA_8x8] = primitives.sa8d[BLOCK_8x8];
-    primitives.sa8d_inter[LUMA_16x16] = primitives.sa8d[BLOCK_16x16];
-    primitives.sa8d_inter[LUMA_32x32] = primitives.sa8d[BLOCK_32x32];
-    primitives.sa8d_inter[LUMA_64x64] = primitives.sa8d[BLOCK_64x64];
+    primitives.sa8d[BLOCK_4x4] = primitives.sa8d_inter[LUMA_4x4];
+    primitives.sa8d[BLOCK_8x8] = primitives.sa8d_inter[LUMA_8x8];
+    primitives.sa8d[BLOCK_16x16] = primitives.sa8d_inter[LUMA_16x16];
+    primitives.sa8d[BLOCK_32x32] = primitives.sa8d_inter[LUMA_32x32];
+    primitives.sa8d[BLOCK_64x64] = primitives.sa8d_inter[LUMA_64x64];
 
     // SA8D devolves to SATD for blocks not even multiples of 8x8
     primitives.sa8d_inter[LUMA_4x4]   = primitives.satd[LUMA_4x4];


More information about the x265-devel mailing list