114 if ((outfile = fopen(filename,
"wb")) == NULL) {
115 fprintf(stderr,
"can't open %s\n", filename);
270 (*cinfo->err->output_message) (cinfo);
307 fprintf(stderr,
"can't open %s\n",
filename);
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)
struct jpeg_error_mgr pub
jpeg_destroy_compress(j_compress_ptr cinfo)
jpeg_stdio_dest(j_compress_ptr cinfo, FILE *outfile)
read_JPEG_file(char *filename)
jpeg_start_compress(j_compress_ptr cinfo, boolean write_all_tables)
J_COLOR_SPACE in_color_space
#define jpeg_create_decompress(cinfo)
typedef void(PNGAPI *png_error_ptr) PNGARG((png_structp
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)
write_JPEG_file(char *filename, int quality)
jpeg_destroy_decompress(j_decompress_ptr cinfo)
struct my_error_mgr * my_error_ptr
jpeg_read_scanlines(j_decompress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION max_lines)
JDIMENSION output_scanline
png_infop png_bytep buffer
#define jpeg_create_compress(cinfo)
my_error_exit(j_common_ptr cinfo)
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)