15 #define JPEG_INTERNALS 29 #ifdef DONT_USE_B_MODE 30 #define READ_BINARY "r" 31 #define RW_BINARY "w+" 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" 69 #ifndef TEMP_DIRECTORY 70 #define TEMP_DIRECTORY "/usr/tmp/" 73 static int next_file_num;
77 #ifndef TEMP_FILE_NAME 78 #define TEMP_FILE_NAME "%sJPG%03d.TMP" 121 #ifndef TEMP_FILE_NAME 122 #define TEMP_FILE_NAME "%sJPG%dXXXXXX" 145 return (
void *)
malloc(sizeofobject);
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);
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);
224 != (
size_t) byte_count)
225 ERREXIT(cinfo, JERR_TFILE_WRITE);
select_file_name(char *fname)
char temp_name[TEMP_NAME_LENGTH]
jpeg_mem_init(j_common_ptr cinfo)
jpeg_free_small(j_common_ptr cinfo, void *object, size_t sizeofobject)
long long max_bytes_needed
jpeg_get_small(j_common_ptr cinfo, size_t sizeofobject)
jpeg_mem_term(j_common_ptr cinfo)
jpeg_open_backing_store(j_common_ptr cinfo, backing_store_ptr info, long total_bytes_needed)
jpeg_free_large(j_common_ptr cinfo, void FAR *object, size_t sizeofobject)
#define ERREXIT(cinfo, code)
#define JFREAD(file, buf, sizeofbuf)
#define JFWRITE(file, buf, sizeofbuf)
read_backing_store(j_common_ptr cinfo, backing_store_ptr info, void FAR *buffer_address, long file_offset, long byte_count)
backing_store_ptr long total_bytes_needed
#define TRACEMSS(cinfo, lvl, code, str)
jpeg_get_large(j_common_ptr cinfo, size_t sizeofobject)
long long long already_allocated
write_backing_store(j_common_ptr cinfo, backing_store_ptr info, void FAR *buffer_address, long file_offset, long byte_count)
jpeg_mem_available(j_common_ptr cinfo, long min_bytes_needed, long max_bytes_needed, long already_allocated)
close_backing_store(j_common_ptr cinfo, backing_store_ptr info)
#define ERREXITS(cinfo, code, str)