From efa9abd02891855afc40670cc874922a5c1fcb1b Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Wed, 15 Feb 2012 17:35:48 -0800 Subject: optmized rounding for transforms the changes are still temporary, the final transforms, especially inverse ones should take in account both accuracy, complexity, and sign-bias, which should be decided at a later time. Change-Id: I116b0c70b25f5ee324ae5713d4564f5d0aa27151 --- vp8/encoder/dct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vp8/encoder') diff --git a/vp8/encoder/dct.c b/vp8/encoder/dct.c index b537835da..b1e461e87 100644 --- a/vp8/encoder/dct.c +++ b/vp8/encoder/dct.c @@ -120,7 +120,7 @@ void vp8_short_fhaar2x2_c(short *input, short *output, int pitch) //pitch = 8 op1[i] = 0; } - op1[0]=(ip1[0] + ip1[1] + ip1[4] + ip1[8])>>1; + op1[0]=(ip1[0] + ip1[1] + ip1[4] + ip1[8] + 1)>>1; op1[1]=(ip1[0] - ip1[1] + ip1[4] - ip1[8])>>1; op1[4]=(ip1[0] + ip1[1] - ip1[4] - ip1[8])>>1; op1[8]=(ip1[0] - ip1[1] - ip1[4] + ip1[8])>>1; -- cgit v1.2.3