OLD | NEW |
1 #if !defined(_FX_JPEG_TURBO_) | |
2 /* | 1 /* |
3 * jdhuff.c | 2 * jdhuff.c |
4 * | 3 * |
5 * Copyright (C) 1991-1997, Thomas G. Lane. | 4 * Copyright (C) 1991-1997, Thomas G. Lane. |
6 * This file is part of the Independent JPEG Group's software. | 5 * This file is part of the Independent JPEG Group's software. |
7 * For conditions of distribution and use, see the accompanying README file. | 6 * For conditions of distribution and use, see the accompanying README file. |
8 * | 7 * |
9 * This file contains Huffman entropy decoding routines. | 8 * This file contains Huffman entropy decoding routines. |
10 * | 9 * |
11 * Much of the complexity here has to do with supporting input suspension. | 10 * Much of the complexity here has to do with supporting input suspension. |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 SIZEOF(huff_entropy_decoder)); | 645 SIZEOF(huff_entropy_decoder)); |
647 cinfo->entropy = (struct jpeg_entropy_decoder *) entropy; | 646 cinfo->entropy = (struct jpeg_entropy_decoder *) entropy; |
648 entropy->pub.start_pass = start_pass_huff_decoder; | 647 entropy->pub.start_pass = start_pass_huff_decoder; |
649 entropy->pub.decode_mcu = decode_mcu; | 648 entropy->pub.decode_mcu = decode_mcu; |
650 | 649 |
651 /* Mark tables unallocated */ | 650 /* Mark tables unallocated */ |
652 for (i = 0; i < NUM_HUFF_TBLS; i++) { | 651 for (i = 0; i < NUM_HUFF_TBLS; i++) { |
653 entropy->dc_derived_tbls[i] = entropy->ac_derived_tbls[i] = NULL; | 652 entropy->dc_derived_tbls[i] = entropy->ac_derived_tbls[i] = NULL; |
654 } | 653 } |
655 } | 654 } |
656 | |
657 #endif //_FX_JPEG_TURBO_ | |
OLD | NEW |