Commit 865a6f27 authored by Debargha Mukherjee's avatar Debargha Mukherjee
Browse files

Fix a bug in loop-restoration

Affected the switchable decision mechanism and
effectively turned off block level switching, even
though frame level switching was fine.

Change-Id: Id0b19f91ecfae63964e73f1ba7bfeec70179da35
parent cc6bdab7
......@@ -1072,7 +1072,8 @@ static double search_switchable_restoration(
double best_cost = tile_cost[RESTORE_NONE][tile_idx];
rsi->restoration_type[tile_idx] = RESTORE_NONE;
for (r = 1; r < RESTORE_SWITCHABLE_TYPES; r++) {
if (r != force_restore_type) continue;
if (force_restore_type != 0)
if (r != force_restore_type) continue;
if (tile_cost[r][tile_idx] < best_cost) {
rsi->restoration_type[tile_idx] = r;
best_cost = tile_cost[r][tile_idx];
Supports Markdown
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