AV1 RT: Remove unnecessary initializations
This gives ~1% perf improvements without quality impact
Change-Id: I1e991326a8c8dc91cfad96b11e95f5b0d385df02
diff --git a/av1/encoder/encodeframe.c b/av1/encoder/encodeframe.c
index d3fd239..aac6ec2 100644
--- a/av1/encoder/encodeframe.c
+++ b/av1/encoder/encodeframe.c
@@ -3913,7 +3913,8 @@
&dummy_rate, &dummy_dist, 1, pc_root);
} else if (sf->partition_search_type == VAR_BASED_PARTITION &&
use_nonrd_mode) {
- set_offsets(cpi, tile_info, x, mi_row, mi_col, sb_size);
+ set_offsets_without_segment_id(cpi, tile_info, x, mi_row, mi_col,
+ sb_size);
av1_choose_var_based_partitioning(cpi, tile_info, x, mi_row, mi_col);
td->mb.cb_offset = 0;
nonrd_use_partition(cpi, td, tile_data, mi, tp, mi_row, mi_col, sb_size,
@@ -4810,7 +4811,7 @@
#if CONFIG_COLLECT_COMPONENT_TIMING
start_timing(cpi, av1_setup_motion_field_time);
#endif
- av1_setup_motion_field(cm);
+ if (cm->allow_ref_frame_mvs) av1_setup_motion_field(cm);
#if CONFIG_COLLECT_COMPONENT_TIMING
end_timing(cpi, av1_setup_motion_field_time);
#endif