From 82fb2d30cdf3990e45611af4e9ccd4f460f9314c Mon Sep 17 00:00:00 2001 From: Ram Mohan Date: Mon, 27 Nov 2017 17:56:29 +0530 Subject: [PATCH] avcenc: Allow intra mode evaluation during fast skip For static content, skip and intra modes often compete with each other neck and neck during mode evaluation. Upon fast skip detection, instead of skipping all further mode analysis, disable motion search and allow intra analysis. This change applies to all presets except FASTEST. Average bdrate improves by 1%. Test: Tested on clips of different resolutions. Change-Id: Ia0aabca5c1dcad03359bebaf071b7be27898e735 --- encoder/ih264e_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/ih264e_process.c b/encoder/ih264e_process.c index 5fb0b88..644a5a2 100644 --- a/encoder/ih264e_process.c +++ b/encoder/ih264e_process.c @@ -2098,7 +2098,7 @@ WORD32 ih264e_process(process_ctxt_t *ps_proc) } /* If we already have the minimum sad, there is no point in searching for sad again */ - if (ps_proc->u4_min_sad_reached == 0) + if (ps_proc->u4_min_sad_reached == 0 || ps_codec->s_cfg.u4_enc_speed_preset != IVE_FASTEST) { /* intra gating in inter slices */ /* No need of gating if we want to force intra, we need to find the threshold only if inter is enabled by AIR*/