From: Jingning Han Date: Wed, 11 Feb 2015 20:25:51 +0000 (-0800) Subject: Update partition rate cost in rtc speed 5 X-Git-Tag: v1.4.0~148^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a4e0b22650ef57c7787903f55f01634ce9bc434;p=libvpx Update partition rate cost in rtc speed 5 The block partition rate cost should be updated when recursive partition search is needed. Change-Id: I7bc5ad1fc2cbd3577dee7f7e8da111a2742bdeb9 --- diff --git a/vp9/encoder/vp9_rd.c b/vp9/encoder/vp9_rd.c index 20ca4ca1c..0b6d11eca 100644 --- a/vp9/encoder/vp9_rd.c +++ b/vp9/encoder/vp9_rd.c @@ -279,9 +279,11 @@ void vp9_initialize_rd_consts(VP9_COMP *cpi) { set_block_thresholds(cm, rd); - if (!cpi->sf.use_nonrd_pick_mode || cm->frame_type == KEY_FRAME) { + if (!cpi->sf.use_nonrd_pick_mode || cm->frame_type == KEY_FRAME) fill_token_costs(x->token_costs, cm->fc->coef_probs); + if (cpi->sf.partition_search_type != VAR_BASED_PARTITION || + cm->frame_type == KEY_FRAME) { for (i = 0; i < PARTITION_CONTEXTS; ++i) vp9_cost_tokens(cpi->partition_cost[i], get_partition_probs(cm, i), vp9_partition_tree);