ref: 03a0ced87a54c38253bdba98b3337505e5df84fa
parent: c73a44c725ab76fdec608fb63c7c22d1e189deef
author: Angie Chiang <angiebird@google.com>
date: Mon Mar 4 12:19:22 EST 2019
Fix compile error when DUMP_TPL_STATS is 1 Change-Id: Ie859c2c8e377b6b0982293833ddc657855b18091
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -6726,9 +6726,10 @@
#define DUMP_TPL_STATS 0
#if DUMP_TPL_STATS
static void dump_buf(uint8_t *buf, int stride, int row, int col, int h, int w) {
+ int i, j;
printf("%d %d\n", h, w);
- for (int i = 0; i < h; ++i) {
- for (int j = 0; j < w; ++j) {
+ for (i = 0; i < h; ++i) {
+ for (j = 0; j < w; ++j) {
printf("%d ", buf[(row + i) * stride + col + j]);
}
}
@@ -6761,8 +6762,6 @@
for (mi_row = 0; mi_row < cm->mi_rows; ++mi_row) {
for (mi_col = 0; mi_col < cm->mi_cols; ++mi_col) {
if ((mi_row % mi_height) == 0 && (mi_col % mi_width) == 0) {
- const TplDepStats *tpl_ptr =
- &tpl_frame->tpl_stats_ptr[mi_row * tpl_frame->stride + mi_col];
int_mv mv = *get_pyramid_mv(tpl_frame, idx, bsize, mi_row, mi_col);
printf("%d %d %d %d\n", mi_row, mi_col, mv.as_mv.row, mv.as_mv.col);
}