114 if ((outfile = fopen(filename,
"wb")) ==
NULL) {
115 fprintf(stderr,
"can't open %s\n", filename);
250 struct my_error_mgr {
253 jmp_buf setjmp_buffer;
270 (*cinfo->err->output_message) (cinfo);
273 longjmp(myerr->setjmp_buffer, 1);
294 struct my_error_mgr jerr;
307 fprintf(stderr,
"can't open %s\n",
filename);
317 if (setjmp(jerr.setjmp_buffer)) {
349 (
void) jpeg_start_decompress(&cinfo);
363 buffer = (*cinfo.mem->alloc_sarray)
379 put_scanline_someplace(
buffer[0], row_stride);
jpeg_read_header(j_decompress_ptr cinfo, boolean require_image)
jpeg_finish_compress(j_compress_ptr cinfo)
jpeg_destroy_compress(j_compress_ptr cinfo)
read_JPEG_file(char *filename)
jpeg_stdio_dest(j_compress_ptr cinfo, FILE *outfile)
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
jpeg_start_compress(j_compress_ptr cinfo, boolean write_all_tables)
J_COLOR_SPACE in_color_space
#define jpeg_create_decompress(cinfo)
write_JPEG_file(char *filename, int quality)
jpeg_stdio_src(j_decompress_ptr cinfo, FILE *infile)
jpeg_write_scanlines(j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines)
jpeg_finish_decompress(j_decompress_ptr cinfo)
jpeg_destroy_decompress(j_decompress_ptr cinfo)
jpeg_read_scanlines(j_decompress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION max_lines)
JDIMENSION output_scanline
my_error_exit(j_common_ptr cinfo)
#define jpeg_create_compress(cinfo)
struct my_error_mgr * my_error_ptr
jpeg_set_defaults(j_compress_ptr cinfo)
jpeg_std_error(struct jpeg_error_mgr *err)
jpeg_set_quality(j_compress_ptr cinfo, int quality, boolean force_baseline)