Reduce vertical border height of CDEF line buffer This patch changes the value of 'CDEF_VBORDER' to 2 as it is sufficient for line buffer used in cdef filtering. Change-Id: I6f6aa09dd239aa4830a93a15c032b5059c96b46e
diff --git a/av1/common/cdef_block.h b/av1/common/cdef_block.h index 6b0ae0a..574df2d 100644 --- a/av1/common/cdef_block.h +++ b/av1/common/cdef_block.h
@@ -19,8 +19,8 @@ #define CDEF_NBLOCKS ((1 << MAX_SB_SIZE_LOG2) / 8) #define CDEF_SB_SHIFT (MAX_SB_SIZE_LOG2 - CDEF_BLOCKSIZE_LOG2) -/* We need to buffer three vertical lines. */ -#define CDEF_VBORDER (3) +/* We need to buffer two vertical lines. */ +#define CDEF_VBORDER (2) /* We only need to buffer three horizontal pixels too, but let's align to 16 bytes (8 x 16 bits) to make vectorization easier. */ #define CDEF_HBORDER (8)