fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
  SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation)  

jmemmgr.c File Reference

#include "jinclude.h"
#include "jpeglib.h"
#include "jmemsys.h"
Include dependency graph for jmemmgr.c:

Go to the source code of this file.

Classes

union  small_pool_struct
union  large_pool_struct
struct  my_memory_mgr
struct  jvirt_sarray_control
struct  jvirt_barray_control

Defines

#define JPEG_INTERNALS
#define AM_MEMORY_MANAGER
#define ALIGN_TYPE   double
#define MIN_SLOP   50

Typedefs

typedef union small_pool_structsmall_pool_ptr
typedef union small_pool_struct small_pool_hdr
typedef union
large_pool_struct FAR * 
large_pool_ptr
typedef union large_pool_struct large_pool_hdr
typedef my_memory_mgrmy_mem_ptr

Functions

char *getenv JPP ((const char *name))
 out_of_memory (j_common_ptr cinfo, int which)
 alloc_small (j_common_ptr cinfo, int pool_id, size_t sizeofobject)
 alloc_large (j_common_ptr cinfo, int pool_id, size_t sizeofobject)
 alloc_sarray (j_common_ptr cinfo, int pool_id, JDIMENSION samplesperrow, JDIMENSION numrows)
 alloc_barray (j_common_ptr cinfo, int pool_id, JDIMENSION blocksperrow, JDIMENSION numrows)
 request_virt_sarray (j_common_ptr cinfo, int pool_id, boolean pre_zero, JDIMENSION samplesperrow, JDIMENSION numrows, JDIMENSION maxaccess)
 request_virt_barray (j_common_ptr cinfo, int pool_id, boolean pre_zero, JDIMENSION blocksperrow, JDIMENSION numrows, JDIMENSION maxaccess)
 realize_virt_arrays (j_common_ptr cinfo)
 do_sarray_io (j_common_ptr cinfo, jvirt_sarray_ptr ptr, boolean writing)
 do_barray_io (j_common_ptr cinfo, jvirt_barray_ptr ptr, boolean writing)
 access_virt_sarray (j_common_ptr cinfo, jvirt_sarray_ptr ptr, JDIMENSION start_row, JDIMENSION num_rows, boolean writable)
 access_virt_barray (j_common_ptr cinfo, jvirt_barray_ptr ptr, JDIMENSION start_row, JDIMENSION num_rows, boolean writable)
 free_pool (j_common_ptr cinfo, int pool_id)
 self_destruct (j_common_ptr cinfo)
 jinit_memory_mgr (j_common_ptr cinfo)

Define Documentation

#define ALIGN_TYPE   double

Definition at line 73 of file jmemmgr.c.

Referenced by alloc_large(), alloc_small(), and jinit_memory_mgr().

#define AM_MEMORY_MANAGER

Definition at line 28 of file jmemmgr.c.

#define JPEG_INTERNALS

Definition at line 27 of file jmemmgr.c.

#define MIN_SLOP   50

Definition at line 253 of file jmemmgr.c.

Referenced by alloc_small().


Typedef Documentation

typedef union large_pool_struct FAR* large_pool_ptr

Definition at line 100 of file jmemmgr.c.

Definition at line 140 of file jmemmgr.c.

Definition at line 89 of file jmemmgr.c.


Function Documentation

access_virt_barray ( j_common_ptr  cinfo,
jvirt_barray_ptr  ptr,
JDIMENSION  start_row,
JDIMENSION  num_rows,
boolean  writable 
)

Definition at line 841 of file jmemmgr.c.

References do_barray_io(), ERREXIT, FALSE, FAR, jzero_far(), NULL, num_rows, SIZEOF, and TRUE.

Referenced by jinit_memory_mgr().

access_virt_sarray ( j_common_ptr  cinfo,
jvirt_sarray_ptr  ptr,
JDIMENSION  start_row,
JDIMENSION  num_rows,
boolean  writable 
)

Definition at line 756 of file jmemmgr.c.

References do_sarray_io(), ERREXIT, FALSE, FAR, jzero_far(), NULL, num_rows, SIZEOF, and TRUE.

Referenced by jinit_memory_mgr().

alloc_barray ( j_common_ptr  cinfo,
int  pool_id,
JDIMENSION  blocksperrow,
JDIMENSION  numrows 
)
alloc_large ( j_common_ptr  cinfo,
int  pool_id,
size_t  sizeofobject 
)
alloc_sarray ( j_common_ptr  cinfo,
int  pool_id,
JDIMENSION  samplesperrow,
JDIMENSION  numrows 
)
do_barray_io ( j_common_ptr  cinfo,
jvirt_barray_ptr  ptr,
boolean  writing 
)

Definition at line 723 of file jmemmgr.c.

References FAR, i, MIN, and SIZEOF.

Referenced by access_virt_barray().

do_sarray_io ( j_common_ptr  cinfo,
jvirt_sarray_ptr  ptr,
boolean  writing 
)

Definition at line 690 of file jmemmgr.c.

References FAR, i, MIN, and SIZEOF.

Referenced by access_virt_sarray().

char* getenv JPP ( (const char *name )
out_of_memory ( j_common_ptr  cinfo,
int  which 
)

Definition at line 217 of file jmemmgr.c.

References ERREXIT1.

Referenced by alloc_large(), and alloc_small().

request_virt_barray ( j_common_ptr  cinfo,
int  pool_id,
boolean  pre_zero,
JDIMENSION  blocksperrow,
JDIMENSION  numrows,
JDIMENSION  maxaccess 
)

Definition at line 553 of file jmemmgr.c.

References alloc_small(), ERREXIT1, FALSE, JPOOL_IMAGE, NULL, SIZEOF, and my_memory_mgr::virt_barray_list.

Referenced by jinit_memory_mgr().

request_virt_sarray ( j_common_ptr  cinfo,
int  pool_id,
boolean  pre_zero,
JDIMENSION  samplesperrow,
JDIMENSION  numrows,
JDIMENSION  maxaccess 
)

Definition at line 523 of file jmemmgr.c.

References alloc_small(), ERREXIT1, FALSE, JPOOL_IMAGE, NULL, SIZEOF, and my_memory_mgr::virt_sarray_list.

Referenced by jinit_memory_mgr().

self_destruct ( j_common_ptr  cinfo)

Definition at line 1002 of file jmemmgr.c.

References free_pool(), jpeg_free_small(), jpeg_mem_term(), JPOOL_NUMPOOLS, JPOOL_PERMANENT, NULL, and SIZEOF.

Referenced by jinit_memory_mgr().