Doxygen Source Code Documentation
jmemansi.c File Reference
#include "jinclude.h"#include "jpeglib.h"#include "jmemsys.h"Go to the source code of this file.
Define Documentation
|
|
Definition at line 77 of file jmemansi.c. Referenced by jpeg_mem_init(). |
|
|
Definition at line 15 of file jmemansi.c. |
|
|
Definition at line 26 of file jmemansi.c. Referenced by read_backing_store(), and write_backing_store(). |
Function Documentation
|
||||||||||||
|
Definition at line 123 of file jmemansi.c. References backing_store_struct::temp_file. Referenced by jpeg_open_backing_store().
00124 {
00125 fclose(info->temp_file);
00126 /* Since this implementation uses tmpfile() to create the file,
00127 * no explicit file deletion is needed.
00128 */
00129 }
|
|
||||||||||||||||
|
Definition at line 62 of file jmemansi.c. References free, object, and sizeofobject.
|
|
||||||||||||||||
|
Definition at line 42 of file jmemansi.c. References free, object, and sizeofobject.
|
|
||||||||||||
|
Definition at line 56 of file jmemansi.c. References malloc, and sizeofobject.
00057 {
00058 return (void FAR *) malloc(sizeofobject);
00059 }
|
|
||||||||||||
|
Definition at line 36 of file jmemansi.c. References malloc, and sizeofobject.
00037 {
00038 return (void *) malloc(sizeofobject);
00039 }
|
|
||||||||||||||||||||
|
Definition at line 81 of file jmemansi.c. References already_allocated, max_bytes_needed, and min_bytes_needed.
00083 {
00084 return cinfo->mem->max_memory_to_use - already_allocated;
00085 }
|
|
|
Definition at line 158 of file jmemansi.c. References DEFAULT_MAX_MEM.
00159 {
00160 return DEFAULT_MAX_MEM; /* default for max_memory_to_use */
00161 }
|
|
|
Definition at line 164 of file jmemansi.c.
00165 {
00166 /* no work */
00167 }
|
|
||||||||||||||||
|
Definition at line 141 of file jmemansi.c. References close_backing_store(), ERREXITS, read_backing_store(), backing_store_struct::temp_file, total_bytes_needed, and write_backing_store().
00143 {
00144 if ((info->temp_file = tmpfile()) == NULL)
00145 ERREXITS(cinfo, JERR_TFILE_CREATE, "");
00146 info->read_backing_store = read_backing_store;
00147 info->write_backing_store = write_backing_store;
00148 info->close_backing_store = close_backing_store;
00149 }
|
|
|
|
|
|
|
|
||||||||||||||||||||||||
|
Definition at line 97 of file jmemansi.c. References ERREXIT, JFREAD, SEEK_SET, and backing_store_struct::temp_file. Referenced by jpeg_open_backing_store().
|
|
||||||||||||||||||||||||
|
Definition at line 110 of file jmemansi.c. References ERREXIT, JERR_TFILE_WRITE, JFWRITE, SEEK_SET, and backing_store_struct::temp_file. Referenced by jpeg_open_backing_store().
|