ref: b71542dc13ea959ed2b42dab6ee9dfbb3444e274
parent: 5e3439bbf7872a03bd3c6d7c2ceca98ade090e64
author: Marco Paniconi <marpan@google.com>
date: Tue Jun 4 06:50:43 EDT 2013
Condition the zbin_boost increase to 1 layer. Condition the existing zbin boost logic for gf/altf mode to temporal layers==1, since gf/altf reference frames are used in temporal layers as reference frames. Change-Id: I618bb20730e5f193e078215d06f54997c363dd7b
--- a/vp8/encoder/encodeframe.c
+++ b/vp8/encoder/encodeframe.c
@@ -1299,8 +1299,9 @@
}
{
- /* Experimental code. Special case for gf and arf zeromv modes.
- * Increase zbin size to supress noise
+ /* Experimental code.
+ * Special case for gf and arf zeromv modes, for 1 temporal layer.
+ * Increase zbin size to supress noise.
*/
x->zbin_mode_boost = 0;
if (x->zbin_mode_boost_enabled)
@@ -1309,7 +1310,8 @@
{
if (xd->mode_info_context->mbmi.mode == ZEROMV)
{
- if (xd->mode_info_context->mbmi.ref_frame != LAST_FRAME)
+ if (xd->mode_info_context->mbmi.ref_frame != LAST_FRAME &&
+ cpi->oxcf.number_of_layers == 1)
x->zbin_mode_boost = GF_ZEROMV_ZBIN_BOOST;
else
x->zbin_mode_boost = LF_ZEROMV_ZBIN_BOOST;
--
⑨