Turn CONFIG_SKIP_SGR on by default
This was provisionally adopted 02/23/2018
Change-Id: I6b7afad1fd0948e6881a26d93cf4b0095e1ca50f
diff --git a/av1/common/restoration.c b/av1/common/restoration.c
index 3e6409a..9e60cef 100644
--- a/av1/common/restoration.c
+++ b/av1/common/restoration.c
@@ -586,6 +586,8 @@
static void boxsum1(int32_t *src, int width, int height, int src_stride,
int sqr, int32_t *dst, int dst_stride) {
int i, j, a, b, c;
+ assert(width > 2 * SGRPROJ_BORDER_HORZ);
+ assert(height > 2 * SGRPROJ_BORDER_VERT);
// Vertical sum over 3-pixel regions, from src into dst.
if (!sqr) {
@@ -651,6 +653,8 @@
static void boxsum2(int32_t *src, int width, int height, int src_stride,
int sqr, int32_t *dst, int dst_stride) {
int i, j, a, b, c, d, e;
+ assert(width > 2 * SGRPROJ_BORDER_HORZ);
+ assert(height > 2 * SGRPROJ_BORDER_VERT);
// Vertical sum over 5-pixel regions, from src into dst.
if (!sqr) {
diff --git a/build/cmake/aom_config_defaults.cmake b/build/cmake/aom_config_defaults.cmake
index caca916..15e3c46 100644
--- a/build/cmake/aom_config_defaults.cmake
+++ b/build/cmake/aom_config_defaults.cmake
@@ -141,7 +141,7 @@
set(CONFIG_SEGMENT_GLOBALMV 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_SEGMENT_PRED_LAST 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_SHORT_FILTER 1 CACHE NUMBER "AV1 experiment flag.")
-set(CONFIG_SKIP_SGR 0 CACHE NUMBER "AV1 experiment flag.")
+set(CONFIG_SKIP_SGR 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_SPATIAL_SEGMENTATION 1 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_TILE_INFO_FIRST 0 CACHE NUMBER "AV1 experiment flag.")
set(CONFIG_TIMING_INFO_IN_SEQ_HEADERS 0 CACHE NUMBER "AV1 experiment flag.")
diff --git a/test/decode_to_md5.sh b/test/decode_to_md5.sh
index 8ef1f3c..3d15417 100755
--- a/test/decode_to_md5.sh
+++ b/test/decode_to_md5.sh
@@ -57,7 +57,7 @@
decode_to_md5_av1() {
# expected MD5 sum for the last frame.
- local expected_md5="3de5aa39c751e7ba7122c5df16063cee"
+ local expected_md5="887535ba1b01d6f7593ce7f4e9d86e12"
local file="${AV1_IVF_FILE}"
# TODO(urvang): Check in the encoded file (like libvpx does) to avoid