summaryrefslogtreecommitdiff
path: root/vp8
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2012-04-04 07:24:10 -0700
committerPaul Wilkins <paulwilkins@google.com>2012-04-12 11:46:24 +0100
commitd6f4b71d9f895dd77624022cbe0fbbc40dbdf03f (patch)
tree7500f87c02eafee336fca1f5555d3983b2e746bf /vp8
parentd56acae6601dba8e867c06df24b453c3645e195a (diff)
downloadlibvpx-d6f4b71d9f895dd77624022cbe0fbbc40dbdf03f.tar
libvpx-d6f4b71d9f895dd77624022cbe0fbbc40dbdf03f.tar.gz
libvpx-d6f4b71d9f895dd77624022cbe0fbbc40dbdf03f.tar.bz2
libvpx-d6f4b71d9f895dd77624022cbe0fbbc40dbdf03f.zip
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
Diffstat (limited to 'vp8')
-rw-r--r--vp8/encoder/firstpass.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vp8/encoder/firstpass.c b/vp8/encoder/firstpass.c
index 1e8594d7b..5212007d8 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;
}