Commit 3e85f67f authored by Sarah Parker's avatar Sarah Parker

Make gm refinement step go all the way down to 1

-0.242% gain on cam_lowres

Change-Id: Ib9ba2f7dfc7d10b8066bd3f70eeafa7faac8a607
parent bfbf6a59
......@@ -4834,7 +4834,7 @@ static void encode_frame_internal(AV1_COMP *cpi) {
ref_buf[frame]->y_buffer, ref_buf[frame]->y_width,
ref_buf[frame]->y_height, ref_buf[frame]->y_stride,
cpi->source->y_buffer, cpi->source->y_width,
cpi->source->y_height, cpi->source->y_stride, 3,
cpi->source->y_height, cpi->source->y_stride, 5,
best_warp_error);
if (warp_error < best_warp_error) {
best_warp_error = warp_error;
......
......@@ -156,7 +156,7 @@ int64_t refine_integerized_param(WarpedMotionParams *wm,
d_width - 2 * border, d_height - 2 * border,
d_stride, 0, 0, 16, 16, best_frame_error);
best_error = AOMMIN(best_error, best_frame_error);
step = 1 << (n_refinements + 1);
step = 1 << (n_refinements - 1);
for (i = 0; i < n_refinements; i++, step >>= 1) {
for (p = 0; p < n_params; ++p) {
int step_dir = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment