30#define READ_BINARY "r"
34#define READ_BINARY "rb", "ctx=stm"
35#define RW_BINARY "w+b", "ctx=stm"
37#define READ_BINARY "rb"
38#define RW_BINARY "w+b"
70#define TEMP_DIRECTORY "/usr/tmp/"
78#define TEMP_FILE_NAME "%sJPG%03d.TMP"
121#ifndef TEMP_FILE_NAME
122#define TEMP_FILE_NAME "%sJPG%dXXXXXX"
183#ifndef DEFAULT_MAX_MEM
184#define DEFAULT_MAX_MEM 1000000L
205 void FAR * buffer_address,
206 long file_offset,
long byte_count)
209 ERREXIT(cinfo, JERR_TFILE_SEEK);
210 if (
JFREAD(
info->temp_file, buffer_address, byte_count)
211 != (
size_t) byte_count)
212 ERREXIT(cinfo, JERR_TFILE_READ);
218 void FAR * buffer_address,
219 long file_offset,
long byte_count)
222 ERREXIT(cinfo, JERR_TFILE_SEEK);
223 if (
JFWRITE(
info->temp_file, buffer_address, byte_count)
224 != (
size_t) byte_count)
225 ERREXIT(cinfo, JERR_TFILE_WRITE);
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_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)
#define ERREXITS(cinfo, code, str)
#define TRACEMSS(cinfo, lvl, code, str)
#define JFWRITE(file, buf, sizeofbuf)
#define JFREAD(file, buf, sizeofbuf)
select_file_name(char *fname)
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
#define sprintf(buf, format,...)
_CRTIMP char *__cdecl mktemp(_Inout_z_ char *_TemplateName)