Lines Matching refs:JPEG
5 * to read or write JPEG image files. You should look at this code in
9 * skeleton for constructing routines that call the JPEG library.
11 * We present these routines in the same coding style used in the JPEG code
18 * commented skeleton code for calling the JPEG library." It is not meant to
26 * djpeg.c, interleave disk I/O with JPEG compression/decompression, so none of
33 * Include file for users of JPEG library.
51 /******************** JPEG COMPRESSION SAMPLE INTERFACE *******************/
53 /* This half of the example shows how to feed data into the JPEG compressor.
55 * as error recovery (the JPEG code will just exit() if it gets an error).
81 * Sample routine for JPEG compression. We assume that the target file name
88 /* This struct contains the JPEG compression parameters and pointers to
89 * working space (which is allocated as needed by the JPEG library).
92 * to any one struct (and its associated working data) as a "JPEG object".
95 /* This struct represents a JPEG error handler. It is declared separately
100 * Note that this struct must live as long as the main JPEG parameter
109 /* Step 1: allocate and initialize JPEG compression object */
117 /* Now we can initialize the JPEG compression object. */
151 jpeg_set_quality(&cinfo, quality, TRUE /* limit to baseline-JPEG values */);
155 /* TRUE ensures that we will write a complete interchange-JPEG file.
185 /* Step 7: release JPEG compression object */
209 * optimization or a multi-scan JPEG file), it will create temporary
215 * Scanlines MUST be supplied in top-to-bottom order if you want your JPEG
219 * source data using the JPEG code's internal virtual-array mechanisms.
224 /******************** JPEG DECOMPRESSION SAMPLE INTERFACE *******************/
226 /* This half of the example shows how to read data from the JPEG decompressor.
228 * (a) how to modify the JPEG library's standard error-reporting behavior;
234 * scanline-high JSAMPLE array as a work buffer, and we will let the JPEG
237 * will go away automatically when the JPEG object is cleaned up.
244 * The JPEG library's standard error handler (jerror.c) is divided into
254 * routine which calls the JPEG library must first execute a setjmp() call to
258 * standard JPEG error handler object. (If we were using C++, we'd say we
295 * Sample routine for JPEG decompression. We assume that the source file name
302 /* This struct contains the JPEG decompression parameters and pointers to
303 * working space (which is allocated as needed by the JPEG library).
321 /* We use our private extension JPEG error handler.
322 * Note that this struct must live as long as the main JPEG parameter
342 /* Step 1: allocate and initialize JPEG decompression object */
344 /* We set up the normal JPEG error routines, then override error_exit. */
349 /* If we get here, the JPEG code has signaled an error.
350 * We need to clean up the JPEG object, close the input file, and return.
356 /* Now we can initialize the JPEG decompression object. */
368 * (b) we passed TRUE to reject a tables-only JPEG file as an error.
420 /* Step 8: Release JPEG decompression object */
426 * Here we postpone it until after no more JPEG errors are possible,
451 * counted against the JPEG max_memory setting. In some systems the above
456 * Scanlines are returned in the same order as they appear in the JPEG file,
458 * you can use one of the virtual arrays provided by the JPEG memory manager