From d3d5e945a147cc184efee39093414ca3d72cd724 Mon Sep 17 00:00:00 2001
From: Jingning Han <[EMAIL REDACTED]>
Date: Thu, 4 Apr 2024 11:22:43 -0700
Subject: [PATCH] Adding comment to gaussian filter buffer alloc
Bug: b:324147074
Change-Id: I1a2ca0f17f171ef1b4d447ef8421da3c765df28d
---
av1/encoder/tune_vmaf.c | 2 ++
1 file changed, 2 insertions(+)
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,