Doxygen Source Code Documentation
Main Page Alphabetical List Data Structures File List Data Fields Globals Search
jmemnobs.c
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #define JPEG_INTERNALS
00019 #include "jinclude.h"
00020 #include "jpeglib.h"
00021 #include "jmemsys.h"
00022
00023 #ifndef HAVE_STDLIB_H
00024 extern void * malloc JPP((size_t size));
00025 extern void free JPP((void *ptr));
00026 #endif
00027
00028
00029
00030
00031
00032
00033
00034 GLOBAL(void *)
00035 jpeg_get_small (j_common_ptr cinfo, size_t sizeofobject)
00036 {
00037 return (void *) malloc(sizeofobject);
00038 }
00039
00040 GLOBAL(void)
00041 jpeg_free_small (j_common_ptr cinfo, void * object, size_t sizeofobject)
00042 {
00043 free(object);
00044 }
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 GLOBAL(void FAR *)
00055 jpeg_get_large (j_common_ptr cinfo, size_t sizeofobject)
00056 {
00057 return (void FAR *) malloc(sizeofobject);
00058 }
00059
00060 GLOBAL(void)
00061 jpeg_free_large (j_common_ptr cinfo, void FAR * object, size_t sizeofobject)
00062 {
00063 free(object);
00064 }
00065
00066
00067
00068
00069
00070
00071
00072 GLOBAL(long)
00073 jpeg_mem_available (j_common_ptr cinfo, long min_bytes_needed,
00074 long max_bytes_needed, long already_allocated)
00075 {
00076 return max_bytes_needed;
00077 }
00078
00079
00080
00081
00082
00083
00084
00085
00086 GLOBAL(void)
00087 jpeg_open_backing_store (j_common_ptr cinfo, backing_store_ptr info,
00088 long total_bytes_needed)
00089 {
00090 ERREXIT(cinfo, JERR_NO_BACKING_STORE);
00091 }
00092
00093
00094
00095
00096
00097
00098
00099 GLOBAL(long)
00100 jpeg_mem_init (j_common_ptr cinfo)
00101 {
00102 return 0;
00103 }
00104
00105 GLOBAL(void)
00106 jpeg_mem_term (j_common_ptr cinfo)
00107 {
00108
00109 }