aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingning Han <jingning@google.com>2024-04-04 11:22:43 -0700
committerJames Zern <jzern@google.com>2024-04-18 22:23:35 +0000
commit0f41d224de36ca2a68aa45e11654cf0de21f95e2 (patch)
treedf8bd5964f00749e9293346e4c63ee79a14af051
parent0dce93a8dc96eb72aa92e0a7b05ad926df641a3e (diff)
downloadlibaom-0f41d224de36ca2a68aa45e11654cf0de21f95e2.tar.gz
Adding comment to gaussian filter buffer alloc
Bug: b:324147074 Change-Id: I1a2ca0f17f171ef1b4d447ef8421da3c765df28d (cherry picked from commit d3d5e945a147cc184efee39093414ca3d72cd724)
-rw-r--r--av1/encoder/tune_vmaf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/av1/encoder/tune_vmaf.c b/av1/encoder/tune_vmaf.c
index 847571f89..fdb7c77eb 100644
--- a/av1/encoder/tune_vmaf.c
+++ b/av1/encoder/tune_vmaf.c
@@ -247,6 +247,8 @@ static AOM_INLINE void unsharp(const AV1_COMP *const cpi,
// 8-tap Gaussian convolution filter with sigma = 1.0, sums to 128,
// all co-efficients must be even.
+// The array is of size 9 to allow passing gauss_filter + 1 to
+// _mm_loadu_si128() in prepare_coeffs_6t().
DECLARE_ALIGNED(16, static const int16_t, gauss_filter[9]) = { 0, 8, 30, 52,
30, 8, 0, 0 };
static AOM_INLINE void gaussian_blur(const int bit_depth,