]> git.sesse.net Git - fjl/blobdiff - dehuff.c
Minor optimizations to the new AC coefficient tables.
[fjl] / dehuff.c
index 695da0bdc78ee2d863cbb0fa547b628619ffc4ab..50fb53e1633746622aa2fbc28977420fef912928 100644 (file)
--- a/dehuff.c
+++ b/dehuff.c
@@ -123,8 +123,6 @@ void read_huffman_tables(huffman_tables_t* dst, input_func_t* input_func, void*
                // Generate the AC lookup tables.
                for (unsigned i = 0; i < DEHUF_AC_TABLE_SIZE; ++i) {
                        tbl->ac_table_codes[i] = AC_DEHUF_SLOW_PATH;
                // Generate the AC lookup tables.
                for (unsigned i = 0; i < DEHUF_AC_TABLE_SIZE; ++i) {
                        tbl->ac_table_codes[i] = AC_DEHUF_SLOW_PATH;
-                       tbl->ac_table_length[i] = AC_DEHUF_SLOW_PATH;
-                       tbl->ac_table_skip[i] = AC_DEHUF_SLOW_PATH;
 
                        int lookup = i >> (DEHUF_AC_TABLE_BITS - DEHUF_TABLE_BITS);
                        int rs = tbl->lookup_table_codes[lookup];
 
                        int lookup = i >> (DEHUF_AC_TABLE_BITS - DEHUF_TABLE_BITS);
                        int rs = tbl->lookup_table_codes[lookup];