ref: d1398e9f137445e2f68efd98b1bbb236ae02e878
parent: b6ea0c4c5774ecf223e0ad39bbdc2a08ed323e77
parent: 4f1f510f160a185df63ca2bbacc7afee1f966b70
author: Jingning Han <[email protected]>
date: Thu Jun 18 15:36:52 EDT 2015
Merge "Add dynamic range comment to vp9_satd"
--- a/vp9/encoder/vp9_avg.c
+++ b/vp9/encoder/vp9_avg.c
@@ -115,6 +115,8 @@
}
}
+// 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;
@@ -121,6 +123,7 @@
for (i = 0; i < length; ++i)
satd += abs(coeff[i]);
+ // satd: 26 bits, dynamic range [-32640 * 1024, 32640 * 1024]
return (int16_t)satd;
}