]> granicus.if.org Git - libvpx/commitdiff
[spatial svc]Don't skip motion search in first pass encoding
authorMinghai Shang <minghai@google.com>
Tue, 17 Jun 2014 21:58:25 +0000 (14:58 -0700)
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>
Tue, 24 Jun 2014 21:29:13 +0000 (14:29 -0700)
Change-Id: Ia6bcdaf5a5b80e68176f60d8d00e9b5cf3f9bfe3

vp9/encoder/vp9_firstpass.c

index f2e89b81911aae16c76187bc937227b26e96ec95..e1a20dd4d4629a7bee982e71791e8e78aa0af044 100644 (file)
@@ -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,