Commit 4629661c authored by Jingning Han's avatar Jingning Han

Fix the inverse 2x2 transform scaling factor

Scale down the 2x2 inverse transform transfer gain by 2.

Change-Id: Ifdd2ed302c05d08be142bc2fdef276f176e38c3d
parent b3b034df
......@@ -1086,10 +1086,10 @@ void av1_inv_txfm_add_2x2(const tran_low_t *input, uint8_t *dest, int stride,
(void)lossless;
(void)eob;
a1 = (a2 + b2) >> 1;
b1 = (a2 - b2) >> 1;
c1 = (c2 + d2) >> 1;
d1 = (c2 - d2) >> 1;
a1 = (a2 + b2) >> 2;
b1 = (a2 - b2) >> 2;
c1 = (c2 + d2) >> 2;
d1 = (c2 - d2) >> 2;
dest[0] = clip_pixel_add(dest[0], WRAPLOW(a1));
dest[1] = clip_pixel_add(dest[1], WRAPLOW(b1));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment