summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_reconinter.c
diff options
context:
space:
mode:
authorDmitry Kovalev <dkovalev@google.com>2013-03-27 16:19:27 -0700
committerDmitry Kovalev <dkovalev@google.com>2013-03-27 16:19:27 -0700
commit17cddb4e269150560e3167653f84b02fab4c3122 (patch)
tree1c81d46909789d3db9d9e8ab67d676404c99313e /vp9/common/vp9_reconinter.c
parent9ba8aed179f796f90b80b44c1e4453dc2468a6cb (diff)
downloadlibvpx-17cddb4e269150560e3167653f84b02fab4c3122.tar
libvpx-17cddb4e269150560e3167653f84b02fab4c3122.tar.gz
libvpx-17cddb4e269150560e3167653f84b02fab4c3122.tar.bz2
libvpx-17cddb4e269150560e3167653f84b02fab4c3122.zip
Removing redundant function arguments.
Almost all arguments for vp9_build_inter32x32_predictors_sb and vp9_build_inter64x64_predictors_sb can be deduced from the first macroblock argument. Change-Id: I5d477a607586d05698d5b3b9b9bc03891dd3fe83
Diffstat (limited to 'vp9/common/vp9_reconinter.c')
-rw-r--r--vp9/common/vp9_reconinter.c54
1 files changed, 24 insertions, 30 deletions
diff --git a/vp9/common/vp9_reconinter.c b/vp9/common/vp9_reconinter.c
index 110af5e32..d8fffcd0a 100644
--- a/vp9/common/vp9_reconinter.c
+++ b/vp9/common/vp9_reconinter.c
@@ -1340,22 +1340,19 @@ void vp9_build_inter32x32_predictors_sbuv(MACROBLOCKD *x,
}
#endif
-void vp9_build_inter32x32_predictors_sb(MACROBLOCKD *x,
- uint8_t *dst_y,
- uint8_t *dst_u,
- uint8_t *dst_v,
- int dst_ystride,
- int dst_uvstride,
- int mb_row,
- int mb_col) {
- vp9_build_inter32x32_predictors_sby(x, dst_y, dst_ystride,
- mb_row, mb_col);
- vp9_build_inter32x32_predictors_sbuv(x, dst_u, dst_v, dst_uvstride,
- mb_row, mb_col);
+void vp9_build_inter32x32_predictors_sb(MACROBLOCKD *mb,
+ int mb_row, int mb_col) {
+ uint8_t *const y = mb->dst.y_buffer;
+ uint8_t *const u = mb->dst.u_buffer;
+ uint8_t *const v = mb->dst.v_buffer;
+ const int y_stride = mb->dst.y_stride;
+ const int uv_stride = mb->dst.uv_stride;
+
+ vp9_build_inter32x32_predictors_sby(mb, y, y_stride, mb_row, mb_col);
+ vp9_build_inter32x32_predictors_sbuv(mb, u, v, uv_stride, mb_row, mb_col);
#if CONFIG_COMP_INTERINTRA_PRED
- if (x->mode_info_context->mbmi.second_ref_frame == INTRA_FRAME) {
- vp9_build_interintra_32x32_predictors_sb(
- x, dst_y, dst_u, dst_v, dst_ystride, dst_uvstride);
+ if (mb->mode_info_context->mbmi.second_ref_frame == INTRA_FRAME) {
+ vp9_build_interintra_32x32_predictors_sb(mb, y, u, v, y_stride, uv_stride);
}
#endif
}
@@ -1539,22 +1536,19 @@ void vp9_build_inter64x64_predictors_sbuv(MACROBLOCKD *x,
}
}
-void vp9_build_inter64x64_predictors_sb(MACROBLOCKD *x,
- uint8_t *dst_y,
- uint8_t *dst_u,
- uint8_t *dst_v,
- int dst_ystride,
- int dst_uvstride,
- int mb_row,
- int mb_col) {
- vp9_build_inter64x64_predictors_sby(x, dst_y, dst_ystride,
- mb_row, mb_col);
- vp9_build_inter64x64_predictors_sbuv(x, dst_u, dst_v, dst_uvstride,
- mb_row, mb_col);
+void vp9_build_inter64x64_predictors_sb(MACROBLOCKD *mb,
+ int mb_row, int mb_col) {
+ uint8_t *const y = mb->dst.y_buffer;
+ uint8_t *const u = mb->dst.u_buffer;
+ uint8_t *const v = mb->dst.v_buffer;
+ const int y_stride = mb->dst.y_stride;
+ const int uv_stride = mb->dst.uv_stride;
+
+ vp9_build_inter64x64_predictors_sby(mb, y, y_stride, mb_row, mb_col);
+ vp9_build_inter64x64_predictors_sbuv(mb, u, v, uv_stride, mb_row, mb_col);
#if CONFIG_COMP_INTERINTRA_PRED
- if (x->mode_info_context->mbmi.second_ref_frame == INTRA_FRAME) {
- vp9_build_interintra_64x64_predictors_sb(x, dst_y, dst_u, dst_v,
- dst_ystride, dst_uvstride);
+ if (mb->mode_info_context->mbmi.second_ref_frame == INTRA_FRAME) {
+ vp9_build_interintra_64x64_predictors_sb(mb, y, u, v, y_stride, uv_stride);
}
#endif
}