shithub: dav1d

Download patch

ref: ac492552babb8c7916a9347768f4dcacbb47dd42
parent: d398da88c0b68e3dbb966256c7ed682b211579e3
author: Martin Storsjö <[email protected]>
date: Mon Feb 24 19:08:44 EST 2020

arm: loopfilter: Fix a comment

--- a/src/arm/32/loopfilter.S
+++ b/src/arm/32/loopfilter.S
@@ -143,8 +143,8 @@
         vaddw.s8        q1,  q1,  d4
         vmov.i8         d7,  #3
         vqmovn.s16      d2,  q1       // f
-        vqadd.s8        d4,  d6,  d2  // imin(f + 4, 128)
-        vqadd.s8        d5,  d7,  d2  // imin(f + 3, 128)
+        vqadd.s8        d4,  d6,  d2  // imin(f + 4, 127)
+        vqadd.s8        d5,  d7,  d2  // imin(f + 3, 127)
         vshr.s8         d4,  d4,  #3  // f1
         vshr.s8         d5,  d5,  #3  // f2
         vmovl.u8        q1,  d23      // p0
--- a/src/arm/64/loopfilter.S
+++ b/src/arm/64/loopfilter.S
@@ -151,8 +151,8 @@
         movi            v7.16b,  #3
         sqxtn           v2.8b,   v2.8h            // f
         sqxtn2          v2.16b,  v3.8h
-        sqadd           v4.16b,  v6.16b,  v2.16b  // imin(f + 4, 128)
-        sqadd           v5.16b,  v7.16b,  v2.16b  // imin(f + 3, 128)
+        sqadd           v4.16b,  v6.16b,  v2.16b  // imin(f + 4, 127)
+        sqadd           v5.16b,  v7.16b,  v2.16b  // imin(f + 3, 127)
         sshr            v4.16b,  v4.16b,  #3      // f1
         sshr            v5.16b,  v5.16b,  #3      // f2
         uxtl            v2.8h,   v23.8b           // p0