Main MRPT website > C++ reference for MRPT 1.9.9
jdmainct.cpp
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #define JPEG_INTERNALS
11 #include "jinclude.h"
12 #include "mrpt_jpeglib.h"
13 
14 /*
15  * In the current system design, the main buffer need never be a full-image
16  * buffer; any full-height buffers will be found inside the coefficient or
17  * postprocessing controllers. Nonetheless, the main controller is not
18  * trivial. Its responsibility is to provide context rows for upsampling/
19  * rescaling, and doing this in an efficient fashion is a bit tricky.
20  *
21  * Postprocessor input data is counted in "row groups". A row group
22  * is defined to be (v_samp_factor * DCT_scaled_size / min_DCT_scaled_size)
23  * sample rows of each component. (We require DCT_scaled_size values to be
24  * chosen such that these numbers are integers. In practice DCT_scaled_size
25  * values will likely be powers of two, so we actually have the stronger
26  * condition that DCT_scaled_size / min_DCT_scaled_size is an integer.)
27  * Upsampling will typically produce max_v_samp_factor pixel rows from each
28  * row group (times any additional scale factor that the upsampler is
29  * applying).
30  *
31  * The coefficient controller will deliver data to us one iMCU row at a time;
32  * each iMCU row contains v_samp_factor * DCT_scaled_size sample rows, or
33  * exactly min_DCT_scaled_size row groups. (This amount of data corresponds
34  * to one row of MCUs when the image is fully interleaved.) Note that the
35  * number of sample rows varies across components, but the number of row
36  * groups does not. Some garbage sample rows may be included in the last iMCU
37  * row at the bottom of the image.
38  *
39  * Depending on the vertical scaling algorithm used, the upsampler may need
40  * access to the sample row(s) above and below its current input row group.
41  * The upsampler is required to set need_context_rows TRUE at global selection
42  * time if so. When need_context_rows is FALSE, this controller can simply
43  * obtain one iMCU row at a time from the coefficient controller and dole it
44  * out as row groups to the postprocessor.
45  *
46  * When need_context_rows is TRUE, this controller guarantees that the buffer
47  * passed to postprocessing contains at least one row group's worth of samples
48  * above and below the row group(s) being processed. Note that the context
49  * rows "above" the first passed row group appear at negative row offsets in
50  * the passed buffer. At the top and bottom of the image, the required
51  * context rows are manufactured by duplicating the first or last real sample
52  * row; this avoids having special cases in the upsampling inner loops.
53  *
54  * The amount of context is fixed at one row group just because that's a
55  * convenient number for this controller to work with. The existing
56  * upsamplers really only need one sample row of context. An upsampler
57  * supporting arbitrary output rescaling might wish for more than one row
58  * group of context when shrinking the image; tough, we don't handle that.
59  * (This is justified by the assumption that downsizing will be handled mostly
60  * by adjusting the DCT_scaled_size values, so that the actual scale factor at
61  * the upsample step needn't be much less than one.)
62  *
63  * To provide the desired context, we have to retain the last two row groups
64  * of one iMCU row while reading in the next iMCU row. (The last row group
65  * can't be processed until we have another row group for its below-context,
66  * and so we have to save the next-to-last group too for its above-context.)
67  * We could do this most simply by copying data around in our buffer, but
68  * that'd be very slow. We can avoid copying any data by creating a rather
69  * strange pointer structure. Here's how it works. We allocate a workspace
70  * consisting of M+2 row groups (where M = min_DCT_scaled_size is the number
71  * of row groups per iMCU row). We create two sets of redundant pointers to
72  * the workspace. Labeling the physical row groups 0 to M+1, the synthesized
73  * pointer lists look like this:
74  * M+1 M-1
75  * master pointer --> 0 master pointer --> 0
76  * 1 1
77  * ... ...
78  * M-3 M-3
79  * M-2 M
80  * M-1 M+1
81  * M M-2
82  * M+1 M-1
83  * 0 0
84  * We read alternate iMCU rows using each master pointer; thus the last two
85  * row groups of the previous iMCU row remain un-overwritten in the workspace.
86  * The pointer lists are set up so that the required context rows appear to
87  * be adjacent to the proper places when we pass the pointer lists to the
88  * upsampler.
89  *
90  * The above pictures describe the normal state of the pointer lists.
91  * At top and bottom of the image, we diddle the pointer lists to duplicate
92  * the first or last sample row as necessary (this is cheaper than copying
93  * sample rows around).
94  *
95  * This scheme breaks down if M < 2, ie, min_DCT_scaled_size is 1. In that
96  * situation each iMCU row provides only one row group so the buffering logic
97  * must be different (eg, we must read two iMCU rows before we can emit the
98  * first row group). For now, we simply do not support providing context
99  * rows when min_DCT_scaled_size is 1. That combination seems unlikely to
100  * be worth providing --- if someone wants a 1/8th-size preview, they probably
101  * want it quick and dirty, so a context-free upsampler is sufficient.
102  */
103 
104 /* Private buffer controller object */
105 
106 typedef struct
107 {
108  struct jpeg_d_main_controller pub; /* public fields */
109 
110  /* Pointer to allocated workspace (M or M+2 row groups). */
112 
113  boolean buffer_full; /* Have we gotten an iMCU row from decoder? */
114  JDIMENSION rowgroup_ctr; /* counts row groups output to postprocessor */
115 
116  /* Remaining fields are only used in the context case. */
117 
118  /* These are the master pointers to the funny-order pointer lists. */
119  JSAMPIMAGE xbuffer[2]; /* pointers to weird pointer lists */
120 
121  int whichptr; /* indicates which pointer set is now in use */
122  int context_state; /* process_data state machine status */
123  JDIMENSION rowgroups_avail; /* row groups available to postprocessor */
124  JDIMENSION iMCU_row_ctr; /* counts iMCU rows to detect image top/bot */
126 
128 
129 /* context_state values: */
130 #define CTX_PREPARE_FOR_IMCU 0 /* need to prepare for MCU row */
131 #define CTX_PROCESS_IMCU 1 /* feeding iMCU to postprocessor */
132 #define CTX_POSTPONED_ROW 2 /* feeding postponed row group */
133 
134 /* Forward declarations */
135 METHODDEF(void)
137  (j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION* out_row_ctr,
138  JDIMENSION out_rows_avail));
139 METHODDEF(void)
141  (j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION* out_row_ctr,
142  JDIMENSION out_rows_avail));
143 #ifdef QUANT_2PASS_SUPPORTED
144 METHODDEF(void)
146  (j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION* out_row_ctr,
147  JDIMENSION out_rows_avail));
148 #endif
149 
150 LOCAL(void)
152 /* Allocate space for the funny pointer lists.
153  * This is done only once, not once per pass.
154  */
155 {
156  my_main_ptr main = (my_main_ptr)cinfo->main;
157  int ci, rgroup;
158  int M = cinfo->min_DCT_scaled_size;
160  JSAMPARRAY xbuf;
161 
162  /* Get top-level space for component array pointers.
163  * We alloc both arrays with one call to save a few cycles.
164  */
165  main->xbuffer[0] = (JSAMPIMAGE)(*cinfo->mem->alloc_small)(
166  (j_common_ptr)cinfo, JPOOL_IMAGE,
167  cinfo->num_components * 2 * SIZEOF(JSAMPARRAY));
168  main->xbuffer[1] = main->xbuffer[0] + cinfo->num_components;
169 
170  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
171  ci++, compptr++)
172  {
173  rgroup =
175  cinfo->min_DCT_scaled_size; /* height of a row group of component */
176  /* Get space for pointer lists --- M+4 row groups in each list.
177  * We alloc both pointer lists with one call to save a few cycles.
178  */
179  xbuf = (JSAMPARRAY)(*cinfo->mem->alloc_small)(
180  (j_common_ptr)cinfo, JPOOL_IMAGE,
181  2 * (rgroup * (M + 4)) * SIZEOF(JSAMPROW));
182  xbuf += rgroup; /* want one row group at negative offsets */
183  main->xbuffer[0][ci] = xbuf;
184  xbuf += rgroup * (M + 4);
185  main->xbuffer[1][ci] = xbuf;
186  }
187 }
188 
189 LOCAL(void)
191 /* Create the funny pointer lists discussed in the comments above.
192  * The actual workspace is already allocated (in main->buffer),
193  * and the space for the pointer lists is allocated too.
194  * This routine just fills in the curiously ordered lists.
195  * This will be repeated at the beginning of each pass.
196  */
197 {
198  my_main_ptr main = (my_main_ptr)cinfo->main;
199  int ci, i, rgroup;
200  int M = cinfo->min_DCT_scaled_size;
202  JSAMPARRAY buf, xbuf0, xbuf1;
203 
204  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
205  ci++, compptr++)
206  {
207  rgroup =
209  cinfo->min_DCT_scaled_size; /* height of a row group of component */
210  xbuf0 = main->xbuffer[0][ci];
211  xbuf1 = main->xbuffer[1][ci];
212  /* First copy the workspace pointers as-is */
213  buf = main->buffer[ci];
214  for (i = 0; i < rgroup * (M + 2); i++)
215  {
216  xbuf0[i] = xbuf1[i] = buf[i];
217  }
218  /* In the second list, put the last four row groups in swapped order */
219  for (i = 0; i < rgroup * 2; i++)
220  {
221  xbuf1[rgroup * (M - 2) + i] = buf[rgroup * M + i];
222  xbuf1[rgroup * M + i] = buf[rgroup * (M - 2) + i];
223  }
224  /* The wraparound pointers at top and bottom will be filled later
225  * (see set_wraparound_pointers, below). Initially we want the "above"
226  * pointers to duplicate the first actual data line. This only needs
227  * to happen in xbuffer[0].
228  */
229  for (i = 0; i < rgroup; i++)
230  {
231  xbuf0[i - rgroup] = xbuf0[0];
232  }
233  }
234 }
235 
236 LOCAL(void)
238 /* Set up the "wraparound" pointers at top and bottom of the pointer lists.
239  * This changes the pointer list state from top-of-image to the normal state.
240  */
241 {
242  my_main_ptr main = (my_main_ptr)cinfo->main;
243  int ci, i, rgroup;
244  int M = cinfo->min_DCT_scaled_size;
246  JSAMPARRAY xbuf0, xbuf1;
247 
248  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
249  ci++, compptr++)
250  {
251  rgroup =
253  cinfo->min_DCT_scaled_size; /* height of a row group of component */
254  xbuf0 = main->xbuffer[0][ci];
255  xbuf1 = main->xbuffer[1][ci];
256  for (i = 0; i < rgroup; i++)
257  {
258  xbuf0[i - rgroup] = xbuf0[rgroup * (M + 1) + i];
259  xbuf1[i - rgroup] = xbuf1[rgroup * (M + 1) + i];
260  xbuf0[rgroup * (M + 2) + i] = xbuf0[i];
261  xbuf1[rgroup * (M + 2) + i] = xbuf1[i];
262  }
263  }
264 }
265 
266 LOCAL(void)
268 /* Change the pointer lists to duplicate the last sample row at the bottom
269  * of the image. whichptr indicates which xbuffer holds the final iMCU row.
270  * Also sets rowgroups_avail to indicate number of nondummy row groups in row.
271  */
272 {
273  my_main_ptr main = (my_main_ptr)cinfo->main;
274  int ci, i, rgroup, iMCUheight, rows_left;
276  JSAMPARRAY xbuf;
277 
278  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
279  ci++, compptr++)
280  {
281  /* Count sample rows in one iMCU row and in one row group */
282  iMCUheight = compptr->v_samp_factor * compptr->DCT_scaled_size;
283  rgroup = iMCUheight / cinfo->min_DCT_scaled_size;
284  /* Count nondummy sample rows remaining for this component */
285  rows_left = (int)(compptr->downsampled_height % (JDIMENSION)iMCUheight);
286  if (rows_left == 0) rows_left = iMCUheight;
287  /* Count nondummy row groups. Should get same answer for each
288  * component,
289  * so we need only do it once.
290  */
291  if (ci == 0)
292  {
293  main->rowgroups_avail = (JDIMENSION)((rows_left - 1) / rgroup + 1);
294  }
295  /* Duplicate the last real sample row rgroup*2 times; this pads out the
296  * last partial rowgroup and ensures at least one full rowgroup of
297  * context.
298  */
299  xbuf = main->xbuffer[main->whichptr][ci];
300  for (i = 0; i < rgroup * 2; i++)
301  {
302  xbuf[rows_left + i] = xbuf[rows_left - 1];
303  }
304  }
305 }
306 
307 /*
308  * Initialize for a processing pass.
309  */
310 
311 METHODDEF(void)
313 {
314  my_main_ptr main = (my_main_ptr)cinfo->main;
315 
316  switch (pass_mode)
317  {
318  case JBUF_PASS_THRU:
319  if (cinfo->upsample->need_context_rows)
320  {
321  main->pub.process_data = process_data_context_main;
322  make_funny_pointers(cinfo); /* Create the xbuffer[] lists */
323  main->whichptr = 0; /* Read first iMCU row into xbuffer[0] */
325  main->iMCU_row_ctr = 0;
326  }
327  else
328  {
329  /* Simple case with no context needed */
330  main->pub.process_data = process_data_simple_main;
331  }
332  main->buffer_full = FALSE; /* Mark buffer empty */
333  main->rowgroup_ctr = 0;
334  break;
335 #ifdef QUANT_2PASS_SUPPORTED
336  case JBUF_CRANK_DEST:
337  /* For last pass of 2-pass quantization, just crank the
338  * postprocessor */
339  main->pub.process_data = process_data_crank_post;
340  break;
341 #endif
342  default:
343  ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
344  break;
345  }
346 }
347 
348 /*
349  * Process some data.
350  * This handles the simple case where no context is required.
351  */
352 
353 METHODDEF(void)
355  j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION* out_row_ctr,
356  JDIMENSION out_rows_avail)
357 {
358  my_main_ptr main = (my_main_ptr)cinfo->main;
359  JDIMENSION rowgroups_avail;
360 
361  /* Read input data if we haven't filled the main buffer yet */
362  if (!main->buffer_full)
363  {
364  if (!(*cinfo->coef->decompress_data)(cinfo, main->buffer))
365  return; /* suspension forced, can do nothing more */
366  main->buffer_full = TRUE; /* OK, we have an iMCU row to work with */
367  }
368 
369  /* There are always min_DCT_scaled_size row groups in an iMCU row. */
370  rowgroups_avail = (JDIMENSION)cinfo->min_DCT_scaled_size;
371  /* Note: at the bottom of the image, we may pass extra garbage row groups
372  * to the postprocessor. The postprocessor has to check for bottom
373  * of image anyway (at row resolution), so no point in us doing it too.
374  */
375 
376  /* Feed the postprocessor */
377  (*cinfo->post->post_process_data)(
378  cinfo, main->buffer, &main->rowgroup_ctr, rowgroups_avail, output_buf,
379  out_row_ctr, out_rows_avail);
380 
381  /* Has postprocessor consumed all the data yet? If so, mark buffer empty */
382  if (main->rowgroup_ctr >= rowgroups_avail)
383  {
384  main->buffer_full = FALSE;
385  main->rowgroup_ctr = 0;
386  }
387 }
388 
389 /*
390  * Process some data.
391  * This handles the case where context rows must be provided.
392  */
393 
394 METHODDEF(void)
396  j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION* out_row_ctr,
397  JDIMENSION out_rows_avail)
398 {
399  my_main_ptr main = (my_main_ptr)cinfo->main;
400 
401  /* Read input data if we haven't filled the main buffer yet */
402  if (!main->buffer_full)
403  {
404  if (!(*cinfo->coef->decompress_data)(
405  cinfo, main->xbuffer[main->whichptr]))
406  return; /* suspension forced, can do nothing more */
407  main->buffer_full = TRUE; /* OK, we have an iMCU row to work with */
408  main->iMCU_row_ctr++; /* count rows received */
409  }
410 
411  /* Postprocessor typically will not swallow all the input data it is handed
412  * in one call (due to filling the output buffer first). Must be prepared
413  * to exit and restart. This switch lets us keep track of how far we got.
414  * Note that each case falls through to the next on successful completion.
415  */
416  switch (main->context_state)
417  {
418  case CTX_POSTPONED_ROW:
419  /* Call postprocessor using previously set pointers for postponed
420  * row */
421  (*cinfo->post->post_process_data)(
422  cinfo, main->xbuffer[main->whichptr], &main->rowgroup_ctr,
423  main->rowgroups_avail, output_buf, out_row_ctr, out_rows_avail);
424  if (main->rowgroup_ctr < main->rowgroups_avail)
425  return; /* Need to suspend */
427  if (*out_row_ctr >= out_rows_avail)
428  return; /* Postprocessor exactly filled output buf */
429  /*FALLTHROUGH*/
431  /* Prepare to process first M-1 row groups of this iMCU row */
432  main->rowgroup_ctr = 0;
433  main->rowgroups_avail =
434  (JDIMENSION)(cinfo->min_DCT_scaled_size - 1);
435  /* Check for bottom of image: if so, tweak pointers to "duplicate"
436  * the last sample row, and adjust rowgroups_avail to ignore padding
437  * rows.
438  */
439  if (main->iMCU_row_ctr == cinfo->total_iMCU_rows)
440  set_bottom_pointers(cinfo);
442  /*FALLTHROUGH*/
443  case CTX_PROCESS_IMCU:
444  /* Call postprocessor using previously set pointers */
445  (*cinfo->post->post_process_data)(
446  cinfo, main->xbuffer[main->whichptr], &main->rowgroup_ctr,
447  main->rowgroups_avail, output_buf, out_row_ctr, out_rows_avail);
448  if (main->rowgroup_ctr < main->rowgroups_avail)
449  return; /* Need to suspend */
450  /* After the first iMCU, change wraparound pointers to normal state
451  */
452  if (main->iMCU_row_ctr == 1) set_wraparound_pointers(cinfo);
453  /* Prepare to load new iMCU row using other xbuffer list */
454  main->whichptr ^= 1; /* 0=>1 or 1=>0 */
455  main->buffer_full = FALSE;
456  /* Still need to process last row group of this iMCU row, */
457  /* which is saved at index M+1 of the other xbuffer */
458  main->rowgroup_ctr = (JDIMENSION)(cinfo->min_DCT_scaled_size + 1);
459  main->rowgroups_avail =
460  (JDIMENSION)(cinfo->min_DCT_scaled_size + 2);
462  }
463 }
464 
465 /*
466  * Process some data.
467  * Final pass of two-pass quantization: just call the postprocessor.
468  * Source data will be the postprocessor controller's internal buffer.
469  */
470 
471 #ifdef QUANT_2PASS_SUPPORTED
472 
473 METHODDEF(void)
475  j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION* out_row_ctr,
476  JDIMENSION out_rows_avail)
477 {
478  (*cinfo->post->post_process_data)(
479  cinfo, (JSAMPIMAGE) nullptr, (JDIMENSION*)nullptr, (JDIMENSION)0,
480  output_buf, out_row_ctr, out_rows_avail);
481 }
482 
483 #endif /* QUANT_2PASS_SUPPORTED */
484 
485 /*
486  * Initialize main buffer controller.
487  */
488 
489 GLOBAL(void)
490 jinit_d_main_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
491 {
492  my_main_ptr main;
493  int ci, rgroup, ngroups;
495 
496  main = (my_main_ptr)(*cinfo->mem->alloc_small)(
498  cinfo->main = (struct jpeg_d_main_controller*)main;
499  main->pub.start_pass = start_pass_main;
500 
501  if (need_full_buffer) /* shouldn't happen */
502  ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
503 
504  /* Allocate the workspace.
505  * ngroups is the number of row groups we need.
506  */
507  if (cinfo->upsample->need_context_rows)
508  {
509  if (cinfo->min_DCT_scaled_size <
510  2) /* unsupported, see comments above */
511  ERREXIT(cinfo, JERR_NOTIMPL);
512  alloc_funny_pointers(cinfo); /* Alloc space for xbuffer[] lists */
513  ngroups = cinfo->min_DCT_scaled_size + 2;
514  }
515  else
516  {
517  ngroups = cinfo->min_DCT_scaled_size;
518  }
519 
520  for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
521  ci++, compptr++)
522  {
523  rgroup =
525  cinfo->min_DCT_scaled_size; /* height of a row group of component */
526  main->buffer[ci] = (*cinfo->mem->alloc_sarray)(
527  (j_common_ptr)cinfo, JPOOL_IMAGE,
529  (JDIMENSION)(rgroup * ngroups));
530  }
531 }
process_data_simple_main(j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
Definition: jdmainct.cpp:354
struct jpeg_c_main_controller pub
Definition: jcmainct.cpp:25
process_data_crank_post(j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
Definition: jdmainct.cpp:474
GLuint buffer
Definition: glext.h:3917
JDIMENSION rowgroups_avail
Definition: jdmainct.cpp:123
struct jpeg_common_struct * j_common_ptr
Definition: mrpt_jpeglib.h:258
#define MAX_COMPONENTS
Definition: jmorecfg.h:30
start_pass_main(j_decompress_ptr cinfo, J_BUF_MODE pass_mode)
Definition: jdmainct.cpp:312
process_data_context_main(j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
Definition: jdmainct.cpp:395
#define ERREXIT(cinfo, code)
Definition: jerror.h:451
for(ctr=DCTSIZE;ctr > 0;ctr--)
Definition: jidctflt.cpp:56
#define SIZEOF(object)
Definition: jinclude.h:74
JSAMPLE FAR * JSAMPROW
Definition: mrpt_jpeglib.h:60
JDIMENSION rowgroup_ctr
Definition: jcmainct.cpp:28
JDIMENSION width_in_blocks
Definition: mrpt_jpeglib.h:132
my_main_controller * my_main_ptr
Definition: jdmainct.cpp:127
set_bottom_pointers(j_decompress_ptr cinfo)
Definition: jdmainct.cpp:267
JSAMPARRAY buffer[MAX_COMPONENTS]
Definition: jcmainct.cpp:36
process_data_simple_main JPP((j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail))
#define CTX_PROCESS_IMCU
Definition: jdmainct.cpp:131
#define FALSE
Definition: jmorecfg.h:216
jpeg_component_info JCOEFPTR JSAMPARRAY output_buf
Definition: jidctflt.cpp:36
#define JPOOL_IMAGE
Definition: mrpt_jpeglib.h:750
#define LOCAL(type)
Definition: jmorecfg.h:175
alloc_funny_pointers(j_decompress_ptr cinfo)
Definition: jdmainct.cpp:151
JSAMPROW * JSAMPARRAY
Definition: mrpt_jpeglib.h:61
jinit_d_main_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
Definition: jdmainct.cpp:490
#define TRUE
Definition: jmorecfg.h:219
JSAMPARRAY * JSAMPIMAGE
Definition: mrpt_jpeglib.h:62
make_funny_pointers(j_decompress_ptr cinfo)
Definition: jdmainct.cpp:190
#define GLOBAL(type)
Definition: jmorecfg.h:177
#define METHODDEF(type)
Definition: jmorecfg.h:173
JSAMPIMAGE xbuffer[2]
Definition: jdmainct.cpp:119
JDIMENSION iMCU_row_ctr
Definition: jdmainct.cpp:124
J_BUF_MODE
Definition: jpegint.h:12
#define CTX_PREPARE_FOR_IMCU
Definition: jdmainct.cpp:130
unsigned int JDIMENSION
Definition: jmorecfg.h:161
#define CTX_POSTPONED_ROW
Definition: jdmainct.cpp:132
set_wraparound_pointers(j_decompress_ptr cinfo)
Definition: jdmainct.cpp:237
jpeg_component_info * compptr
Definition: jidctflt.cpp:36
JDIMENSION downsampled_height
Definition: mrpt_jpeglib.h:149



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019