COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
jctrans.cpp File Reference
#include "jinclude.h"
#include "jpeglib.h"
Include dependency graph for jctrans.cpp:

Classes

struct  my_coef_controller
 

Macros

#define JPEG_INTERNALS
 

Typedefs

typedef my_coef_controllermy_coef_ptr
 

Functions

static void transencode_master_selection (j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
 
static void transencode_coef_controller (j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
 
void jpeg_write_coefficients (j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
 
void jpeg_copy_critical_parameters (j_decompress_ptr srcinfo, j_compress_ptr dstinfo)
 
static void start_iMCU_row (j_compress_ptr cinfo)
 
static void start_pass_coef (j_compress_ptr cinfo, J_BUF_MODE pass_mode)
 
static boolean compress_output (j_compress_ptr cinfo, JSAMPIMAGE input_buf)
 

Macro Definition Documentation

#define JPEG_INTERNALS

Typedef Documentation

Function Documentation

static void transencode_master_selection ( j_compress_ptr  cinfo,
jvirt_barray_ptr coef_arrays 
)
static
160 {
161  /* Although we don't actually use input_components for transcoding,
162  * jcmaster.c's initial_setup will complain if input_components is 0.
163  */
164  cinfo->input_components = 1;
165  /* Initialize master control (includes parameter checking/processing) */
166  jinit_c_master_control(cinfo, TRUE /* transcode only */);
167 
168  /* Entropy encoding: either Huffman or arithmetic coding. */
169  if (cinfo->arith_code) {
170  ERREXIT(cinfo, JERR_ARITH_NOTIMPL);
171  } else {
172  if (cinfo->progressive_mode) {
173 #ifdef C_PROGRESSIVE_SUPPORTED
174  jinit_phuff_encoder(cinfo);
175 #else
176  ERREXIT(cinfo, JERR_NOT_COMPILED);
177 #endif
178  } else
179  jinit_huff_encoder(cinfo);
180  }
181 
182  /* We need a special coefficient buffer controller. */
183  transencode_coef_controller(cinfo, coef_arrays);
184 
185  jinit_marker_writer(cinfo);
186 
187  /* We can now tell the memory manager to allocate virtual arrays. */
188  (*cinfo->mem->realize_virt_arrays) ((j_common_ptr) cinfo);
189 
190  /* Write the datastream header (SOI, JFIF) immediately.
191  * Frame and scan headers are postponed till later.
192  * This lets application insert special markers after the SOI.
193  */
194  (*cinfo->marker->write_file_header) (cinfo);
195 }
void jinit_marker_writer(j_compress_ptr cinfo)
Definition: jcmarker.cpp:645
#define ERREXIT(cinfo, code)
Definition: jerror.h:205
Definition: jpeglib.h:258
Definition: jerror.h:43
void jinit_huff_encoder(j_compress_ptr cinfo)
Definition: jchuff.cpp:891
Definition: jerror.h:95
struct jpeg_memory_mgr * mem
Definition: jpeglib.h:274
struct jpeg_marker_writer * marker
Definition: jpeglib.h:404
#define TRUE
Definition: jpleph.cpp:68
boolean arith_code
Definition: jpeglib.h:326
void(* realize_virt_arrays)()
Definition: jpeglib.h:785
static void transencode_coef_controller(j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
Definition: jctrans.cpp:363
boolean progressive_mode
Definition: jpeglib.h:368
void jinit_phuff_encoder(j_compress_ptr cinfo)
Definition: jcphuff.cpp:814
void jinit_c_master_control(j_compress_ptr cinfo, boolean transcode_only)
Definition: jcmaster.cpp:543
int input_components
Definition: jpeglib.h:286
static void transencode_coef_controller ( j_compress_ptr  cinfo,
jvirt_barray_ptr coef_arrays 
)
static
365 {
368  int i;
369 
370  coef = (my_coef_ptr)
371  (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
373  cinfo->coef = (struct jpeg_c_coef_controller *) coef;
374  coef->pub.start_pass = start_pass_coef;
375  coef->pub.compress_data = compress_output;
376 
377  /* Save pointer to virtual arrays */
378  coef->whole_image = coef_arrays;
379 
380  /* Allocate and pre-zero space for dummy DCT blocks. */
381  buffer = (JBLOCKROW)
382  (*cinfo->mem->alloc_large) ((j_common_ptr) cinfo, JPOOL_IMAGE,
384  jzero_far((void FAR *) buffer, C_MAX_BLOCKS_IN_MCU * SIZEOF(JBLOCK));
385  for (i = 0; i < C_MAX_BLOCKS_IN_MCU; i++) {
386  coef->dummy_buffer[i] = buffer + i;
387  }
388 }
int i
Definition: rw_test.cpp:37
struct jpeg_common_struct * j_common_ptr
Definition: jpeglib.h:266
void *(* alloc_small)()
Definition: jpeglib.h:764
#define SIZEOF(object)
Definition: jinclude.h:80
#define JPOOL_IMAGE
Definition: jpeglib.h:754
struct jpeg_c_coef_controller pub
Definition: jccoefct.cpp:35
struct jpeg_memory_mgr * mem
Definition: jpeglib.h:274
static boolean compress_output(j_compress_ptr cinfo, JSAMPIMAGE input_buf)
Definition: jctrans.cpp:278
struct jpeg_c_coef_controller * coef
Definition: jpeglib.h:403
Definition: jpegint.h:76
static char buffer[255]
Definition: propagator_simple.cpp:60
my_coef_controller * my_coef_ptr
Definition: jctrans.cpp:223
#define C_MAX_BLOCKS_IN_MCU
Definition: jpeglib.h:60
static double coef[360+1][360+1][2]
Definition: physicslib.cpp:39
#define FAR
Definition: jmorecfg.h:215
JCOEF JBLOCK[64]
Definition: jpeglib.h:75
JBLOCKROW dummy_buffer[10]
Definition: jctrans.cpp:220
Definition: jccoefct.cpp:34
JBLOCK * JBLOCKROW
Definition: jpeglib.h:76
void *(* alloc_large)()
Definition: jpeglib.h:766
jvirt_barray_ptr whole_image[10]
Definition: jccoefct.cpp:54
static void start_pass_coef(j_compress_ptr cinfo, J_BUF_MODE pass_mode)
Definition: jctrans.cpp:255
void jzero_far(void *target, size_t bytestozero)
Definition: jutils.cpp:165
void jpeg_write_coefficients ( j_compress_ptr  cinfo,
jvirt_barray_ptr coef_arrays 
)
39 {
40  if (cinfo->global_state != CSTATE_START)
41  ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
42  /* Mark all tables to be written */
44  /* (Re)initialize error mgr and destination modules */
45  (*cinfo->err->reset_error_mgr) ((j_common_ptr) cinfo);
46  (*cinfo->dest->init_destination) (cinfo);
47  /* Perform master selection of active modules */
48  transencode_master_selection(cinfo, coef_arrays);
49  /* Wait for jpeg_finish_compress() call */
50  cinfo->next_scanline = 0; /* so jpeg_write_marker works */
52 }
#define CSTATE_START
Definition: jpegint.h:25
Definition: jpeglib.h:258
Definition: jerror.h:65
JDIMENSION next_scanline
Definition: jpeglib.h:359
#define FALSE
Definition: jpleph.cpp:69
struct jpeg_error_mgr * err
Definition: jpeglib.h:274
void(* init_destination)()
Definition: jpeglib.h:722
struct jpeg_destination_mgr * dest
Definition: jpeglib.h:277
void(* reset_error_mgr)()
Definition: jpeglib.h:659
#define ERREXIT1(cinfo, code, p1)
Definition: jerror.h:208
void jpeg_suppress_tables(j_compress_ptr cinfo, boolean suppress)
Definition: jcapimin.cpp:119
int global_state
Definition: jpeglib.h:274
#define CSTATE_WRCOEFS
Definition: jpegint.h:28
static void transencode_master_selection(j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
Definition: jctrans.cpp:158
void jpeg_copy_critical_parameters ( j_decompress_ptr  srcinfo,
j_compress_ptr  dstinfo 
)
65 {
66  JQUANT_TBL ** qtblptr;
67  jpeg_component_info *incomp, *outcomp;
68  JQUANT_TBL *c_quant, *slot_quant;
69  int tblno, ci, coefi;
70 
71  /* Safety check to ensure start_compress not called yet. */
72  if (dstinfo->global_state != CSTATE_START)
73  ERREXIT1(dstinfo, JERR_BAD_STATE, dstinfo->global_state);
74  /* Copy fundamental image dimensions */
75  dstinfo->image_width = srcinfo->image_width;
76  dstinfo->image_height = srcinfo->image_height;
77  dstinfo->input_components = srcinfo->num_components;
78  dstinfo->in_color_space = srcinfo->jpeg_color_space;
79  /* Initialize all parameters to default values */
80  jpeg_set_defaults(dstinfo);
81  /* jpeg_set_defaults may choose wrong colorspace, eg YCbCr if input is RGB.
82  * Fix it to get the right header markers for the image colorspace.
83  */
84  jpeg_set_colorspace(dstinfo, srcinfo->jpeg_color_space);
85  dstinfo->data_precision = srcinfo->data_precision;
86  dstinfo->CCIR601_sampling = srcinfo->CCIR601_sampling;
87  /* Copy the source's quantization tables. */
88  for (tblno = 0; tblno < NUM_QUANT_TBLS; tblno++) {
89  if (srcinfo->quant_tbl_ptrs[tblno] != NULL) {
90  qtblptr = & dstinfo->quant_tbl_ptrs[tblno];
91  if (*qtblptr == NULL)
92  *qtblptr = jpeg_alloc_quant_table((j_common_ptr) dstinfo);
93  MEMCOPY((*qtblptr)->quantval,
94  srcinfo->quant_tbl_ptrs[tblno]->quantval,
95  SIZEOF((*qtblptr)->quantval));
96  (*qtblptr)->sent_table = FALSE;
97  }
98  }
99  /* Copy the source's per-component info.
100  * Note we assume jpeg_set_defaults has allocated the dest comp_info array.
101  */
102  dstinfo->num_components = srcinfo->num_components;
103  if (dstinfo->num_components < 1 || dstinfo->num_components > MAX_COMPONENTS)
104  ERREXIT2(dstinfo, JERR_COMPONENT_COUNT, dstinfo->num_components,
106  for (ci = 0, incomp = srcinfo->comp_info, outcomp = dstinfo->comp_info;
107  ci < dstinfo->num_components; ci++, incomp++, outcomp++) {
108  outcomp->component_id = incomp->component_id;
109  outcomp->h_samp_factor = incomp->h_samp_factor;
110  outcomp->v_samp_factor = incomp->v_samp_factor;
111  outcomp->quant_tbl_no = incomp->quant_tbl_no;
112  /* Make sure saved quantization table for component matches the qtable
113  * slot. If not, the input file re-used this qtable slot.
114  * IJG encoder currently cannot duplicate this.
115  */
116  tblno = outcomp->quant_tbl_no;
117  if (tblno < 0 || tblno >= NUM_QUANT_TBLS ||
118  srcinfo->quant_tbl_ptrs[tblno] == NULL)
119  ERREXIT1(dstinfo, JERR_NO_QUANT_TABLE, tblno);
120  slot_quant = srcinfo->quant_tbl_ptrs[tblno];
121  c_quant = incomp->quant_table;
122  if (c_quant != NULL) {
123  for (coefi = 0; coefi < DCTSIZE2; coefi++) {
124  if (c_quant->quantval[coefi] != slot_quant->quantval[coefi])
125  ERREXIT1(dstinfo, JERR_MISMATCHED_QUANT_TABLE, tblno);
126  }
127  }
128  /* Note: we do not copy the source's Huffman table assignments;
129  * instead we rely on jpeg_set_colorspace to have made a suitable choice.
130  */
131  }
132  /* Also copy JFIF version and resolution information, if available.
133  * Strictly speaking this isn't "critical" info, but it's nearly
134  * always appropriate to copy it if available. In particular,
135  * if the application chooses to copy JFIF 1.02 extension markers from
136  * the source file, we need to copy the version to make sure we don't
137  * emit a file that has 1.02 extensions but a claimed version of 1.01.
138  * We will *not*, however, copy version info from mislabeled "2.01" files.
139  */
140  if (srcinfo->saw_JFIF_marker) {
141  if (srcinfo->JFIF_major_version == 1) {
142  dstinfo->JFIF_major_version = srcinfo->JFIF_major_version;
143  dstinfo->JFIF_minor_version = srcinfo->JFIF_minor_version;
144  }
145  dstinfo->density_unit = srcinfo->density_unit;
146  dstinfo->X_density = srcinfo->X_density;
147  dstinfo->Y_density = srcinfo->Y_density;
148  }
149 }
int v_samp_factor
Definition: jpeglib.h:128
int num_components
Definition: jpeglib.h:427
uint8_t JFIF_minor_version
Definition: jpeglib.h:558
#define CSTATE_START
Definition: jpegint.h:25
#define NUM_QUANT_TBLS
Definition: jpeglib.h:48
JQUANT_TBL * jpeg_alloc_quant_table(j_common_ptr cinfo)
Definition: jcomapi.cpp:86
jpeg_component_info * comp_info
Definition: jpeglib.h:540
JQUANT_TBL * quant_tbl_ptrs[4]
Definition: jpeglib.h:307
JDIMENSION image_height
Definition: jpeglib.h:285
#define MAX_COMPONENTS
Definition: jmorecfg.h:35
int data_precision
Definition: jpeglib.h:538
Definition: jpeglib.h:88
int num_components
Definition: jpeglib.h:301
boolean saw_JFIF_marker
Definition: jpeglib.h:555
JDIMENSION image_width
Definition: jpeglib.h:425
Definition: jpeglib.h:258
Definition: jerror.h:65
#define SIZEOF(object)
Definition: jinclude.h:80
Definition: jerror.h:72
JDIMENSION image_height
Definition: jpeglib.h:426
uint16_t quantval[64]
Definition: jpeglib.h:93
J_COLOR_SPACE in_color_space
Definition: jpeglib.h:287
int data_precision
Definition: jpeglib.h:299
#define FALSE
Definition: jpleph.cpp:69
uint8_t JFIF_major_version
Definition: jpeglib.h:557
uint16_t Y_density
Definition: jpeglib.h:561
#define MEMCOPY(dest, src, size)
Definition: jinclude.h:68
int quant_tbl_no
Definition: jpeglib.h:129
uint16_t X_density
Definition: jpeglib.h:560
#define DCTSIZE2
Definition: jpeglib.h:47
void jpeg_set_colorspace(j_compress_ptr cinfo, J_COLOR_SPACE colorspace)
Definition: jcparam.cpp:391
int component_id
Definition: jpeglib.h:125
Definition: jerror.h:99
uint8_t density_unit
Definition: jpeglib.h:349
JQUANT_TBL * quant_table
Definition: jpeglib.h:180
boolean CCIR601_sampling
Definition: jpeglib.h:565
#define ERREXIT1(cinfo, code, p1)
Definition: jerror.h:208
int global_state
Definition: jpeglib.h:274
Definition: jpeglib.h:121
Definition: jerror.h:91
uint16_t X_density
Definition: jpeglib.h:350
JQUANT_TBL * quant_tbl_ptrs[4]
Definition: jpeglib.h:527
boolean CCIR601_sampling
Definition: jpeglib.h:328
void jpeg_set_defaults(j_compress_ptr cinfo)
Definition: jcparam.cpp:268
int h_samp_factor
Definition: jpeglib.h:127
uint8_t JFIF_minor_version
Definition: jpeglib.h:344
uint8_t density_unit
Definition: jpeglib.h:559
uint8_t JFIF_major_version
Definition: jpeglib.h:343
uint16_t Y_density
Definition: jpeglib.h:351
#define ERREXIT2(cinfo, code, p1, p2)
Definition: jerror.h:212
boolean int tblno
Definition: jchuff.h:42
jpeg_component_info * comp_info
Definition: jpeglib.h:304
J_COLOR_SPACE jpeg_color_space
Definition: jpeglib.h:428
int input_components
Definition: jpeglib.h:286
JDIMENSION image_width
Definition: jpeglib.h:284
static void start_iMCU_row ( j_compress_ptr  cinfo)
static
229 {
230  my_coef_ptr coef = (my_coef_ptr) cinfo->coef;
231 
232  /* In an interleaved scan, an MCU row is the same as an iMCU row.
233  * In a noninterleaved scan, an iMCU row has v_samp_factor MCU rows.
234  * But at the bottom of the image, process only what's left.
235  */
236  if (cinfo->comps_in_scan > 1) {
237  coef->MCU_rows_per_iMCU_row = 1;
238  } else {
239  if (coef->iMCU_row_num < (cinfo->total_iMCU_rows-1))
241  else
243  }
244 
245  coef->mcu_ctr = 0;
246  coef->MCU_vert_offset = 0;
247 }
int v_samp_factor
Definition: jpeglib.h:128
JDIMENSION mcu_ctr
Definition: jccoefct.cpp:38
int MCU_vert_offset
Definition: jccoefct.cpp:39
struct jpeg_c_coef_controller * coef
Definition: jpeglib.h:403
JDIMENSION total_iMCU_rows
Definition: jpeglib.h:372
my_coef_controller * my_coef_ptr
Definition: jctrans.cpp:223
int last_row_height
Definition: jpeglib.h:174
JDIMENSION iMCU_row_num
Definition: jccoefct.cpp:37
static double coef[360+1][360+1][2]
Definition: physicslib.cpp:39
Definition: jccoefct.cpp:34
int comps_in_scan
Definition: jpeglib.h:383
jpeg_component_info * cur_comp_info[4]
Definition: jpeglib.h:384
int MCU_rows_per_iMCU_row
Definition: jccoefct.cpp:40
static void start_pass_coef ( j_compress_ptr  cinfo,
J_BUF_MODE  pass_mode 
)
static
256 {
257  my_coef_ptr coef = (my_coef_ptr) cinfo->coef;
258 
259  if (pass_mode != JBUF_CRANK_DEST)
261 
262  coef->iMCU_row_num = 0;
263  start_iMCU_row(cinfo);
264 }
Definition: jerror.h:46
Definition: jpegint.h:20
#define ERREXIT(cinfo, code)
Definition: jerror.h:205
struct jpeg_c_coef_controller * coef
Definition: jpeglib.h:403
my_coef_controller * my_coef_ptr
Definition: jctrans.cpp:223
JDIMENSION iMCU_row_num
Definition: jccoefct.cpp:37
static double coef[360+1][360+1][2]
Definition: physicslib.cpp:39
Definition: jccoefct.cpp:34
static void start_iMCU_row(j_compress_ptr cinfo)
Definition: jctrans.cpp:227
static boolean compress_output ( j_compress_ptr  cinfo,
JSAMPIMAGE  input_buf 
)
static
279 {
280  my_coef_ptr coef = (my_coef_ptr) cinfo->coef;
281  JDIMENSION MCU_col_num; /* index of current MCU within row */
282  JDIMENSION last_MCU_col = cinfo->MCUs_per_row - 1;
283  JDIMENSION last_iMCU_row = cinfo->total_iMCU_rows - 1;
284  int blkn, ci, xindex, yindex, yoffset, blockcnt;
285  JDIMENSION start_col;
287  JBLOCKROW MCU_buffer[C_MAX_BLOCKS_IN_MCU];
288  JBLOCKROW buffer_ptr;
290 
291  /* Align the virtual buffers for the components used in this scan. */
292  for (ci = 0; ci < cinfo->comps_in_scan; ci++) {
293  compptr = cinfo->cur_comp_info[ci];
294  buffer[ci] = (*cinfo->mem->access_virt_barray)
298  }
299 
300  /* Loop to process one whole iMCU row */
301  for (yoffset = coef->MCU_vert_offset; yoffset < coef->MCU_rows_per_iMCU_row;
302  yoffset++) {
303  for (MCU_col_num = coef->mcu_ctr; MCU_col_num < cinfo->MCUs_per_row;
304  MCU_col_num++) {
305  /* Construct list of pointers to DCT blocks belonging to this MCU */
306  blkn = 0; /* index of current DCT block within MCU */
307  for (ci = 0; ci < cinfo->comps_in_scan; ci++) {
308  compptr = cinfo->cur_comp_info[ci];
309  start_col = MCU_col_num * compptr->MCU_width;
310  blockcnt = (MCU_col_num < last_MCU_col) ? compptr->MCU_width
312  for (yindex = 0; yindex < compptr->MCU_height; yindex++) {
313  if (coef->iMCU_row_num < last_iMCU_row ||
314  yindex+yoffset < compptr->last_row_height) {
315  /* Fill in pointers to real blocks in this row */
316  buffer_ptr = buffer[ci][yindex+yoffset] + start_col;
317  for (xindex = 0; xindex < blockcnt; xindex++)
318  MCU_buffer[blkn++] = buffer_ptr++;
319  } else {
320  /* At bottom of image, need a whole row of dummy blocks */
321  xindex = 0;
322  }
323  /* Fill in any dummy blocks needed in this row.
324  * Dummy blocks are filled in the same way as in jccoefct.c:
325  * all zeroes in the AC entries, DC entries equal to previous
326  * block's DC value. The init routine has already zeroed the
327  * AC entries, so we need only set the DC entries correctly.
328  */
329  for (; xindex < compptr->MCU_width; xindex++) {
330  MCU_buffer[blkn] = coef->dummy_buffer[blkn];
331  MCU_buffer[blkn][0][0] = MCU_buffer[blkn-1][0][0];
332  blkn++;
333  }
334  }
335  }
336  /* Try to write the MCU. */
337  if (! (*cinfo->entropy->encode_mcu) (cinfo, MCU_buffer)) {
338  /* Suspension forced; update state counters and exit */
339  coef->MCU_vert_offset = yoffset;
340  coef->mcu_ctr = MCU_col_num;
341  return FALSE;
342  }
343  }
344  /* Completed an MCU row, but perhaps not an iMCU row */
345  coef->mcu_ctr = 0;
346  }
347  /* Completed the iMCU row, advance counters for next one */
348  coef->iMCU_row_num++;
349  start_iMCU_row(cinfo);
350  return TRUE;
351 }
int v_samp_factor
Definition: jpeglib.h:128
JBLOCKARRAY(* access_virt_barray)()
Definition: jpeglib.h:795
int MCU_height
Definition: jpeglib.h:170
JBLOCKROW * JBLOCKARRAY
Definition: jpeglib.h:77
JDIMENSION mcu_ctr
Definition: jccoefct.cpp:38
Definition: jpeglib.h:258
struct jpeg_entropy_encoder * entropy
Definition: jpeglib.h:408
jpeg_component_info * compptr
Definition: jdct.h:102
int MCU_vert_offset
Definition: jccoefct.cpp:39
#define FALSE
Definition: jpleph.cpp:69
int MCU_width
Definition: jpeglib.h:169
int component_index
Definition: jpeglib.h:126
struct jpeg_memory_mgr * mem
Definition: jpeglib.h:274
struct jpeg_c_coef_controller * coef
Definition: jpeglib.h:403
static char buffer[255]
Definition: propagator_simple.cpp:60
JDIMENSION total_iMCU_rows
Definition: jpeglib.h:372
my_coef_controller * my_coef_ptr
Definition: jctrans.cpp:223
JDIMENSION iMCU_row_num
Definition: jccoefct.cpp:37
#define C_MAX_BLOCKS_IN_MCU
Definition: jpeglib.h:60
static double coef[360+1][360+1][2]
Definition: physicslib.cpp:39
#define TRUE
Definition: jpleph.cpp:68
JDIMENSION MCUs_per_row
Definition: jpeglib.h:387
JBLOCKROW dummy_buffer[10]
Definition: jctrans.cpp:220
Definition: jpeglib.h:121
Definition: jccoefct.cpp:34
JBLOCK * JBLOCKROW
Definition: jpeglib.h:76
static void start_iMCU_row(j_compress_ptr cinfo)
Definition: jctrans.cpp:227
int comps_in_scan
Definition: jpeglib.h:383
unsigned int JDIMENSION
Definition: jmorecfg.h:171
jpeg_component_info * cur_comp_info[4]
Definition: jpeglib.h:384
jvirt_barray_ptr whole_image[10]
Definition: jccoefct.cpp:54
int last_col_width
Definition: jpeglib.h:173
#define MAX_COMPS_IN_SCAN
Definition: jpeglib.h:51