OLD | NEW |
1 #if !defined(_FX_JPEG_TURBO_) | |
2 /* | 1 /* |
3 * jcomapi.c | 2 * jcomapi.c |
4 * | 3 * |
5 * Copyright (C) 1994-1997, Thomas G. Lane. | 4 * Copyright (C) 1994-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 application interface routines that are used for both | 8 * This file contains application interface routines that are used for both |
10 * compression and decompression. | 9 * compression and decompression. |
11 */ | 10 */ |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 GLOBAL(JHUFF_TBL *) | 97 GLOBAL(JHUFF_TBL *) |
99 jpeg_alloc_huff_table (j_common_ptr cinfo) | 98 jpeg_alloc_huff_table (j_common_ptr cinfo) |
100 { | 99 { |
101 JHUFF_TBL *tbl; | 100 JHUFF_TBL *tbl; |
102 | 101 |
103 tbl = (JHUFF_TBL *) | 102 tbl = (JHUFF_TBL *) |
104 (*cinfo->mem->alloc_small) (cinfo, JPOOL_PERMANENT, SIZEOF(JHUFF_TBL)); | 103 (*cinfo->mem->alloc_small) (cinfo, JPOOL_PERMANENT, SIZEOF(JHUFF_TBL)); |
105 tbl->sent_table = FALSE; /* make sure this is false in any new table */ | 104 tbl->sent_table = FALSE; /* make sure this is false in any new table */ |
106 return tbl; | 105 return tbl; |
107 } | 106 } |
108 | |
109 #endif //_FX_JPEG_TURBO_ | |
OLD | NEW |