[x265] [PATCH] calcSaoStatsCu, SAO_EO_1: sign asm code integration
Steve Borho
steve at borho.org
Sat Jan 3 04:50:49 CET 2015
On 01/02, praveen at multicorewareinc.com wrote:
> # 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);
same for these other patches, a CTU will not be smaller than 16x16
> + }
> + else
> + {
> + for (x = 0; x < ctuWidth; x++)
> + upBuff1[x] = signOf(rec[x] - rec[x - stride]);
> + }
>
> for (y = startY; y < endY; y++)
> {
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
--
Steve Borho
More information about the x265-devel
mailing list