max-tile: Enable max-tile by default
Also fix one issue with max-tile+LR when the top left tile is not the largest tile.
Change-Id: I721254f63f1a2c6e2c199e27ebaaaebe57234d0f
diff --git a/av1/common/restoration.c b/av1/common/restoration.c
index fb2ea99..a2ac0d1 100644
--- a/av1/common/restoration.c
+++ b/av1/common/restoration.c
@@ -100,10 +100,8 @@
#endif // CONFIG_MAX_TILE
const AV1PixelRect tile_rect = get_ext_tile_rect(&tile_info, cm, is_uv);
- assert(tile_rect.left == 0 && tile_rect.top == 0);
-
- const int max_tile_w = tile_rect.right;
- const int max_tile_h = tile_rect.bottom;
+ const int max_tile_w = tile_rect.right - tile_rect.left;
+ const int max_tile_h = tile_rect.bottom - tile_rect.top;
// To calculate hpertile and vpertile (horizontal and vertical units per
// tile), we basically want to divide the largest tile width or height by the
diff --git a/build/cmake/aom_config_defaults.cmake b/build/cmake/aom_config_defaults.cmake
index 167c203..8d73ece 100644
--- a/build/cmake/aom_config_defaults.cmake
+++ b/build/cmake/aom_config_defaults.cmake
@@ -161,7 +161,7 @@
set(CONFIG_LV_MAP 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_LV_MAP_MULTI 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_MASKED_TX 0 CACHE NUMBER "AV1 experiment flag.")
-set(CONFIG_MAX_TILE 0 CACHE NUMBER "AV1 experiment flag.")
+set(CONFIG_MAX_TILE 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_MFMV 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_MONO_VIDEO 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_MV_COMPRESS 1 CACHE NUMBER "AV1 experiment flag.")
diff --git a/configure b/configure
index 2c119c4..c8e1558 100755
--- a/configure
+++ b/configure
@@ -513,6 +513,7 @@
soft_enable loopfilter_level
soft_enable cfl
soft_enable deblock_13tap
+ soft_enable max_tile
soft_enable frame_marker
soft_enable kf_ctx
soft_enable striped_loop_restoration