From: Jingning Han Date: Sat, 16 Jun 2018 00:06:50 +0000 (-0700) Subject: Remove unneeded buffer restore calls X-Git-Tag: v1.8.0~604^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52416c3e17f19ae13d32e2fa672ddc7697182ade;p=libvpx Remove unneeded buffer restore calls Change-Id: I89c8ad6544e0cee60b5daf49bc18c7e31f08faa2 --- diff --git a/vp9/encoder/vp9_temporal_filter.c b/vp9/encoder/vp9_temporal_filter.c index 2758c42ae..4db3e6f8e 100644 --- a/vp9/encoder/vp9_temporal_filter.c +++ b/vp9/encoder/vp9_temporal_filter.c @@ -620,13 +620,6 @@ static void temporal_filter_iterate_c(VP9_COMP *cpi) { const int tile_cols = 1 << cm->log2_tile_cols; const int tile_rows = 1 << cm->log2_tile_rows; int tile_row, tile_col; - MACROBLOCKD *mbd = &cpi->td.mb.e_mbd; - // Save input state - uint8_t *input_buffer[MAX_MB_PLANE]; - int i; - - for (i = 0; i < MAX_MB_PLANE; i++) input_buffer[i] = mbd->plane[i].pre[0].buf; - vp9_init_tile_data(cpi); for (tile_row = 0; tile_row < tile_rows; ++tile_row) { @@ -634,9 +627,6 @@ static void temporal_filter_iterate_c(VP9_COMP *cpi) { temporal_filter_iterate_tile_c(cpi, tile_row, tile_col); } } - - // Restore input state - for (i = 0; i < MAX_MB_PLANE; i++) mbd->plane[i].pre[0].buf = input_buffer[i]; } // Apply buffer limits and context specific adjustments to arnr filter.