1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
27
28
29
33
34
35
39
40
41
47
48
49
53
54
55
59
60
61
65
66
67
68
72
73
74
79
80
81
82
86
87
88
92
93
94
98
99
100
/* ... */
#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"
#include "jmemsys.h"
/* ... */
GLOBAL(void *)
jpeg_get_small (j_common_ptr cinfo, size_t sizeofobject)
{
return (void *) JMALLOC(sizeofobject);
}{ ... }
GLOBAL(void)
jpeg_free_small (j_common_ptr cinfo, void * object, size_t sizeofobject)
{
JFREE(object);
}{ ... }
/* ... */
GLOBAL(void FAR *)
jpeg_get_large (j_common_ptr cinfo, size_t sizeofobject)
{
return (void FAR *) JMALLOC(sizeofobject);
}{ ... }
GLOBAL(void)
jpeg_free_large (j_common_ptr cinfo, void FAR * object, size_t sizeofobject)
{
JFREE(object);
}{ ... }
/* ... */
GLOBAL(long)
jpeg_mem_available (j_common_ptr cinfo, long min_bytes_needed,
long max_bytes_needed, long already_allocated)
{
return max_bytes_needed;
}{ ... }
/* ... */
GLOBAL(void)
jpeg_open_backing_store (j_common_ptr cinfo, backing_store_ptr info,
long total_bytes_needed)
{
ERREXIT(cinfo, JERR_NO_BACKING_STORE);
}{ ... }
/* ... */
GLOBAL(long)
jpeg_mem_init (j_common_ptr cinfo)
{
return 0;
}{ ... }
GLOBAL(void)
jpeg_mem_term (j_common_ptr cinfo)
{
}{ ... }