]> granicus.if.org Git - libvpx/commitdiff
Enable ML based rect partition pruning for HBD
authorHui Su <huisu@google.com>
Thu, 11 Oct 2018 21:33:40 +0000 (14:33 -0700)
committerHui Su <huisu@google.com>
Fri, 12 Oct 2018 16:31:22 +0000 (09:31 -0700)
Tested on lowres_bd10(480p) and midres_bd10(720p), average coding
loss is 0.09%; average encoding speedup is 9%.

Only speed 0 is affected.

Change-Id: Ia8d48c1c6d1669745f0e956b172572a37e42f0c7

vp9/encoder/vp9_encodeframe.c

index 72dc137972e50d8769937875d4908839461e1016..805c258aab224186a7460f34207fc355a3fdb296 100644 (file)
@@ -4018,13 +4018,9 @@ static void rd_pick_partition(VP9_COMP *cpi, ThreadData *td,
   }
 
   {
-    int do_ml_rect_partition_pruning =
+    const int do_ml_rect_partition_pruning =
         !frame_is_intra_only(cm) && !force_horz_split && !force_vert_split &&
         (partition_horz_allowed || partition_vert_allowed) && bsize > BLOCK_8X8;
-#if CONFIG_VP9_HIGHBITDEPTH
-    if (xd->cur_buf->flags & YV12_FLAG_HIGHBITDEPTH)
-      do_ml_rect_partition_pruning = 0;
-#endif
     if (do_ml_rect_partition_pruning) {
       ml_prune_rect_partition(cpi, x, bsize, pc_tree, &partition_horz_allowed,
                               &partition_vert_allowed, best_rdc.rdcost, mi_row,