76#ifndef DEFAULT_MAX_MEM
77#define DEFAULT_MAX_MEM 1000000L
98 void FAR * buffer_address,
99 long file_offset,
long byte_count)
102 ERREXIT(cinfo, JERR_TFILE_SEEK);
103 if (
JFREAD(
info->temp_file, buffer_address, byte_count)
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);
116 if (
JFWRITE(
info->temp_file, buffer_address, byte_count)
117 != (
size_t) byte_count)
118 ERREXIT(cinfo, JERR_TFILE_WRITE);
145 ERREXITS(cinfo, JERR_TFILE_CREATE,
"");
_Check_return_opt_ _CRTIMP int __cdecl fseek(_Inout_ FILE *_File, _In_ long _Offset, _In_ int _Origin)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl tmpfile(void)
#define ERREXITS(cinfo, code, str)
#define JFWRITE(file, buf, sizeofbuf)
#define JFREAD(file, buf, sizeofbuf)
write_backing_store(j_common_ptr cinfo, backing_store_ptr info, void FAR *buffer_address, long file_offset, long byte_count)
jpeg_free_large(j_common_ptr cinfo, void FAR *object, size_t sizeofobject)
jpeg_get_large(j_common_ptr cinfo, size_t sizeofobject)
jpeg_free_small(j_common_ptr cinfo, void *object, size_t sizeofobject)
close_backing_store(j_common_ptr cinfo, backing_store_ptr info)
jpeg_get_small(j_common_ptr cinfo, size_t sizeofobject)
jpeg_mem_term(j_common_ptr cinfo)
read_backing_store(j_common_ptr cinfo, backing_store_ptr info, void FAR *buffer_address, long file_offset, long byte_count)
jpeg_open_backing_store(j_common_ptr cinfo, backing_store_ptr info, long total_bytes_needed)
jpeg_mem_available(j_common_ptr cinfo, long min_bytes_needed, long max_bytes_needed, long already_allocated)
jpeg_mem_init(j_common_ptr cinfo)
long long max_bytes_needed
long long long already_allocated
backing_store_ptr long total_bytes_needed