intrabc: Call setup intrabc scale factors once per frame
Reduces av1_setup_scale_factors_for_frame profile from 1.85% to noise.
Change-Id: I6a7ad892824aac537992eb9109210b0a839136e9
diff --git a/av1/common/blockd.h b/av1/common/blockd.h
index 0acab96..1d88fc6 100644
--- a/av1/common/blockd.h
+++ b/av1/common/blockd.h
@@ -606,6 +606,11 @@
/* pointer to current frame */
const YV12_BUFFER_CONFIG *cur_buf;
+#if CONFIG_INTRABC
+ /* Scale of the current frame with respect to itself */
+ struct scale_factors sf_identity;
+#endif
+
ENTROPY_CONTEXT *above_context[MAX_MB_PLANE];
ENTROPY_CONTEXT left_context[MAX_MB_PLANE][2 * MAX_MIB_SIZE];