Overwrite frame level skip mode flag if no usage
Add a block level usage flag for skip mode. If no block has chosen the
skip mode, the frame level flag for skip mode will be set off.
This patch also includes a small code cleanup, including the check on
whether the best RD mode is aligned with skip mode, if yes, the best
RD mode will be replaced by skip mode.
This patch slightly improves the coding performance of ext-skip.
Change-Id: If06092d5e32f15e63dcb5f35d32e68bc0f827c2b
diff --git a/av1/encoder/encoder.h b/av1/encoder/encoder.h
index b0ebd01..e1ddd73 100644
--- a/av1/encoder/encoder.h
+++ b/av1/encoder/encoder.h
@@ -333,6 +333,9 @@
int global_motion_used[TOTAL_REFS_PER_FRAME];
int single_ref_used_flag;
int compound_ref_used_flag;
+#if CONFIG_EXT_SKIP
+ int skip_mode_used_flag;
+#endif // CONFIG_EXT_SKIP
} RD_COUNTS;
typedef struct ThreadData {