From f57ac58ac664ede6bc6e8cd9d88e0edaa366e21a Mon Sep 17 00:00:00 2001 From: warmerda Date: Sat, 25 Jul 2009 04:19:11 +0000 Subject: put revised 12bit _dc_ huffman tables in place --- jcparam.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jcparam.c b/jcparam.c index a086946..6f987d8 100644 --- a/jcparam.c +++ b/jcparam.c @@ -266,14 +266,14 @@ std_huff_tables (j_compress_ptr cinfo) */ { static const UINT8 bits_dc_luminance[17] = - { /* 0-base */ 0, 0, 2, 3, 1, 0, 3, 1, 1, 1, 1, 0, 0, 0, 0, 0 }; + { 0, 0, 2, 3, 1, 0, 3, 1, 0, 3, 1, 1, 1, 0, 0, 0 }; static const UINT8 val_dc_luminance[] = - { 8, 9, 6, 7, 10, 5, 3, 4, 11, 2, 0, 1, 12 }; + { 11, 12, 9, 10, 13, 8, 6, 7, 14, 5, 0, 3, 4, 1, 15, 2 }; static const UINT8 bits_dc_chrominance[17] = - { 0, 0, 2, 2, 2, 3, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 }; + { 0, 0, 2, 2, 2, 3, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 }; static const UINT8 val_dc_chrominance[] = - { 6, 7, 5, 8, 4, 9, 2, 3, 10, 1, 11, 0, 12 }; + { 9, 10, 8, 11, 7, 12, 5, 6, 13, 14, 4, 3, 2, 1, 0, 15 }; static const UINT8 bits_ac_luminance[17] = { 0, 0, 1, 4, 2, 2, 2, 1, 4, 1, 2, 0, 1, 0, 1, 0, 235 }; -- cgit v1.2.1