remove unneeded variables
authorPavol Rusnak <stick@gk2.sk>
Wed, 19 May 2010 19:15:32 +0000 (21:15 +0200)
committerPavol Rusnak <stick@gk2.sk>
Wed, 19 May 2010 19:15:32 +0000 (21:15 +0200)
vp8/encoder/bitstream.c
vp8/encoder/encodemb.c
vp8/encoder/encodemv.c
vp8/encoder/firstpass.c
vp8/encoder/onyx_if.c
vp8/encoder/ratectrl.c

index 31ad56a..e468f40 100644 (file)
@@ -1385,8 +1385,6 @@ void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest, unsigned long *size)
     // every keyframe send startcode, width, height, scale factor, clamp and color type
     if (oh.type == KEY_FRAME)
     {
-        int w, h, hs, vs;
-
         // Start / synch code
         cx_data[0] = 0x9D;
         cx_data[1] = 0x01;
index d825133..bb43d3d 100644 (file)
@@ -718,7 +718,6 @@ void vp8_optimize_y2b(MACROBLOCK *x, int i, int type, ENTROPY_CONTEXT *a, ENTROP
 
 void vp8_optimize_mb(MACROBLOCK *x, const VP8_ENCODER_RTCD *rtcd)
 {
-    int cost = 0;
     int b;
     TEMP_CONTEXT t, t2;
     int type = 0;
@@ -957,7 +956,6 @@ static void vp8_find_mb_skip_coef(MACROBLOCK *x)
 
 void vp8_optimize_mb_slow(MACROBLOCK *x, const VP8_ENCODER_RTCD *rtcd)
 {
-    int cost = 0;
     int b;
     TEMP_CONTEXT t, t2;
     int type = 0;
@@ -994,7 +992,6 @@ void vp8_optimize_mb_slow(MACROBLOCK *x, const VP8_ENCODER_RTCD *rtcd)
 
 void vp8_optimize_mby(MACROBLOCK *x, const VP8_ENCODER_RTCD *rtcd)
 {
-    int cost = 0;
     int b;
     TEMP_CONTEXT t;
     int type = 0;
@@ -1019,10 +1016,8 @@ void vp8_optimize_mby(MACROBLOCK *x, const VP8_ENCODER_RTCD *rtcd)
 
 void vp8_optimize_mbuv(MACROBLOCK *x, const VP8_ENCODER_RTCD *rtcd)
 {
-    int cost = 0;
     int b;
     TEMP_CONTEXT t, t2;
-    int type = 0;
 
     if (!x->e_mbd.above_context[UCONTEXT])
         return;
index f287edc..2320b41 100644 (file)
@@ -282,8 +282,6 @@ static void write_component_probs(
 
     //j=0
     {
-        int j = 0;
-
         const int c = events [mv_max];
 
         is_short_ct [0] += c;     // Short vector
index c519080..d5d4309 100644 (file)
@@ -175,7 +175,6 @@ static double calculate_modified_err(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame)
 double vp8_simple_weight(YV12_BUFFER_CONFIG *source)
 {
     int i, j;
-    int Total = 0;
 
     unsigned char *src = source->y_buffer;
     unsigned char value;
@@ -779,7 +778,6 @@ void vp8_first_pass(VP8_COMP *cpi)
     vp8_clear_system_state();  //__asm emms;
     {
         double weight = 0.0;
-        double weigth2 = 0.0;
 
         FIRSTPASS_STATS fps;
 
@@ -1193,7 +1191,6 @@ static void define_gf_group(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame)
     FIRSTPASS_STATS next_frame;
     FIRSTPASS_STATS *start_pos;
     int i;
-    int count = 0;
     int image_size = cpi->common.last_frame.y_width  * cpi->common.last_frame.y_height;
     double boost_score = 0.0;
     double old_boost_score = 0.0;
index 7662720..bc3550a 100644 (file)
@@ -281,7 +281,6 @@ static void segmentation_test_function(VP8_PTR ptr)
 
     unsigned char *seg_map;
     signed char feature_data[MB_LVL_MAX][MAX_MB_SEGMENTS];
-    int i, j;
 
     // Create a temporary map for segmentation data.
     CHECK_MEM_ERROR(seg_map, vpx_calloc(cpi->common.mb_rows * cpi->common.mb_cols, 1));
@@ -5402,7 +5401,7 @@ int vp8_calc_low_ss_err(YV12_BUFFER_CONFIG *source, YV12_BUFFER_CONFIG *dest, co
     {
         for (j = 0; j < source->y_width; j += 16)
         {
-            unsigned int sse, sse2, sum2;
+            unsigned int sse;
             VARIANCE_INVOKE(rtcd, mse16x16)(src + j, source->y_stride, dst + j, dest->y_stride, &sse);
 
             if (sse < 8096)
index 05040d3..ad54c5e 100644 (file)
@@ -1063,7 +1063,6 @@ void vp8_calc_pframe_target_size(VP8_COMP *cpi)
 
         if (cpi->common.refresh_golden_frame == TRUE)
         {
-            int isize_adjustment = 0;
 #if 0
 
             if (0)   // p_gw