[x265] [PATCH] SAO_EO_1: sign asm code integration
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Fri Jan 2 13:27:20 CET 2015
# HG changeset patch
# User Praveen Tiwari
# Date 1420201613 -19800
# Node ID 85d356e250751678dc384b01b29341cf7e3ebd2e
# Parent 3de607b1444b0accf78a554ef2c1226b7cb13e5b
SAO_EO_1: sign asm code integration
diff -r 3de607b1444b -r 85d356e25075 source/encoder/sao.cpp
--- a/source/encoder/sao.cpp Fri Jan 02 17:35:36 2015 +0530
+++ b/source/encoder/sao.cpp Fri Jan 02 17:56:53 2015 +0530
@@ -328,8 +328,15 @@
if (!tpely)
rec += stride;
- for (x = 0; x < ctuWidth; x++)
- upBuff1[x] = signOf(rec[x] - tmpU[x]);
+ if (!(ctuWidth & 15))
+ {
+ primitives.sign(upBuff1, rec, tmpU, ctuWidth);
+ }
+ else
+ {
+ for (x = 0; x < ctuWidth; x++)
+ upBuff1[x] = signOf(rec[x] - tmpU[x]);
+ }
for (y = startY; y < endY; y++)
{
More information about the x265-devel
mailing list