Add a control to set the ANS window size

Change-Id: I3d64ec4bbc72143b30a094ece7a6c711d6b479cd
diff --git a/aom/aomcx.h b/aom/aomcx.h
index 29d0134..ed74dcd 100644
--- a/aom/aomcx.h
+++ b/aom/aomcx.h
@@ -471,6 +471,18 @@
    * Experiment: TILE_GROUPS
    */
   AV1E_SET_MTU,
+
+  /*!\brief Codec control function to set the number of symbols in an ANS data
+   * window.
+   *
+   * The number of ANS symbols (both boolean and non-booleans alphabets) in an
+   * ANS data window is set to 1 << value.
+   *
+   * \note Valid range: [8, 23]
+   *
+   * Experiment: ANS
+   */
+  AV1E_SET_ANS_WINDOW_SIZE_LOG2,
 };
 
 /*!\brief aom 1-D scaling mode
@@ -664,6 +676,9 @@
 
 AOM_CTRL_USE_TYPE(AV1E_GET_LEVEL, int *)
 #define AOM_CTRL_AV1E_GET_LEVEL
+
+AOM_CTRL_USE_TYPE(AV1E_SET_ANS_WINDOW_SIZE_LOG2, unsigned int)
+#define AOM_CTRL_AV1E_SET_ANS_WINDOW_SIZE_LOG2
 /*!\endcond */
 /*! @} - end defgroup aom_encoder */
 #ifdef __cplusplus