Commit d24ecae389 for aom
commit d24ecae3892d842099d6abe319512dbbd771817d
Author: Frank Galligan <fgalligan@google.com>
Date: Sat Nov 21 16:07:13 2026 -0800
test: Update threshold comment in intra_hog_test
Follow-up to https://aomedia-review.googlesource.com/c/aom/+/221561:
update the HighbdGenerateHogMatchesTextbookOracle boundary-sweep
comment to cover C and available SIMD implementations (including NEON)
and match the even-dy patch setup (patch[5]/patch[3] and
patch[7]/patch[1]).
Comment-only change; no functional or speed impact (bit-exact).
TAG=agy
CONV=490488d4-7005-402a-8cc4-c245227f80fe
Change-Id: I932876215bce1c907e885ae8b490f26797b737ca
diff --git a/test/intra_hog_test.cc b/test/intra_hog_test.cc
index 788eae70b8..ea82e15817 100644
--- a/test/intra_hog_test.cc
+++ b/test/intra_hog_test.cc
@@ -230,11 +230,11 @@ TEST(IntraHogRefTest, HighbdGenerateHogMatchesTextbookOracle) {
}
}
- // Explicitly probe every threshold boundary kHogThresholds[0..30] on both C
- // and SSE2 using 12-bit 3x3 patches where dx = +/-128 (via p12=64 or p10=64,
- // which leaves dy=0) and dy sweeps across the exact boundary value (via
- // p21/p01 and p20=p22, keeping dx unchanged when even, or shifting 1 from
- // p12=63 + p02=1 + p8=1 for even/odd dy).
+ // Explicitly probe every threshold boundary kHogThresholds[0..30] on C and
+ // available SIMD implementations using 12-bit 3x3 patches where dx = +/-128
+ // (via patch[5]=64 or patch[3]=64, leaving dy=0) and even dy values sweep
+ // across each boundary (via patch[7]=dy/2 or patch[1]=-dy/2, leaving dx
+ // unchanged).
for (int t = 0; t < kHogBins - 1; ++t) {
for (int sign_dx : { 1, -1 }) {
const int dx = sign_dx * 128;