ReactOS  0.4.14-dev-323-g6fe6a88
jmemnobs.c File Reference
#include "jinclude.h"
#include "jpeglib.h"
#include "jmemsys.h"
Include dependency graph for jmemnobs.c:

Go to the source code of this file.

Macros

#define JPEG_INTERNALS
 

Functions

void *malloc JPP ((size_t size))
 
void free JPP ((void *ptr))
 
 jpeg_get_small (j_common_ptr cinfo, size_t sizeofobject)
 
 jpeg_free_small (j_common_ptr cinfo, void *object, size_t sizeofobject)
 
 jpeg_get_large (j_common_ptr cinfo, size_t sizeofobject)
 
 jpeg_free_large (j_common_ptr cinfo, void FAR *object, size_t sizeofobject)
 
 jpeg_mem_available (j_common_ptr cinfo, long min_bytes_needed, long max_bytes_needed, long already_allocated)
 
 jpeg_open_backing_store (j_common_ptr cinfo, backing_store_ptr info, long total_bytes_needed)
 
 jpeg_mem_init (j_common_ptr cinfo)
 
 jpeg_mem_term (j_common_ptr cinfo)
 

Macro Definition Documentation

◆ JPEG_INTERNALS

#define JPEG_INTERNALS

Definition at line 18 of file jmemnobs.c.

Function Documentation

◆ jpeg_free_large()

jpeg_free_large ( j_common_ptr  cinfo,
void FAR object,
size_t  sizeofobject 
)

Definition at line 61 of file jmemnobs.c.

62 {
63  free(object);
64 }
#define free
Definition: debug_ros.c:5

◆ jpeg_free_small()

jpeg_free_small ( j_common_ptr  cinfo,
void object,
size_t  sizeofobject 
)

Definition at line 41 of file jmemnobs.c.

42 {
43  free(object);
44 }
#define free
Definition: debug_ros.c:5

◆ jpeg_get_large()

jpeg_get_large ( j_common_ptr  cinfo,
size_t  sizeofobject 
)

Definition at line 55 of file jmemnobs.c.

56 {
57  return (void FAR *) malloc(sizeofobject);
58 }
size_t sizeofobject
Definition: jmemsys.h:47
#define FAR
Definition: guiddef.h:36
#define malloc
Definition: debug_ros.c:4

◆ jpeg_get_small()

jpeg_get_small ( j_common_ptr  cinfo,
size_t  sizeofobject 
)

Definition at line 35 of file jmemnobs.c.

36 {
37  return (void *) malloc(sizeofobject);
38 }
size_t sizeofobject
Definition: jmemsys.h:47
#define malloc
Definition: debug_ros.c:4

◆ jpeg_mem_available()

jpeg_mem_available ( j_common_ptr  cinfo,
long  min_bytes_needed,
long  max_bytes_needed,
long  already_allocated 
)

Definition at line 73 of file jmemnobs.c.

75 {
76  return max_bytes_needed;
77 }
long long max_bytes_needed
Definition: jmemsys.h:104

◆ jpeg_mem_init()

jpeg_mem_init ( j_common_ptr  cinfo)

Definition at line 100 of file jmemnobs.c.

101 {
102  return 0; /* just set max_memory_to_use to 0 */
103 }

◆ jpeg_mem_term()

jpeg_mem_term ( j_common_ptr  cinfo)

Definition at line 106 of file jmemnobs.c.

107 {
108  /* no work */
109 }

◆ jpeg_open_backing_store()

jpeg_open_backing_store ( j_common_ptr  cinfo,
backing_store_ptr  info,
long  total_bytes_needed 
)

Definition at line 87 of file jmemnobs.c.

89 {
90  ERREXIT(cinfo, JERR_NO_BACKING_STORE);
91 }
#define ERREXIT(msg)
Definition: rdjpgcom.c:72

◆ JPP() [1/2]

void* malloc JPP ( (size_t size )

◆ JPP() [2/2]

void free JPP ( (void *ptr )