]> granicus.if.org Git - libvpx/commitdiff
Adjust full-pixel search method in real-time mode
authorYunqing Wang <yunqingwang@google.com>
Tue, 8 Jul 2014 21:52:47 +0000 (14:52 -0700)
committerYunqing Wang <yunqingwang@google.com>
Wed, 9 Jul 2014 19:56:25 +0000 (12:56 -0700)
Use FAST_HEX in speed 5 and 6, which covers more points than
FAST_DIAMOND and improves motion search quality.

At speed 6, RTC set borg tests showed slight quality gain (psnr
gain: 0.143%, ssim gain: 0.226%). No noticeable encoding speed
change.

Change-Id: Ifa62875d9a52ee382ec494f271382bb77d8c67bf

vp9/encoder/vp9_speed_features.c

index 00f4d7da6d86f3e0e36861da4c055130e39e1203..f6241c38d4da3924985a7eaaf688c80f6984ac5f 100644 (file)
@@ -266,7 +266,6 @@ static void set_rt_speed_feature(VP9_COMP *cpi, SPEED_FEATURES *sf,
     sf->max_delta_qindex = (cm->frame_type == KEY_FRAME) ? 20 : 15;
     sf->partition_search_type = REFERENCE_PARTITION;
     sf->use_nonrd_pick_mode = 1;
-    sf->mv.search_method = FAST_DIAMOND;
     sf->allow_skip_recode = 0;
   }
 
@@ -288,6 +287,7 @@ static void set_rt_speed_feature(VP9_COMP *cpi, SPEED_FEATURES *sf,
     sf->mv.reduce_first_step_size = 1;
   }
   if (speed >= 7) {
+    sf->mv.search_method = FAST_DIAMOND;
     sf->mv.fullpel_search_step_param = 10;
     sf->lpf_pick = LPF_PICK_MINIMAL_LPF;
     sf->encode_breakout_thresh = (MIN(cm->width, cm->height) >= 720) ?