[x265] [PATCH] calcSaoStatsCu, SAO_EO_1: sign asm code integration

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Jan 2 13:53:15 CET 2015


# HG changeset patch
# User Praveen Tiwari
# Date 1420203158 -19800
# Node ID 7f38638d2f694054e3497952fc3085cca25f77b8
# Parent  85d356e250751678dc384b01b29341cf7e3ebd2e
calcSaoStatsCu, SAO_EO_1: sign asm code integration

diff -r 85d356e25075 -r 7f38638d2f69 source/encoder/sao.cpp
--- a/source/encoder/sao.cpp	Fri Jan 02 17:56:53 2015 +0530
+++ b/source/encoder/sao.cpp	Fri Jan 02 18:22:38 2015 +0530
@@ -701,8 +701,15 @@
                 rec += stride;
             }
 
-            for (x = 0; x < ctuWidth; x++)
-                upBuff1[x] = signOf(rec[x] - rec[x - stride]);
+            if (!(ctuWidth & 15))
+            {
+                primitives.sign(upBuff1, rec, &rec[- stride], ctuWidth);
+            }
+            else
+            {
+                for (x = 0; x < ctuWidth; x++)
+                    upBuff1[x] = signOf(rec[x] - rec[x - stride]);
+            }
 
             for (y = startY; y < endY; y++)
             {


More information about the x265-devel mailing list