]> granicus.if.org Git - libvpx/commit
Use normal rate_correction_factor for gf in CBR mode
authorYaowu Xu <yaowu@google.com>
Mon, 10 Nov 2014 19:46:58 +0000 (11:46 -0800)
committerYaowu Xu <yaowu@google.com>
Tue, 11 Nov 2014 00:55:13 +0000 (16:55 -0800)
commitf2b978e895afb8102a5f16b760450935914c08b0
tree685fcf2fcee39be8dce11f353e10a14c21cefaf2
parent130c6d745535df6cf73f244edeae96a730d540c3
Use normal rate_correction_factor for gf in CBR mode

I0c5f010 changed to allow update golden reference buffer in CBR mode,
this commit changes the use of rate_correction_factor for those frames
to be aligned with the new usage. This commit attempts to solve two
issues:

a. Initialization of rate correction factor for Golden Frame
Prior to this patch, even the regular inter frame has been update
the rate correction factor based on content and encoding results,
the first golden frame would still use the ininitialized value
that can be way off.

b. Allowing rate correction factor update to be slightly faster
Prior to this patch, when the rate correction factor is off, the
update to the factor is too slow, the factor could not get close
to a semi-correct value even after many frames.

The commit helps all clips in psnr/ssim metric, but especially to
a few clip in RTC set that rate correction was way off. For example
thaloundeskmtgvga gained about .5dB for both overall/average psnr.

Change-Id: I0be5c41691be57891d824505348b64be87fa3545
vp9/encoder/vp9_ratectrl.c