/* Expanded data destination object for stdio output */
extern "C" {
- typedef int(*int_jpeg_compress_struct)(jpeg_compress_struct*);
+ typedef unsigned char(*uc_jpeg_compress_struct)(jpeg_compress_struct*);
typedef void(*void_jpeg_compress_struct)(jpeg_compress_struct*);
}
dest = (my_dest_ptr) cinfo->dest;
dest->pub.init_destination = reinterpret_cast<void_jpeg_compress_struct>(init_destination);
- dest->pub.empty_output_buffer = reinterpret_cast<int_jpeg_compress_struct>(empty_output_buffer);
+ dest->pub.empty_output_buffer = reinterpret_cast<uc_jpeg_compress_struct>(empty_output_buffer);
dest->pub.term_destination = reinterpret_cast<void_jpeg_compress_struct>(term_destination);
dest->outfile = outfile;
}
/*
- * jdatasrc.c
+ * jdatasrc.cxx
*
* Copyright (C) 1994-1996, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
/* Expanded data source object for stdio input */
extern "C" {
- typedef int(*int_jpeg_decompress_struct)(jpeg_decompress_struct*);
+ typedef unsigned char(*uc_jpeg_decompress_struct)(jpeg_decompress_struct*);
typedef void(*void_jpeg_decompress_struct)(jpeg_decompress_struct*);
typedef void(*void_jpeg_decompress_struct_long)(jpeg_decompress_struct*,long);
}
src = (my_src_ptr) cinfo->src;
src->pub.init_source = reinterpret_cast<void_jpeg_decompress_struct>(init_source);
- src->pub.fill_input_buffer = reinterpret_cast<int_jpeg_decompress_struct>(fill_input_buffer);
+ src->pub.fill_input_buffer = reinterpret_cast<uc_jpeg_decompress_struct>(fill_input_buffer);
src->pub.skip_input_data = reinterpret_cast<void_jpeg_decompress_struct_long>(skip_input_data);
src->pub.resync_to_restart = jpeg_resync_to_restart; /* use default method */
src->pub.term_source = reinterpret_cast<void_jpeg_decompress_struct>(term_source);