]> granicus.if.org Git - libvpx/commitdiff
vp9: Modify bsize condition for using model_rd_large.
authorMarco <marpan@google.com>
Fri, 27 Jan 2017 04:01:41 +0000 (20:01 -0800)
committerMarco <marpan@google.com>
Fri, 27 Jan 2017 06:45:27 +0000 (22:45 -0800)
In non-rd pickmode: small change in behavior for speed 6 and 7.
Remove condition on HIGHBITDEPTH flag.

Change-Id: I360a13fcc313d72612fe9b918162ef4bb278cdea

vp9/encoder/vp9_pickmode.c

index 326086a886e19cc019cccfab5ddf31b08085a0e4..e7374263cd842749f2c4c6768c64594d4c342812 100644 (file)
@@ -1793,15 +1793,9 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x, TileDataEnc *tile_data,
         pd->dst.stride = this_mode_pred->stride;
       }
     } else {
-// TODO(jackychen): the low-bitdepth condition causes a segfault in
-// high-bitdepth builds.
-// https://bugs.chromium.org/p/webm/issues/detail?id=1250
-#if CONFIG_VP9_HIGHBITDEPTH
-      const int large_block = bsize > BLOCK_32X32;
-#else
-      const int large_block =
-          x->sb_is_skin ? bsize > BLOCK_32X32 : bsize >= BLOCK_32X32;
-#endif
+      const int large_block = (x->sb_is_skin || cpi->oxcf.speed < 8)
+                                  ? bsize > BLOCK_32X32
+                                  : bsize >= BLOCK_32X32;
       mi->interp_filter = (filter_ref == SWITCHABLE) ? EIGHTTAP : filter_ref;
       vp9_build_inter_predictors_sby(xd, mi_row, mi_col, bsize);