summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_speed_features.c
diff options
context:
space:
mode:
authorJerome Jiang <jianj@google.com>2018-12-04 18:37:02 -0800
committerJerome Jiang <jianj@google.com>2018-12-07 21:33:49 -0800
commit715c30f034fda8d005935308567ec0efb8f2ab2c (patch)
treefce565127c15469b7d829320d1f5ee47bf151205 /vp9/encoder/vp9_speed_features.c
parent5039d2d82b3beab14ca7c354e1a8fefe67bb671a (diff)
downloadlibvpx-715c30f034fda8d005935308567ec0efb8f2ab2c.tar
libvpx-715c30f034fda8d005935308567ec0efb8f2ab2c.tar.gz
libvpx-715c30f034fda8d005935308567ec0efb8f2ab2c.tar.bz2
libvpx-715c30f034fda8d005935308567ec0efb8f2ab2c.zip
vp9 screen: Update motion search offset when set to NSTEP.
Search method and step parameter might be changed in speed settings. In this case, we should update the search area offset due to the change of search method. Change-Id: I51dc584bbf35e998757da326355dd4b8a4d0093f
Diffstat (limited to 'vp9/encoder/vp9_speed_features.c')
-rw-r--r--vp9/encoder/vp9_speed_features.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/vp9/encoder/vp9_speed_features.c b/vp9/encoder/vp9_speed_features.c
index 9b6c69a73..4e01cc31f 100644
--- a/vp9/encoder/vp9_speed_features.c
+++ b/vp9/encoder/vp9_speed_features.c
@@ -797,18 +797,11 @@ static void set_rt_speed_feature_framesize_independent(
}
// Special case for screen content: increase motion search on base spatial
// layer when high motion is detected or previous SL0 frame was dropped.
- // Avoid speed 5 for as there is an issue with SVC datarate test.
- // TODO(marpan/jianj): Investigate issue at speed 5.
- if (cpi->oxcf.content == VP9E_CONTENT_SCREEN && cpi->oxcf.speed > 5 &&
+ if (cpi->oxcf.content == VP9E_CONTENT_SCREEN && cpi->oxcf.speed >= 5 &&
cpi->svc.spatial_layer_id == 0 &&
(cpi->rc.high_num_blocks_with_motion || cpi->svc.last_layer_dropped[0])) {
sf->mv.search_method = NSTEP;
sf->mv.fullpel_search_step_param = 2;
- // TODO(marpan/jianj): Investigate issue for lower setting of step_param
- // for spatial layers (namely on lower layers).
- if (cpi->use_svc && cm->width != cpi->oxcf.width &&
- cm->height != cpi->oxcf.height)
- sf->mv.fullpel_search_step_param = 4;
}
}