Home | History | Annotate | Download | only in jpeg

Lines Matching full: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
19 * Include file for users of JPEG library.
37 /******************** JPEG COMPRESSION SAMPLE INTERFACE *******************/
39 /* This half of the example shows how to feed data into the JPEG compressor.
41 * as error recovery (the JPEG code will just exit() if it gets an error).
67 * Sample routine for JPEG compression. We assume that the target file name
74 /* This struct contains the JPEG compression parameters and pointers to
75 * working space (which is allocated as needed by the JPEG library).
78 * to any one struct (and its associated working data) as a "JPEG object".
81 /* This struct represents a JPEG error handler. It is declared separately
86 * Note that this struct must live as long as the main JPEG parameter
95 /* Step 1: allocate and initialize JPEG compression object */
103 /* Now we can initialize the JPEG compression object. */
137 jpeg_set_quality(&cinfo, quality, TRUE /* limit to baseline-JPEG values */);
141 /* TRUE ensures that we will write a complete interchange-JPEG file.
171 /* Step 7: release JPEG compression object */
195 * optimization or a multi-scan JPEG file), it will create temporary
201 * Scanlines MUST be supplied in top-to-bottom order if you want your JPEG
205 * source data using the JPEG code's internal virtual-array mechanisms.
210 /******************** JPEG DECOMPRESSION SAMPLE INTERFACE *******************/
212 /* This half of the example shows how to read data from the JPEG decompressor.
214 * (a) how to modify the JPEG library's standard error-reporting behavior;
220 * scanline-high JSAMPLE array as a work buffer, and we will let the JPEG
223 * will go away automatically when the JPEG object is cleaned up.
230 * The JPEG library's standard error handler (jerror.c) is divided into
240 * routine which calls the JPEG library must first execute a setjmp() call to
244 * standard JPEG error handler object. (If we were using C++, we'd say we
278 * Sample routine for JPEG decompression. We assume that the source file name
286 /* This struct contains the JPEG decompression parameters and pointers to
287 * working space (which is allocated as needed by the JPEG library).
290 /* We use our private extension JPEG error handler.
291 * Note that this struct must live as long as the main JPEG parameter
311 /* Step 1: allocate and initialize JPEG decompression object */
313 /* We set up the normal JPEG error routines, then override error_exit. */
318 /* If we get here, the JPEG code has signaled an error.
319 * We need to clean up the JPEG object, close the input file, and return.
325 /* Now we can initialize the JPEG decompression object. */
337 * (b) we passed TRUE to reject a tables-only JPEG file as an error.
389 /* Step 8: Release JPEG decompression object */
395 * Here we postpone it until after no more JPEG errors are possible,
420 * counted against the JPEG max_memory setting. In some systems the above
425 * Scanlines are returned in the same order as they appear in the JPEG file,
427 * you can use one of the virtual arrays provided by the JPEG memory manager