History

Revert "vp9-rtc: Some speedups to speed 5 real-time mode"

This reverts commit 62af22b5e57ed1e382ef0994183824a03f698797. Reason for revert: causes crash in chromium test

Marco Paniconi committed 6 years ago

Commit 547b2bb1 parent 62af22b2 files · +4 −8Browse files

Unified · Split

2 files
  1. vp9/encoder/vp9_encodeframe.c +2 −7
  2. vp9/encoder/vp9_speed_features.c +2 −1
vp9/encoder/vp9_encodeframe.c+2−7
@@ -5086,8 +5086,8 @@ static void nonrd_pick_partition(VP9_COMP *cpi, ThreadData *td, · 5085 unmodified lines
50865086
50875087 (void)*tp_orig;
50885088
5089− // Avoid checking for rectangular partitions for speed >= 5.
5090− if (cpi->oxcf.speed >= 5) do_rect = 0;
5089+ // Avoid checking for rectangular partitions for speed >= 6.
5090+ if (cpi->oxcf.speed >= 6) do_rect = 0;
50915091
50925092 assert(num_8x8_blocks_wide_lookup[bsize] ==
50935093 num_8x8_blocks_high_lookup[bsize]);
@@ -5345,11 +5345,6 @@ static void nonrd_select_partition(VP9_COMP *cpi, ThreadData *td, · 251 unmodified lines
53455345 subsize >= subsize_ref) {
53465346 x->max_partition_size = BLOCK_32X32;
53475347 x->min_partition_size = BLOCK_8X8;
5348− if (subsize_ref == BLOCK_16X16 && !xd->mi[0]->segment_id &&
5349− x->content_state_sb != kVeryHighSad &&
5350− x->content_state_sb != kLowVarHighSumdiff &&
5351− x->content_state_sb != kHighSadHighSumdiff)
5352− x->min_partition_size = BLOCK_16X16;
53535348 nonrd_pick_partition(cpi, td, tile_data, tp, mi_row, mi_col, bsize, rd_cost,
53545349 0, INT64_MAX, pc_tree);
53555350 } else if (bsize == BLOCK_16X16 && partition != PARTITION_NONE) {
vp9/encoder/vp9_speed_features.c+2−1
@@ -634,7 +634,6 @@ static void set_rt_speed_feature_framesize_independent( · 633 unmodified lines
634634 sf->use_compound_nonrd_pickmode = 1;
635635 }
636636 if (cm->width * cm->height > 1280 * 720) sf->cb_pred_filter_search = 1;
637− if (!cpi->external_resize) sf->use_source_sad = 1;
638637 }
639638
640639 if (speed >= 6) {
@@ -647,6 +646,8 @@ static void set_rt_speed_feature_framesize_independent( · 6 unmodified lines
647646 sf->mv.reduce_first_step_size = 1;
648647 sf->skip_encode_sb = 0;
649648
649+ if (!cpi->external_resize) sf->use_source_sad = 1;
650+
650651 if (sf->use_source_sad) {
651652 sf->adapt_partition_source_sad = 1;
652653 sf->adapt_partition_thresh =

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t