ref: 1829d039063dc3832964bc0526dcddfe1638aa35
parent: d71ba03822ced836c3cfd18417c5fda05de3c833
parent: 985f09fdca14c74fbd6c6dcffe260bf3132c4b7e
author: Yaowu Xu <yaowu@google.com>
date: Mon Aug 20 09:40:53 EDT 2012
Merge "static threshold fix for realtime"
--- a/vp8/encoder/pickinter.c
+++ b/vp8/encoder/pickinter.c
@@ -458,7 +458,15 @@
static void check_for_encode_breakout(unsigned int sse, MACROBLOCK* x)
{
- if (sse < x->encode_breakout)
+ MACROBLOCKD *xd = &x->e_mbd;
+
+ unsigned int threshold = (xd->block[0].dequant[1]
+ * xd->block[0].dequant[1] >>4);
+
+ if(threshold < x->encode_breakout)
+ threshold = x->encode_breakout;
+
+ if (sse < threshold )
{
/* Check u and v to make sure skip is ok */
unsigned int sse2 = 0;
--
⑨