Update search_state with best_rd_so_far
In av1_rd_pick_intermode_sb, the best_rd was initialized
with INT64_MAX before final transform search. Instead,
the search_state best_rd is updated with best_rd_so_far.
Encode Time
Cpu-used Reduction(%)
1 0.71
2 1.30
3 0.49
4 1.38
STATS_CHANGED
Change-Id: I377bffba046e039d55ccdc7a15629d801c20a027
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index 000f5c8..3bb5c58 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -12846,7 +12846,7 @@
#endif
if (do_tx_search_global != 1) {
inter_modes_info_sort(inter_modes_info, inter_modes_info->rd_idx_pair_arr);
- search_state.best_rd = INT64_MAX;
+ search_state.best_rd = best_rd_so_far;
int64_t top_est_rd =
inter_modes_info->num > 0