[x265] [PATCH] sao: modify C and SSE4 code for saoCuOrgE0 to process 2 rows

Steve Borho steve at borho.org
Thu Apr 2 20:02:26 CEST 2015


On 04/02, Divya Manivannan wrote:
> # HG changeset patch
> # User Divya Manivannan <divya at multicorewareinc.com>
> # Date 1427951561 -19800
> #      Thu Apr 02 10:42:41 2015 +0530
> # Node ID 6f19f7a1ed620bdaef9ad4b63114da50d1dd5a15
> # Parent  f718abdc8004d0c859266b292730b7b5b3d0d4df
> sao: modify C and SSE4 code for saoCuOrgE0 to process 2 rows

rolled this one together with the first

> diff -r f718abdc8004 -r 6f19f7a1ed62 source/encoder/sao.cpp
> --- a/source/encoder/sao.cpp	Wed Apr 01 19:05:36 2015 +0530
> +++ b/source/encoder/sao.cpp	Thu Apr 02 10:42:41 2015 +0530
> @@ -258,7 +258,7 @@
>      pixel* tmpL;
>      pixel* tmpU;
>  
> -    int8_t _upBuff1[MAX_CU_SIZE + 2], *upBuff1 = _upBuff1 + 1, signLeft[2];
> +    int8_t _upBuff1[MAX_CU_SIZE + 2], *upBuff1 = _upBuff1 + 1, signLeft1[2];
>      int8_t _upBufft[MAX_CU_SIZE + 2], *upBufft = _upBufft + 1;
>  
>      memset(_upBuff1 + MAX_CU_SIZE, 0, 2 * sizeof(int8_t)); /* avoid valgrind uninit warnings */
> @@ -303,8 +303,8 @@
>          {
>              for (y = 0; y < ctuHeight; y += 2)
>              {
> -                signLeft[0] = signOf(rec[startX] - tmpL[y]);
> -                signLeft[1] = signOf(rec[stride + startX] - tmpL[y + 1]);
> +                signLeft1[0] = signOf(rec[startX] - tmpL[y]);
> +                signLeft1[1] = signOf(rec[stride + startX] - tmpL[y + 1]);
>  
>                  if (!lpelx)
>                  {
> @@ -318,7 +318,7 @@
>                      row1LastPxl = rec[stride + ctuWidth - 1];
>                  }
>  
> -                primitives.saoCuOrgE0(rec, m_offsetEo, ctuWidth, signLeft, stride);
> +                primitives.saoCuOrgE0(rec, m_offsetEo, ctuWidth, signLeft1, stride);
>  
>                  if (!lpelx)
>                  {
> _______________________________________________
> 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