]> granicus.if.org Git - libvpx/commitdiff
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 31ad56a2afa2598b2681dc3525f617ddc09dd9f9..e468f40f0cddfc92334f2f21dcc64646e45e74c9 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 d825133188487f1a04ab4175c8b2bfae7213eefd..bb43d3d5bfd7fe40867f668f15f1f790c4a4368c 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 f287edc1826345118dfabe15430703965dd62dc0..2320b413a69403610d67fab0eaa523278969643c 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 c519080b2841e3505a3fa85b416767ee5b594b50..d5d430906b25f31600fa58629b2e481354e9b85d 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 7662720c3283575dbd7780f9c77ee7129a79f206..bc3550a88dd091f11f5df9f6b1cbd9e7f0577f32 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 05040d3105f91c52bae0d41763da2c6e294fad30..ad54c5ee0fad5774a51c3e88f1f1556381ff92b1 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