From: Minghai Shang Date: Tue, 17 Jun 2014 21:58:25 +0000 (-0700) Subject: [spatial svc]Don't skip motion search in first pass encoding X-Git-Tag: v1.4.0~1339^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6bebe65118b43dde3a170c95e35e047450351368;p=libvpx [spatial svc]Don't skip motion search in first pass encoding Change-Id: Ia6bcdaf5a5b80e68176f60d8d00e9b5cf3f9bfe3 --- diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c index f2e89b819..e1a20dd4d 100644 --- a/vp9/encoder/vp9_firstpass.c +++ b/vp9/encoder/vp9_firstpass.c @@ -607,7 +607,8 @@ void vp9_first_pass(VP9_COMP *cpi) { &unscaled_last_source_buf_2d); // TODO(pengchong): Replace the hard-coded threshold - if (raw_motion_error > 25) { + if (raw_motion_error > 25 || + (cpi->use_svc && cpi->svc.number_temporal_layers == 1)) { // Test last reference frame using the previous best mv as the // starting point (best reference) for the search. first_pass_motion_search(cpi, x, &best_ref_mv.as_mv, &mv.as_mv,