ref: d1bfa55d688beb3c9520b5cee5ad47fb7369de18
parent: 859a4747189262f640d837f6959125e21dc8af79
parent: 53729c7786df9e7652e5d52ad88f2b87515a2d52
author: Ronald S. Bultje <[email protected]>
date: Mon Jun 17 10:30:57 EDT 2013
Merge "Fix typo ('weight' instead of 'width')."
--- a/vp9/encoder/vp9_variance.h
+++ b/vp9/encoder/vp9_variance.h
@@ -86,18 +86,18 @@
vp9_sad_multi_d_fn_t sdx4df;
} vp9_variance_fn_ptr_t;
-static void comp_avg_pred(uint8_t *comp_pred, const uint8_t *pred, int weight,
+static void comp_avg_pred(uint8_t *comp_pred, const uint8_t *pred, int width,
int height, uint8_t *ref, int ref_stride) {
int i, j;
for (i = 0; i < height; i++) {
- for (j = 0; j < weight; j++) {
+ for (j = 0; j < width; j++) {
int tmp;
tmp = pred[j] + ref[j];
comp_pred[j] = (tmp + 1) >> 1;
}
- comp_pred += weight;
- pred += weight;
+ comp_pred += width;
+ pred += width;
ref += ref_stride;
}
}