From: Steinar H. Gunderson Date: Sat, 7 Oct 2017 22:54:43 +0000 (+0200) Subject: A sign fix in the FDCT. X-Git-Url: https://git.sesse.net/?p=narabu;a=commitdiff_plain;h=873d453bb62b954ba959b70d98056da4ff150059 A sign fix in the FDCT. --- diff --git a/coded.dat b/coded.dat index a811389..e94ba8c 100644 Binary files a/coded.dat and b/coded.dat differ diff --git a/encoder.shader b/encoder.shader index c49a3fe..7f0822a 100644 --- a/encoder.shader +++ b/encoder.shader @@ -82,9 +82,9 @@ void dct_1d(inout float y0, inout float y1, inout float y2, inout float y3, inou const float p4_6 = p2_6 * a4 + (p2_4 - p2_6) * a5; // phase 5 - const float p5_2 = p4_2 + p2_3; - const float p5_3 = p4_2 - p2_3; - const float p5_5 = p4_5 + p1_7; + const float p5_2 = p2_3 + p4_2; + const float p5_3 = p2_3 - p4_2; + const float p5_5 = p1_7 + p4_5; const float p5_7 = p1_7 - p4_5; // phase 6