Add counter to count #tx_searches during encoding
Add counter to count # tx searches during encoding to help with
encoder optimation and speed-ups.
The counter is added in the CONFIG_SPEED_STATS configuration
macro which is off by default. Other similar counters may be added
within this flag subsequently.
Change-Id: I09ecd8b20045c66fe1a850cebb7b703d44ece69e
diff --git a/av1/encoder/ethread.c b/av1/encoder/ethread.c
index 943567f..ceb76c1 100644
--- a/av1/encoder/ethread.c
+++ b/av1/encoder/ethread.c
@@ -517,6 +517,9 @@
av1_accumulate_frame_counts(&cpi->counts, thread_data->td->counts);
accumulate_rd_opt(&cpi->td, thread_data->td);
cpi->td.mb.txb_split_count += thread_data->td->mb.txb_split_count;
+#if CONFIG_SPEED_STATS
+ cpi->td.mb.tx_search_count += thread_data->td->mb.tx_search_count;
+#endif // CONFIG_SPEED_STATS
}
}
}