Prune tx type search using previous stats

Record tx type usage and using the stats to prune following frame's
tx type search. Borg test result for speed 4:
         avg_psnr:   ovr_psnr:   ssim:
midres:   0.120        0.107    -0.034
Average speedup over whole midres set is 3.2%.
Will work on extending this feature to other speeds.

Change-Id: I864e1e4515c0f707aa48a3c0f9ed67b573603739
diff --git a/av1/encoder/encodetxb.c b/av1/encoder/encodetxb.c
index 20956a8..deb585a 100644
--- a/av1/encoder/encodetxb.c
+++ b/av1/encoder/encodetxb.c
@@ -2073,6 +2073,10 @@
   const TX_CLASS tx_class = tx_type_to_class[tx_type];
   const SCAN_ORDER *const scan_order = get_scan(tx_size, tx_type);
   const int16_t *const scan = scan_order->scan;
+
+  // record tx type usage
+  td->rd_counts.tx_type_used[get_frame_update_type(cpi)][tx_size][tx_type]++;
+
 #if CONFIG_ENTROPY_STATS
   av1_update_eob_context(cdf_idx, eob, tx_size, tx_class, plane_type, ec_ctx,
                          td->counts, allow_update_cdf);