Document and rename tmp_obmc_bufs in MACROBLOCK
The dynamic array tmp_obmc_bufs is also used as a temporary buffer to
hold temporary predictions in handle_inter_mode. This CL documents this
usage and rename it to the less misleading tmp_pred_bufs.
BUG=aomedia:2618
Change-Id: I281a5262cff0a7a65d4af3d0fb571cb15e4727f0
diff --git a/av1/encoder/ethread.c b/av1/encoder/ethread.c
index 9c01179..a05dce8 100644
--- a/av1/encoder/ethread.c
+++ b/av1/encoder/ethread.c
@@ -532,9 +532,9 @@
sizeof(*thread_data->td->tmp_conv_dst)));
for (int j = 0; j < 2; ++j) {
CHECK_MEM_ERROR(
- cm, thread_data->td->tmp_obmc_bufs[j],
+ cm, thread_data->td->tmp_pred_bufs[j],
aom_memalign(32, 2 * MAX_MB_PLANE * MAX_SB_SQUARE *
- sizeof(*thread_data->td->tmp_obmc_bufs[j])));
+ sizeof(*thread_data->td->tmp_pred_bufs[j])));
}
CHECK_MEM_ERROR(
@@ -664,14 +664,14 @@
thread_data->td->mb.comp_rd_buffer = thread_data->td->comp_rd_buffer;
thread_data->td->mb.tmp_conv_dst = thread_data->td->tmp_conv_dst;
for (int j = 0; j < 2; ++j) {
- thread_data->td->mb.tmp_obmc_bufs[j] =
- thread_data->td->tmp_obmc_bufs[j];
+ thread_data->td->mb.tmp_pred_bufs[j] =
+ thread_data->td->tmp_pred_bufs[j];
}
thread_data->td->mb.e_mbd.tmp_conv_dst = thread_data->td->mb.tmp_conv_dst;
for (int j = 0; j < 2; ++j) {
thread_data->td->mb.e_mbd.tmp_obmc_bufs[j] =
- thread_data->td->mb.tmp_obmc_bufs[j];
+ thread_data->td->mb.tmp_pred_bufs[j];
}
}
}