From d6f4b71d9f895dd77624022cbe0fbbc40dbdf03f Mon Sep 17 00:00:00 2001 From: Yaowu Xu <yaowu@google.com> Date: Wed, 4 Apr 2012 07:24:10 -0700 Subject: [PATCH] Adjust the key frame placement condition The commit removed a limit on key frame detection, which caused a big drop in all metric measurements for standard HD clip such as _mobcal. This single change helps two standard HD clips by a huge amount, which help the overall std-hd set by 2.4% (glb psnr), 0.9% (avg_psnr), 2.1% (vpxssim). In the result page: http://pafr9.prod.google.com:26163/?/cns/rc-d/home/on2-prod/sunkaras/borg-test/yaowu 2012_04_02_1649_yaowu_bugfix_std-hd 2012_04_03_1452_yaowu_hump_std-hd represent the encoding test results and std-hd set prior and after this commit respectively. Change-Id: Ie4313e317c737ea0e699c3a7919c1376744baa1a --- vp8/encoder/firstpass.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vp8/encoder/firstpass.c b/vp8/encoder/firstpass.c index 1e8594d7b4..5212007d8b 100644 --- a/vp8/encoder/firstpass.c +++ b/vp8/encoder/firstpass.c @@ -2648,8 +2648,7 @@ static void find_next_key_frame(VP8_COMP *cpi, FIRSTPASS_STATS *this_frame) && lookup_next_frame_stats(cpi, &next_frame) != EOF) { // Normal scene cut check - if ( ( i >= MIN_GF_INTERVAL ) && - test_candidate_kf(cpi, &last_frame, this_frame, &next_frame) ) + if ( test_candidate_kf(cpi, &last_frame, this_frame, &next_frame) ) { break; } -- GitLab