Commit 4f1f510f authored by Jingning Han's avatar Jingning Han

Add dynamic range comment to vp9_satd

Change-Id: I75873846e6fdafbe7597a1bd0192115d2d1e9987
parent 8914ab69
......@@ -115,12 +115,15 @@ void vp9_hadamard_16x16_c(int16_t const *src_diff, int src_stride,
}
}
// coeff: 16 bits, dynamic range [-32640, 32640].
// length: value range {16, 64, 256, 1024}.
int16_t vp9_satd_c(const int16_t *coeff, int length) {
int i;
int satd = 0;
for (i = 0; i < length; ++i)
satd += abs(coeff[i]);
// satd: 26 bits, dynamic range [-32640 * 1024, 32640 * 1024]
return (int16_t)satd;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment