15 #define JPEG_INTERNALS
21 extern void * malloc
JPP((
size_t size));
22 extern void free
JPP((
void *ptr));
38 return (
void *) malloc(sizeofobject);
58 return (
void FAR *) malloc(sizeofobject);
76 #ifndef DEFAULT_MAX_MEM
77 #define DEFAULT_MAX_MEM 1000000L
82 long max_bytes_needed,
long already_allocated)
84 return cinfo->mem->max_memory_to_use - already_allocated;
98 void FAR * buffer_address,
99 long file_offset,
long byte_count)
102 ERREXIT(cinfo, JERR_TFILE_SEEK);
104 != (
size_t) byte_count)
105 ERREXIT(cinfo, JERR_TFILE_READ);
111 void FAR * buffer_address,
112 long file_offset,
long byte_count)
115 ERREXIT(cinfo, JERR_TFILE_SEEK);
117 != (
size_t) byte_count)
118 ERREXIT(cinfo, JERR_TFILE_WRITE);
142 long total_bytes_needed)
145 ERREXITS(cinfo, JERR_TFILE_CREATE,
"");
GLOBAL void jpeg_mem_term(j_common_ptr cinfo)
GLOBAL void jpeg_free_large(j_common_ptr cinfo, void FAR *object, size_t sizeofobject)
GLOBAL long jpeg_mem_init(j_common_ptr cinfo)
#define ERREXIT(cinfo, code)
#define JFREAD(file, buf, sizeofbuf)
#define JFWRITE(file, buf, sizeofbuf)
GLOBAL void jpeg_free_small(j_common_ptr cinfo, void *object, size_t sizeofobject)
GLOBAL void jpeg_open_backing_store(j_common_ptr cinfo, backing_store_ptr info, long total_bytes_needed)
GLOBAL long jpeg_mem_available(j_common_ptr cinfo, long min_bytes_needed, long max_bytes_needed, long already_allocated)
GLOBAL void * jpeg_get_small(j_common_ptr cinfo, size_t sizeofobject)
METHODDEF void close_backing_store(j_common_ptr cinfo, backing_store_ptr info)
METHODDEF void write_backing_store(j_common_ptr cinfo, backing_store_ptr info, void FAR *buffer_address, long file_offset, long byte_count)
METHODDEF void read_backing_store(j_common_ptr cinfo, backing_store_ptr info, void FAR *buffer_address, long file_offset, long byte_count)
GLOBAL void FAR * jpeg_get_large(j_common_ptr cinfo, size_t sizeofobject)
#define ERREXITS(cinfo, code, str)