OLD | NEW |
1 #if !defined(_FX_JPEG_TURBO_) | |
2 /* | 1 /* |
3 * jcapistd.c | 2 * jcapistd.c |
4 * | 3 * |
5 * Copyright (C) 1994-1996, Thomas G. Lane. | 4 * Copyright (C) 1994-1996, 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 code for the compression half | 8 * This file contains application interface code for the compression half |
10 * of the JPEG library. These are the "standard" API routines that are | 9 * of the JPEG library. These are the "standard" API routines that are |
11 * used in the normal full-compression case. They are not used by a | 10 * used in the normal full-compression case. They are not used by a |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 /* Directly compress the row. */ | 152 /* Directly compress the row. */ |
154 if (! (*cinfo->coef->compress_data) (cinfo, data)) { | 153 if (! (*cinfo->coef->compress_data) (cinfo, data)) { |
155 /* If compressor did not consume the whole row, suspend processing. */ | 154 /* If compressor did not consume the whole row, suspend processing. */ |
156 return 0; | 155 return 0; |
157 } | 156 } |
158 | 157 |
159 /* OK, we processed one iMCU row. */ | 158 /* OK, we processed one iMCU row. */ |
160 cinfo->next_scanline += lines_per_iMCU_row; | 159 cinfo->next_scanline += lines_per_iMCU_row; |
161 return lines_per_iMCU_row; | 160 return lines_per_iMCU_row; |
162 } | 161 } |
163 | |
164 #endif //_FX_JPEG_TURBO_ | |
OLD | NEW |