History

Merge "vp9-rtc: Fix to speed 4 for real-time mode"

Marco Paniconi committed 7 years ago

Commit 4f69df92 parents 8fa9281 a7515c02 files · +15 −15Browse files

Unified · Split

2 files
  1. vp9/encoder/vp9_aq_cyclicrefresh.c +2 −1
  2. vp9/encoder/vp9_speed_features.c +13 −14
vp9/encoder/vp9_aq_cyclicrefresh.c+2−1
@@ -187,7 +187,8 @@ void vp9_cyclic_refresh_update_segment(VP9_COMP *const cpi, MODE_INFO *const mi, · 186 unmodified lines
187187
188188 // If this block is labeled for refresh, check if we should reset the
189189 // segment_id.
190− if (cyclic_refresh_segment_id_boosted(mi->segment_id)) {
190+ if (cpi->sf.use_nonrd_pick_mode &&
191+ cyclic_refresh_segment_id_boosted(mi->segment_id)) {
191192 mi->segment_id = refresh_this_block;
192193 // Reset segment_id if it will be skipped.
193194 if (skip) mi->segment_id = CR_SEGMENT_ID_BASE;
vp9/encoder/vp9_speed_features.c+13−14
@@ -536,13 +536,6 @@ static void set_rt_speed_feature_framesize_independent( · 535 unmodified lines
536536 int i;
537537 if (cpi->oxcf.rc_mode == VPX_VBR && cpi->oxcf.lag_in_frames > 0)
538538 sf->use_altref_onepass = 1;
539− sf->last_partitioning_redo_frequency = 4;
540− sf->adaptive_rd_thresh = 5;
541− sf->use_fast_coef_costing = 0;
542− sf->auto_min_max_partition_size = STRICT_NEIGHBORING_MIN_MAX;
543− sf->adjust_partitioning_from_last_frame =
544− cm->last_frame_type != cm->frame_type ||
545− (0 == (frames_since_key + 1) % sf->last_partitioning_redo_frequency);
546539 sf->mv.subpel_force_stop = QUARTER_PEL;
547540 for (i = 0; i < TX_SIZES; i++) {
548541 sf->intra_y_mode_mask[i] = INTRA_DC_H_V;
@@ -551,13 +544,19 @@ static void set_rt_speed_feature_framesize_independent( · 2 unmodified lines
551544 sf->intra_y_mode_mask[TX_32X32] = INTRA_DC;
552545 sf->frame_parameter_update = 0;
553546 sf->mv.search_method = FAST_HEX;
554−
555− sf->inter_mode_mask[BLOCK_32X32] = INTER_NEAREST_NEAR_NEW;
556− sf->inter_mode_mask[BLOCK_32X64] = INTER_NEAREST;
557− sf->inter_mode_mask[BLOCK_64X32] = INTER_NEAREST;
558− sf->inter_mode_mask[BLOCK_64X64] = INTER_NEAREST;
547+ sf->allow_skip_recode = 0;
559548 sf->max_intra_bsize = BLOCK_32X32;
560− sf->allow_skip_recode = 1;
549+ sf->use_fast_coef_costing = 0;
550+ sf->use_quant_fp = !is_keyframe;
551+ sf->inter_mode_mask[BLOCK_32X32] = INTER_NEAREST_NEW_ZERO;
552+ sf->inter_mode_mask[BLOCK_32X64] = INTER_NEAREST_NEW_ZERO;
553+ sf->inter_mode_mask[BLOCK_64X32] = INTER_NEAREST_NEW_ZERO;
554+ sf->inter_mode_mask[BLOCK_64X64] = INTER_NEAREST_NEW_ZERO;
555+ sf->adaptive_rd_thresh = 2;
556+ sf->use_fast_coef_updates = is_keyframe ? TWO_LOOP : ONE_LOOP_REDUCED;
557+ sf->mode_search_skip_flags = FLAG_SKIP_INTRA_DIRMISMATCH;
558+ sf->tx_size_search_method = is_keyframe ? USE_LARGESTALL : USE_TX_8X8;
559+ sf->partition_search_type = VAR_BASED_PARTITION;
561560 }
562561
563562 if (speed >= 5) {
@@ -819,7 +818,7 @@ static void set_rt_speed_feature_framesize_independent( · 255 unmodified lines
819818 }
820819 // TODO(marpan): There is regression for aq-mode=3 speed <= 4, force it
821820 // off for now.
822− if (speed <= 4 && cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ)
821+ if (speed <= 3 && cpi->oxcf.aq_mode == CYCLIC_REFRESH_AQ)
823822 cpi->oxcf.aq_mode = 0;
824823 }
825824

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