Made temporal filter default to use centered mode
If temporal filtering is enabled but a filter type is not specified centered filter mode is used by default. Change-Id: I87306f267c1390074c806c506a69b4ba914d92a2
This commit is contained in:
parent
0faa8a0861
commit
999bc00301
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user