Remove unused local variables Removing unused local variables causing compiler warnings in Visual Studio. Change-Id: I0e2096303be1fdbc01428a6e57cca9796bb32c8a
diff --git a/vp8/common/postproc.c b/vp8/common/postproc.c index 15b1c2c..d30068e 100644 --- a/vp8/common/postproc.c +++ b/vp8/common/postproc.c
@@ -680,7 +680,6 @@ int vp8_post_proc_frame(VP8_COMMON *oci, YV12_BUFFER_CONFIG *dest, vp8_ppflags_t *ppflags) { - char message[512]; int q = oci->filter_level * 10 / 6; int flags = ppflags->post_proc_flag; int deblock_level = ppflags->deblocking_level; @@ -744,6 +743,7 @@ #if CONFIG_POSTPROC_VISUALIZER if (flags & VP8D_DEBUG_TXT_FRAME_INFO) { + char message[512]; sprintf(message, "F%1dG%1dQ%3dF%3dP%d_s%dx%d", (oci->frame_type == KEY_FRAME), oci->refresh_golden_frame, @@ -823,6 +823,7 @@ if (flags & VP8D_DEBUG_TXT_RATE_INFO) { + char message[512]; sprintf(message, "Bitrate: %10.2f frame_rate: %10.2f ", oci->bitrate, oci->framerate); vp8_blit_text(message, oci->post_proc_buffer.y_buffer, oci->post_proc_buffer.y_stride); }
diff --git a/vp8/decoder/decodframe.c b/vp8/decoder/decodframe.c index 4702fae..9305a05 100644 --- a/vp8/decoder/decodframe.c +++ b/vp8/decoder/decodframe.c
@@ -485,7 +485,6 @@ static void stop_token_decoder(VP8D_COMP *pbi) { - int i; VP8_COMMON *pc = &pbi->common; if (pc->multi_token_partition != ONE_PARTITION)
diff --git a/vp8/decoder/threading.c b/vp8/decoder/threading.c index fea4e1c..dac990a 100644 --- a/vp8/decoder/threading.c +++ b/vp8/decoder/threading.c
@@ -451,7 +451,6 @@ #if CONFIG_MULTITHREAD int core_count = 0; int ithread; - int i; pbi->b_multithreaded_rd = 0; pbi->allocated_decoding_thread_count = 0; @@ -721,7 +720,6 @@ /*int mb_row; int mb_col; int baseline_filter_level[MAX_MB_SEGMENTS];*/ - int filter_level; int alt_flt_enabled = mbd->segmentation_enabled; int i; @@ -769,7 +767,7 @@ int ibc = 0; int num_part = 1 << pbi->common.multi_token_partition; - int i, j; + int i; volatile int *last_row_current_mb_col = NULL; int nsync = pbi->sync_range; @@ -809,7 +807,6 @@ for (mb_row = 0; mb_row < pc->mb_rows; mb_row += (pbi->decoding_thread_count + 1)) { - int i; xd->current_bc = &pbi->mbc[mb_row%num_part];
diff --git a/vp8/encoder/encodeframe.c b/vp8/encoder/encodeframe.c index e27e2e6..2a89c59 100644 --- a/vp8/encoder/encodeframe.c +++ b/vp8/encoder/encodeframe.c
@@ -408,7 +408,6 @@ int sum; unsigned int a; unsigned int b; - unsigned int d; /* TODO: This could also be done over smaller areas (8x8), but that would * require extensive changes elsewhere, as lambda is assumed to be fixed * over an entire MB in most of the code. @@ -629,7 +628,6 @@ VP8_COMMON *const cm = & cpi->common; MACROBLOCKD *const xd = & x->e_mbd; - int i; TOKENEXTRA *tp = cpi->tok; int segment_counts[MAX_MB_SEGMENTS]; int totalrate;
diff --git a/vp8/encoder/encodemb.c b/vp8/encoder/encodemb.c index 464d4a2..efcea74 100644 --- a/vp8/encoder/encodemb.c +++ b/vp8/encoder/encodemb.c
@@ -273,7 +273,6 @@ int x; int sz; int next; - int path; int rdmult; int rddiv; int final_eob;
diff --git a/vp8/encoder/firstpass.c b/vp8/encoder/firstpass.c index 4d259c6..75502cc 100644 --- a/vp8/encoder/firstpass.c +++ b/vp8/encoder/firstpass.c
@@ -262,7 +262,6 @@ * macroblock. */ size_t stats_sz; - FIRSTPASS_STATS stats; stats_sz = sizeof(FIRSTPASS_STATS) + mb_count; stats_sz = (stats_sz + 7) & ~7; @@ -389,8 +388,6 @@ } void vp8_fpmm_reset_pos(VP8_COMP *cpi, unsigned char *target_pos) { - int Offset; - cpi->fp_motion_map_stats = target_pos; }
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index 2d9e801..4da1a56 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c
@@ -3792,8 +3792,6 @@ if (cpi->pass == 2 || (cm->current_video_frame > 150)) { int Q; - int i; - int bpm_target; //int tmp; vp8_clear_system_state(); @@ -4828,7 +4826,9 @@ #endif int vp8_receive_raw_frame(VP8_PTR ptr, unsigned int frame_flags, YV12_BUFFER_CONFIG *sd, INT64 time_stamp, INT64 end_time) { +#if HAVE_ARMV7 INT64 store_reg[8]; +#endif VP8_COMP *cpi = (VP8_COMP *) ptr; VP8_COMMON *cm = &cpi->common; struct vpx_usec_timer timer; @@ -4931,7 +4931,9 @@ } int vp8_get_compressed_data(VP8_PTR ptr, unsigned int *frame_flags, unsigned long *size, unsigned char *dest, INT64 *time_stamp, INT64 *time_end, int flush) { +#if HAVE_ARMV7 INT64 store_reg[8]; +#endif VP8_COMP *cpi = (VP8_COMP *) ptr; VP8_COMMON *cm = &cpi->common; struct vpx_usec_timer tsctimer;
diff --git a/vp8/encoder/quantize.c b/vp8/encoder/quantize.c index a672994..be9f26c 100644 --- a/vp8/encoder/quantize.c +++ b/vp8/encoder/quantize.c
@@ -70,7 +70,6 @@ void vp8_fast_quantize_b_c(BLOCK *b, BLOCKD *d) { int i, rc, eob; - int zbin; int x, y, z, sz; short *coeff_ptr = b->coeff; short *round_ptr = b->round;