Enable 2-pass coding block partition search

Obtain the most likely partition range from a first pass square
block base partition search. Use the constrained partition search
region for full rate-distortion optimization search in the second
pass.

Tested on pedestrian 1080p at 2000 kbps, it makes the encoding
speed 40% faster for speed 0 and 30% faster for speed 1. The
average coding performance loss is around 0.15%.

Change-Id: Ifc83d48e6413d1b887e68cd1962084e018a2258f
diff --git a/av1/encoder/block.h b/av1/encoder/block.h
index 28fa1a7..3751c19 100644
--- a/av1/encoder/block.h
+++ b/av1/encoder/block.h
@@ -169,8 +169,14 @@
   // to select transform kernel.
   int rd_model;
 
+  // Indicate if the encoder is running in the first pass partition search.
+  // In that case, apply certain speed features therein to reduce the overhead
+  // cost in the first pass search.
   int cb_partition_scan;
 
+  // Activate constrained coding block partition search range.
+  int use_cb_search_range;
+
   // Also save RD info on the TX size search level for square TX sizes.
   TX_SIZE_RD_RECORD
   tx_size_rd_record_8X8[(MAX_MIB_SIZE >> 1) * (MAX_MIB_SIZE >> 1)];