Made temporal filter default to use centered mode
authorAdrian Grange <agrange@google.com>
Fri, 1 Oct 2010 09:14:01 +0000 (10:14 +0100)
committerAdrian Grange <agrange@google.com>
Fri, 1 Oct 2010 09:14:01 +0000 (10:14 +0100)
If temporal filtering is enabled but a filter type is not specified
centered filter mode is used by default.

Change-Id: I87306f267c1390074c806c506a69b4ba914d92a2

vp8/encoder/onyx_if.c

index f09777a..46c283d 100644 (file)
@@ -3916,6 +3916,7 @@ static void vp8cx_temp_filter_c
         break;
 
     case 3:
+    default:
         /////////////////////////////////////////
         // Center Blur
         frames_to_blur_forward = num_frames_forward;
@@ -3936,29 +3937,6 @@ static void vp8cx_temp_filter_c
 
         frames_to_blur = frames_to_blur_backward + frames_to_blur_forward + 1;
         break;
-
-    default:
-        /////////////////////////////////////////
-        // At most 4 frames forward Blur
-        frames_to_blur_forward = 4;
-        frames_to_blur_backward = num_frames_backward;
-
-        if (max_frames > 5)
-        {
-            if ((frames_to_blur_backward + frames_to_blur_forward) >= max_frames)
-            {
-                frames_to_blur_backward
-                    = max_frames - frames_to_blur_forward - 1;
-            }
-        }
-        else
-        {
-            frames_to_blur_forward = max_frames - 1;
-            frames_to_blur_backward = 0;
-        }
-
-        frames_to_blur = frames_to_blur_backward + frames_to_blur_forward + 1;
-        break;
     }
 
     start_frame = (cpi->last_alt_ref_sei