From bb82c4997fc8313deaedaea37bdd32be9f271d88 Mon Sep 17 00:00:00 2001 From: Hui Su Date: Thu, 11 Oct 2018 14:33:40 -0700 Subject: [PATCH] Enable ML based rect partition pruning for HBD 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 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c index 72dc13797..805c258aa 100644 --- a/vp9/encoder/vp9_encodeframe.c +++ b/vp9/encoder/vp9_encodeframe.c @@ -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, -- 2.40.0