ReactOS  0.4.15-dev-483-ga77a65a
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 19 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 62 of file jmemnobs.c.

63 {
64  free(object);
65 }
#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 42 of file jmemnobs.c.

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

◆ jpeg_get_large()

jpeg_get_large ( j_common_ptr  cinfo,
size_t  sizeofobject 
)

Definition at line 56 of file jmemnobs.c.

57 {
58  return (void FAR *) malloc(sizeofobject);
59 }
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 36 of file jmemnobs.c.

37 {
38  return (void *) malloc(sizeofobject);
39 }
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  if (cinfo->mem->max_memory_to_use)
77  return cinfo->mem->max_memory_to_use - already_allocated;
78 
79  /* Here we say, "we got all you want bud!" */
80  return max_bytes_needed;
81 }
long long max_bytes_needed
Definition: jmemsys.h:104
long long long already_allocated
Definition: jmemsys.h:104

◆ jpeg_mem_init()

jpeg_mem_init ( j_common_ptr  cinfo)

Definition at line 104 of file jmemnobs.c.

105 {
106  return 0; /* just set max_memory_to_use to 0 */
107 }

◆ jpeg_mem_term()

jpeg_mem_term ( j_common_ptr  cinfo)

Definition at line 110 of file jmemnobs.c.

111 {
112  /* no work */
113 }

◆ jpeg_open_backing_store()

jpeg_open_backing_store ( j_common_ptr  cinfo,
backing_store_ptr  info,
long  total_bytes_needed 
)

Definition at line 91 of file jmemnobs.c.

93 {
94  ERREXIT(cinfo, JERR_NO_BACKING_STORE);
95 }
#define ERREXIT(msg)
Definition: rdjpgcom.c:72

◆ JPP() [1/2]

void* malloc JPP ( (size_t size )

◆ JPP() [2/2]

void free JPP ( (void *ptr )