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

Classes

struct  my_main_controller
 

Macros

#define JPEG_INTERNALS
 
#define CTX_PREPARE_FOR_IMCU   0 /* need to prepare for MCU row */
 
#define CTX_PROCESS_IMCU   1 /* feeding iMCU to postprocessor */
 
#define CTX_POSTPONED_ROW   2 /* feeding postponed row group */
 

Typedefs

typedef my_main_controllermy_main_ptr
 

Functions

static void process_data_simple_main (j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
 
static void process_data_context_main (j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
 
static void process_data_crank_post (j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
 
static void alloc_funny_pointers (j_decompress_ptr cinfo)
 
static void make_funny_pointers (j_decompress_ptr cinfo)
 
static void set_wraparound_pointers (j_decompress_ptr cinfo)
 
static void set_bottom_pointers (j_decompress_ptr cinfo)
 
static void start_pass_main (j_decompress_ptr cinfo, J_BUF_MODE pass_mode)
 
void jinit_d_main_controller (j_decompress_ptr cinfo, boolean need_full_buffer)
 

Macro Definition Documentation

#define JPEG_INTERNALS
#define CTX_PREPARE_FOR_IMCU   0 /* need to prepare for MCU row */
#define CTX_PROCESS_IMCU   1 /* feeding iMCU to postprocessor */
#define CTX_POSTPONED_ROW   2 /* feeding postponed row group */

Typedef Documentation

Function Documentation

static void process_data_simple_main ( j_decompress_ptr  cinfo,
JSAMPARRAY  output_buf,
JDIMENSION out_row_ctr,
JDIMENSION  out_rows_avail 
)
static
348 {
349  my_main_ptr main = (my_main_ptr) cinfo->main;
350  JDIMENSION rowgroups_avail;
351 
352  /* Read input data if we haven't filled the main buffer yet */
353  if (! main->buffer_full) {
354  if (! (*cinfo->coef->decompress_data) (cinfo, main->buffer))
355  return; /* suspension forced, can do nothing more */
356  main->buffer_full = TRUE; /* OK, we have an iMCU row to work with */
357  }
358 
359  /* There are always min_DCT_scaled_size row groups in an iMCU row. */
360  rowgroups_avail = (JDIMENSION) cinfo->min_DCT_scaled_size;
361  /* Note: at the bottom of the image, we may pass extra garbage row groups
362  * to the postprocessor. The postprocessor has to check for bottom
363  * of image anyway (at row resolution), so no point in us doing it too.
364  */
365 
366  /* Feed the postprocessor */
367  (*cinfo->post->post_process_data) (cinfo, main->buffer,
368  &main->rowgroup_ctr, rowgroups_avail,
369  output_buf, out_row_ctr, out_rows_avail);
370 
371  /* Has postprocessor consumed all the data yet? If so, mark buffer empty */
372  if (main->rowgroup_ctr >= rowgroups_avail) {
373  main->buffer_full = FALSE;
374  main->rowgroup_ctr = 0;
375  }
376 }
struct jpeg_d_post_controller * post
Definition: jpeglib.h:627
boolean buffer_full
Definition: jdmainct.cpp:120
struct jpeg_d_main_controller * main
Definition: jpeglib.h:625
int min_DCT_scaled_size
Definition: jpeglib.h:583
struct jpeg_d_coef_controller * coef
Definition: jpeglib.h:626
Definition: jcmainct.cpp:28
JDIMENSION rowgroup_ctr
Definition: jcmainct.cpp:32
my_main_controller * my_main_ptr
Definition: jdmainct.cpp:134
#define FALSE
Definition: jpleph.cpp:69
int main(int argc, char **argv)
Definition: agent_001.cpp:50
#define TRUE
Definition: jpleph.cpp:68
JSAMPARRAY buffer[10]
Definition: jcmainct.cpp:40
jpeg_component_info JCOEFPTR JSAMPARRAY output_buf
Definition: jdct.h:102
unsigned int JDIMENSION
Definition: jmorecfg.h:171
static void process_data_context_main ( j_decompress_ptr  cinfo,
JSAMPARRAY  output_buf,
JDIMENSION out_row_ctr,
JDIMENSION  out_rows_avail 
)
static
388 {
389  my_main_ptr main = (my_main_ptr) cinfo->main;
390 
391  /* Read input data if we haven't filled the main buffer yet */
392  if (! main->buffer_full) {
393  if (! (*cinfo->coef->decompress_data) (cinfo,
394  main->xbuffer[main->whichptr]))
395  return; /* suspension forced, can do nothing more */
396  main->buffer_full = TRUE; /* OK, we have an iMCU row to work with */
397  main->iMCU_row_ctr++; /* count rows received */
398  }
399 
400  /* Postprocessor typically will not swallow all the input data it is handed
401  * in one call (due to filling the output buffer first). Must be prepared
402  * to exit and restart. This switch lets us keep track of how far we got.
403  * Note that each case falls through to the next on successful completion.
404  */
405  switch (main->context_state) {
406  case CTX_POSTPONED_ROW:
407  /* Call postprocessor using previously set pointers for postponed row */
408  (*cinfo->post->post_process_data) (cinfo, main->xbuffer[main->whichptr],
409  &main->rowgroup_ctr, main->rowgroups_avail,
410  output_buf, out_row_ctr, out_rows_avail);
411  if (main->rowgroup_ctr < main->rowgroups_avail)
412  return; /* Need to suspend */
414  if (*out_row_ctr >= out_rows_avail)
415  return; /* Postprocessor exactly filled output buf */
416  /*FALLTHROUGH*/
418  /* Prepare to process first M-1 row groups of this iMCU row */
419  main->rowgroup_ctr = 0;
420  main->rowgroups_avail = (JDIMENSION) (cinfo->min_DCT_scaled_size - 1);
421  /* Check for bottom of image: if so, tweak pointers to "duplicate"
422  * the last sample row, and adjust rowgroups_avail to ignore padding rows.
423  */
424  if (main->iMCU_row_ctr == cinfo->total_iMCU_rows)
425  set_bottom_pointers(cinfo);
427  /*FALLTHROUGH*/
428  case CTX_PROCESS_IMCU:
429  /* Call postprocessor using previously set pointers */
430  (*cinfo->post->post_process_data) (cinfo, main->xbuffer[main->whichptr],
431  &main->rowgroup_ctr, main->rowgroups_avail,
432  output_buf, out_row_ctr, out_rows_avail);
433  if (main->rowgroup_ctr < main->rowgroups_avail)
434  return; /* Need to suspend */
435  /* After the first iMCU, change wraparound pointers to normal state */
436  if (main->iMCU_row_ctr == 1)
438  /* Prepare to load new iMCU row using other xbuffer list */
439  main->whichptr ^= 1; /* 0=>1 or 1=>0 */
440  main->buffer_full = FALSE;
441  /* Still need to process last row group of this iMCU row, */
442  /* which is saved at index M+1 of the other xbuffer */
443  main->rowgroup_ctr = (JDIMENSION) (cinfo->min_DCT_scaled_size + 1);
444  main->rowgroups_avail = (JDIMENSION) (cinfo->min_DCT_scaled_size + 2);
446  }
447 }
struct jpeg_d_post_controller * post
Definition: jpeglib.h:627
boolean buffer_full
Definition: jdmainct.cpp:120
JDIMENSION rowgroups_avail
Definition: jdmainct.cpp:130
struct jpeg_d_main_controller * main
Definition: jpeglib.h:625
int min_DCT_scaled_size
Definition: jpeglib.h:583
struct jpeg_d_coef_controller * coef
Definition: jpeglib.h:626
Definition: jcmainct.cpp:28
int context_state
Definition: jdmainct.cpp:129
JDIMENSION rowgroup_ctr
Definition: jcmainct.cpp:32
my_main_controller * my_main_ptr
Definition: jdmainct.cpp:134
#define FALSE
Definition: jpleph.cpp:69
#define CTX_PROCESS_IMCU
Definition: jdmainct.cpp:138
int whichptr
Definition: jdmainct.cpp:128
int main(int argc, char **argv)
Definition: agent_001.cpp:50
static void set_wraparound_pointers(j_decompress_ptr cinfo)
Definition: jdmainct.cpp:238
#define TRUE
Definition: jpleph.cpp:68
JSAMPIMAGE xbuffer[2]
Definition: jdmainct.cpp:126
JDIMENSION iMCU_row_ctr
Definition: jdmainct.cpp:131
static void set_bottom_pointers(j_decompress_ptr cinfo)
Definition: jdmainct.cpp:266
#define CTX_PREPARE_FOR_IMCU
Definition: jdmainct.cpp:137
jpeg_component_info JCOEFPTR JSAMPARRAY output_buf
Definition: jdct.h:102
unsigned int JDIMENSION
Definition: jmorecfg.h:171
#define CTX_POSTPONED_ROW
Definition: jdmainct.cpp:139
JDIMENSION total_iMCU_rows
Definition: jpeglib.h:585
static void process_data_crank_post ( j_decompress_ptr  cinfo,
JSAMPARRAY  output_buf,
JDIMENSION out_row_ctr,
JDIMENSION  out_rows_avail 
)
static
462 {
463  (*cinfo->post->post_process_data) (cinfo, (JSAMPIMAGE) NULL,
464  (JDIMENSION *)nullptr, (JDIMENSION) 0,
465  output_buf, out_row_ctr, out_rows_avail);
466 }
struct jpeg_d_post_controller * post
Definition: jpeglib.h:627
JSAMPARRAY * JSAMPIMAGE
Definition: jpeglib.h:73
jpeg_component_info JCOEFPTR JSAMPARRAY output_buf
Definition: jdct.h:102
unsigned int JDIMENSION
Definition: jmorecfg.h:171
static void alloc_funny_pointers ( j_decompress_ptr  cinfo)
static
161 {
162  my_main_ptr main = (my_main_ptr) cinfo->main;
163  int ci, rgroup;
164  int M = cinfo->min_DCT_scaled_size;
166  JSAMPARRAY xbuf;
167 
168  /* Get top-level space for component array pointers.
169  * We alloc both arrays with one call to save a few cycles.
170  */
171  main->xbuffer[0] = (JSAMPIMAGE)
172  (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
173  cinfo->num_components * 2 * SIZEOF(JSAMPARRAY));
174  main->xbuffer[1] = main->xbuffer[0] + cinfo->num_components;
175 
176  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
177  ci++, compptr++) {
179  cinfo->min_DCT_scaled_size; /* height of a row group of component */
180  /* Get space for pointer lists --- M+4 row groups in each list.
181  * We alloc both pointer lists with one call to save a few cycles.
182  */
183  xbuf = (JSAMPARRAY)
184  (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
185  2 * (rgroup * (M + 4)) * SIZEOF(JSAMPROW));
186  xbuf += rgroup; /* want one row group at negative offsets */
187  main->xbuffer[0][ci] = xbuf;
188  xbuf += rgroup * (M + 4);
189  main->xbuffer[1][ci] = xbuf;
190  }
191 }
int v_samp_factor
Definition: jpeglib.h:128
int num_components
Definition: jpeglib.h:427
jpeg_component_info * comp_info
Definition: jpeglib.h:540
struct jpeg_d_main_controller * main
Definition: jpeglib.h:625
int min_DCT_scaled_size
Definition: jpeglib.h:583
void *(* alloc_small)()
Definition: jpeglib.h:764
Definition: jcmainct.cpp:28
int DCT_scaled_size
Definition: jpeglib.h:152
Definition: jpeglib.h:258
#define SIZEOF(object)
Definition: jinclude.h:80
JSAMPLE * JSAMPROW
Definition: jpeglib.h:71
jpeg_component_info * compptr
Definition: jdct.h:102
#define JPOOL_IMAGE
Definition: jpeglib.h:754
my_main_controller * my_main_ptr
Definition: jdmainct.cpp:134
struct jpeg_memory_mgr * mem
Definition: jpeglib.h:417
int main(int argc, char **argv)
Definition: agent_001.cpp:50
JSAMPARRAY * JSAMPIMAGE
Definition: jpeglib.h:73
JSAMPROW * JSAMPARRAY
Definition: jpeglib.h:72
Definition: jpeglib.h:121
JSAMPIMAGE xbuffer[2]
Definition: jdmainct.cpp:126
static void make_funny_pointers ( j_decompress_ptr  cinfo)
static
202 {
203  my_main_ptr main = (my_main_ptr) cinfo->main;
204  int ci, i, rgroup;
205  int M = cinfo->min_DCT_scaled_size;
207  JSAMPARRAY buf, xbuf0, xbuf1;
208 
209  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
210  ci++, compptr++) {
212  cinfo->min_DCT_scaled_size; /* height of a row group of component */
213  xbuf0 = main->xbuffer[0][ci];
214  xbuf1 = main->xbuffer[1][ci];
215  /* First copy the workspace pointers as-is */
216  buf = main->buffer[ci];
217  for (i = 0; i < rgroup * (M + 2); i++) {
218  xbuf0[i] = xbuf1[i] = buf[i];
219  }
220  /* In the second list, put the last four row groups in swapped order */
221  for (i = 0; i < rgroup * 2; i++) {
222  xbuf1[rgroup*(M-2) + i] = buf[rgroup*M + i];
223  xbuf1[rgroup*M + i] = buf[rgroup*(M-2) + i];
224  }
225  /* The wraparound pointers at top and bottom will be filled later
226  * (see set_wraparound_pointers, below). Initially we want the "above"
227  * pointers to duplicate the first actual data line. This only needs
228  * to happen in xbuffer[0].
229  */
230  for (i = 0; i < rgroup; i++) {
231  xbuf0[i - rgroup] = xbuf0[0];
232  }
233  }
234 }
int v_samp_factor
Definition: jpeglib.h:128
jpeg_component_info * comp_info
Definition: jpeglib.h:540
int i
Definition: rw_test.cpp:37
struct jpeg_d_main_controller * main
Definition: jpeglib.h:625
int min_DCT_scaled_size
Definition: jpeglib.h:583
Definition: jcmainct.cpp:28
int DCT_scaled_size
Definition: jpeglib.h:152
jpeg_component_info * compptr
Definition: jdct.h:102
my_main_controller * my_main_ptr
Definition: jdmainct.cpp:134
int main(int argc, char **argv)
Definition: agent_001.cpp:50
JSAMPARRAY buffer[10]
Definition: jcmainct.cpp:40
JSAMPROW * JSAMPARRAY
Definition: jpeglib.h:72
Definition: jpeglib.h:121
JSAMPIMAGE xbuffer[2]
Definition: jdmainct.cpp:126
char buf[128]
Definition: rw_test.cpp:40
static void set_wraparound_pointers ( j_decompress_ptr  cinfo)
static
242 {
243  my_main_ptr main = (my_main_ptr) cinfo->main;
244  int ci, i, rgroup;
245  int M = cinfo->min_DCT_scaled_size;
247  JSAMPARRAY xbuf0, xbuf1;
248 
249  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
250  ci++, compptr++) {
252  cinfo->min_DCT_scaled_size; /* height of a row group of component */
253  xbuf0 = main->xbuffer[0][ci];
254  xbuf1 = main->xbuffer[1][ci];
255  for (i = 0; i < rgroup; i++) {
256  xbuf0[i - rgroup] = xbuf0[rgroup*(M+1) + i];
257  xbuf1[i - rgroup] = xbuf1[rgroup*(M+1) + i];
258  xbuf0[rgroup*(M+2) + i] = xbuf0[i];
259  xbuf1[rgroup*(M+2) + i] = xbuf1[i];
260  }
261  }
262 }
int v_samp_factor
Definition: jpeglib.h:128
jpeg_component_info * comp_info
Definition: jpeglib.h:540
int i
Definition: rw_test.cpp:37
struct jpeg_d_main_controller * main
Definition: jpeglib.h:625
int min_DCT_scaled_size
Definition: jpeglib.h:583
Definition: jcmainct.cpp:28
int DCT_scaled_size
Definition: jpeglib.h:152
jpeg_component_info * compptr
Definition: jdct.h:102
my_main_controller * my_main_ptr
Definition: jdmainct.cpp:134
int main(int argc, char **argv)
Definition: agent_001.cpp:50
JSAMPROW * JSAMPARRAY
Definition: jpeglib.h:72
Definition: jpeglib.h:121
JSAMPIMAGE xbuffer[2]
Definition: jdmainct.cpp:126
static void set_bottom_pointers ( j_decompress_ptr  cinfo)
static
271 {
272  my_main_ptr main = (my_main_ptr) cinfo->main;
273  int ci, i, rgroup, iMCUheight, rows_left;
275  JSAMPARRAY xbuf;
276 
277  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
278  ci++, compptr++) {
279  /* Count sample rows in one iMCU row and in one row group */
280  iMCUheight = compptr->v_samp_factor * compptr->DCT_scaled_size;
281  rgroup = iMCUheight / cinfo->min_DCT_scaled_size;
282  /* Count nondummy sample rows remaining for this component */
283  rows_left = (int) (compptr->downsampled_height % (JDIMENSION) iMCUheight);
284  if (rows_left == 0) rows_left = iMCUheight;
285  /* Count nondummy row groups. Should get same answer for each component,
286  * so we need only do it once.
287  */
288  if (ci == 0) {
289  main->rowgroups_avail = (JDIMENSION) ((rows_left-1) / rgroup + 1);
290  }
291  /* Duplicate the last real sample row rgroup*2 times; this pads out the
292  * last partial rowgroup and ensures at least one full rowgroup of context.
293  */
294  xbuf = main->xbuffer[main->whichptr][ci];
295  for (i = 0; i < rgroup * 2; i++) {
296  xbuf[rows_left + i] = xbuf[rows_left-1];
297  }
298  }
299 }
int v_samp_factor
Definition: jpeglib.h:128
jpeg_component_info * comp_info
Definition: jpeglib.h:540
int i
Definition: rw_test.cpp:37
JDIMENSION rowgroups_avail
Definition: jdmainct.cpp:130
struct jpeg_d_main_controller * main
Definition: jpeglib.h:625
int min_DCT_scaled_size
Definition: jpeglib.h:583
Definition: jcmainct.cpp:28
int DCT_scaled_size
Definition: jpeglib.h:152
jpeg_component_info * compptr
Definition: jdct.h:102
my_main_controller * my_main_ptr
Definition: jdmainct.cpp:134
int whichptr
Definition: jdmainct.cpp:128
int main(int argc, char **argv)
Definition: agent_001.cpp:50
JSAMPROW * JSAMPARRAY
Definition: jpeglib.h:72
Definition: jpeglib.h:121
JSAMPIMAGE xbuffer[2]
Definition: jdmainct.cpp:126
unsigned int JDIMENSION
Definition: jmorecfg.h:171
JDIMENSION downsampled_height
Definition: jpeglib.h:160
static void start_pass_main ( j_decompress_ptr  cinfo,
J_BUF_MODE  pass_mode 
)
static
308 {
309  my_main_ptr main = (my_main_ptr) cinfo->main;
310 
311  switch (pass_mode) {
312  case JBUF_PASS_THRU:
313  if (cinfo->upsample->need_context_rows) {
314  main->pub.process_data = process_data_context_main;
315  make_funny_pointers(cinfo); /* Create the xbuffer[] lists */
316  main->whichptr = 0; /* Read first iMCU row into xbuffer[0] */
318  main->iMCU_row_ctr = 0;
319  } else {
320  /* Simple case with no context needed */
321  main->pub.process_data = process_data_simple_main;
322  }
323  main->buffer_full = FALSE; /* Mark buffer empty */
324  main->rowgroup_ctr = 0;
325  break;
326 #ifdef QUANT_2PASS_SUPPORTED
327  case JBUF_CRANK_DEST:
328  /* For last pass of 2-pass quantization, just crank the postprocessor */
329  main->pub.process_data = process_data_crank_post;
330  break;
331 #endif
332  default:
334  break;
335  }
336 }
struct jpeg_c_main_controller pub
Definition: jcmainct.cpp:29
Definition: jerror.h:46
boolean buffer_full
Definition: jdmainct.cpp:120
Definition: jpegint.h:20
struct jpeg_d_main_controller * main
Definition: jpeglib.h:625
Definition: jcmainct.cpp:28
int context_state
Definition: jdmainct.cpp:129
#define ERREXIT(cinfo, code)
Definition: jerror.h:205
JDIMENSION rowgroup_ctr
Definition: jcmainct.cpp:32
my_main_controller * my_main_ptr
Definition: jdmainct.cpp:134
static void process_data_crank_post(j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
Definition: jdmainct.cpp:459
#define FALSE
Definition: jpleph.cpp:69
int whichptr
Definition: jdmainct.cpp:128
int main(int argc, char **argv)
Definition: agent_001.cpp:50
static void make_funny_pointers(j_decompress_ptr cinfo)
Definition: jdmainct.cpp:195
static void process_data_simple_main(j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
Definition: jdmainct.cpp:345
struct jpeg_upsampler * upsample
Definition: jpeglib.h:632
JDIMENSION iMCU_row_ctr
Definition: jdmainct.cpp:131
boolean need_context_rows
Definition: jpegint.h:242
#define CTX_PREPARE_FOR_IMCU
Definition: jdmainct.cpp:137
Definition: jpegint.h:17
static void process_data_context_main(j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
Definition: jdmainct.cpp:385
void jinit_d_main_controller ( j_decompress_ptr  cinfo,
boolean  need_full_buffer 
)
477 {
479  int ci, rgroup, ngroups;
481 
482  main = (my_main_ptr)
483  (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
485  cinfo->main = (struct jpeg_d_main_controller *) main;
486  main->pub.start_pass = start_pass_main;
487 
488  if (need_full_buffer) /* shouldn't happen */
490 
491  /* Allocate the workspace.
492  * ngroups is the number of row groups we need.
493  */
494  if (cinfo->upsample->need_context_rows) {
495  if (cinfo->min_DCT_scaled_size < 2) /* unsupported, see comments above */
496  ERREXIT(cinfo, JERR_NOTIMPL);
497  alloc_funny_pointers(cinfo); /* Alloc space for xbuffer[] lists */
498  ngroups = cinfo->min_DCT_scaled_size + 2;
499  } else {
500  ngroups = cinfo->min_DCT_scaled_size;
501  }
502 
503  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
504  ci++, compptr++) {
505  rgroup = (compptr->v_samp_factor * compptr->DCT_scaled_size) /
506  cinfo->min_DCT_scaled_size; /* height of a row group of component */
507  main->buffer[ci] = (*cinfo->mem->alloc_sarray)
508  ((j_common_ptr) cinfo, JPOOL_IMAGE,
509  compptr->width_in_blocks * compptr->DCT_scaled_size,
510  (JDIMENSION) (rgroup * ngroups));
511  }
512 }
int v_samp_factor
Definition: jpeglib.h:128
struct jpeg_c_main_controller pub
Definition: jcmainct.cpp:29
Definition: jerror.h:46
jpeg_component_info * comp_info
Definition: jpeglib.h:540
struct jpeg_d_main_controller * main
Definition: jpeglib.h:625
struct jpeg_common_struct * j_common_ptr
Definition: jpeglib.h:266
int min_DCT_scaled_size
Definition: jpeglib.h:583
static void start_pass_main(j_decompress_ptr cinfo, J_BUF_MODE pass_mode)
Definition: jdmainct.cpp:307
void *(* alloc_small)()
Definition: jpeglib.h:764
Definition: jcmainct.cpp:28
int DCT_scaled_size
Definition: jpeglib.h:152
#define ERREXIT(cinfo, code)
Definition: jerror.h:205
#define SIZEOF(object)
Definition: jinclude.h:80
boolean need_full_buffer
Definition: jpegint.h:338
jpeg_component_info * compptr
Definition: jdct.h:102
JDIMENSION width_in_blocks
Definition: jpeglib.h:144
#define JPOOL_IMAGE
Definition: jpeglib.h:754
my_main_controller * my_main_ptr
Definition: jdmainct.cpp:134
struct jpeg_memory_mgr * mem
Definition: jpeglib.h:417
Definition: jpegint.h:158
int main(int argc, char **argv)
Definition: agent_001.cpp:50
Definition: jerror.h:94
static void alloc_funny_pointers(j_decompress_ptr cinfo)
Definition: jdmainct.cpp:157
JSAMPARRAY buffer[10]
Definition: jcmainct.cpp:40
Definition: jpeglib.h:121
struct jpeg_upsampler * upsample
Definition: jpeglib.h:632
boolean need_context_rows
Definition: jpegint.h:242
JSAMPARRAY(* alloc_sarray)()
Definition: jpeglib.h:769
unsigned int JDIMENSION
Definition: jmorecfg.h:171