AV1 RT: Remove unnecessary call in nonrd_use_partition
Change-Id: I6cde4f4200a877c11b3f8db84328427eede1f556
diff --git a/av1/encoder/encodeframe.c b/av1/encoder/encodeframe.c
index 907dc3f..a685152 100644
--- a/av1/encoder/encodeframe.c
+++ b/av1/encoder/encodeframe.c
@@ -2239,15 +2239,11 @@
restore_context(x, &x_ctx, mi_row, mi_col, bsize, 3);
if (none_rdc.rdcost < split_rdc.rdcost) {
- set_offsets_without_segment_id(cpi, &tile_data->tile_info, x, mi_row,
- mi_col, bsize);
mib[0]->sb_type = bsize;
pc_tree->partitioning = PARTITION_NONE;
encode_b(cpi, tile_data, td, tp, mi_row, mi_col, 0, bsize, partition,
&pc_tree->none, NULL);
} else {
- set_offsets_without_segment_id(cpi, &tile_data->tile_info, x, mi_row,
- mi_col, bsize);
mib[0]->sb_type = subsize;
pc_tree->partitioning = PARTITION_SPLIT;
for (int i = 0; i < 4; i++) {
@@ -2256,9 +2252,6 @@
if (mi_row + y_idx >= cm->mi_rows || mi_col + x_idx >= cm->mi_cols)
continue;
- set_offsets_without_segment_id(cpi, &tile_data->tile_info, x,
- mi_row + y_idx, mi_col + x_idx,
- subsize);
encode_b(cpi, tile_data, td, tp, mi_row + y_idx, mi_col + x_idx, 0,
subsize, PARTITION_NONE, &pc_tree->split[i]->none, NULL);
}
@@ -2348,15 +2341,11 @@
split_rdc.rate += x->partition_cost[pl][PARTITION_SPLIT];
split_rdc.rdcost = RDCOST(x->rdmult, split_rdc.rate, split_rdc.dist);
if (none_rdc.rdcost < split_rdc.rdcost) {
- set_offsets_without_segment_id(cpi, &tile_data->tile_info, x, mi_row,
- mi_col, bsize);
mib[0]->sb_type = bsize;
pc_tree->partitioning = PARTITION_NONE;
encode_b(cpi, tile_data, td, tp, mi_row, mi_col, 0, bsize, partition,
&pc_tree->none, NULL);
} else {
- set_offsets_without_segment_id(cpi, &tile_data->tile_info, x, mi_row,
- mi_col, bsize);
mib[0]->sb_type = subsize;
pc_tree->partitioning = PARTITION_SPLIT;
for (int i = 0; i < 4; i++) {
@@ -2366,9 +2355,6 @@
(mi_col + x_idx >= cm->mi_cols))
continue;
- set_offsets_without_segment_id(cpi, &tile_data->tile_info, x,
- mi_row + y_idx, mi_col + x_idx,
- subsize);
encode_b(cpi, tile_data, td, tp, mi_row + y_idx, mi_col + x_idx, 0,
subsize, PARTITION_NONE, &pc_tree->split[i]->none, NULL);
}