Reduce horizontal CDEF padding to 8 pixels instead of 32 Reduces the amount of useless copying we do. Change-Id: I743c88f4a49e04381213bc58e520427ff8979cee
diff --git a/av1/common/od_dering.h b/av1/common/od_dering.h index d5224f4..60d17bc 100644 --- a/av1/common/od_dering.h +++ b/av1/common/od_dering.h
@@ -22,11 +22,11 @@ /* We need to buffer three vertical lines. */ #define OD_FILT_VBORDER (3) -/* We only need to buffer three horizontal lines too, but let's make it four - to make vectorization easier. */ -#define OD_FILT_HBORDER (32) +/* 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 OD_FILT_HBORDER (8) #define OD_FILT_BSTRIDE \ - ALIGN_POWER_OF_TWO(OD_BSIZE_MAX + 2 * OD_FILT_HBORDER, 5) + ALIGN_POWER_OF_TWO(OD_BSIZE_MAX + 2 * OD_FILT_HBORDER, 3) #define OD_DERING_VERY_LARGE (30000) #define OD_DERING_INBUF_SIZE \