Classes | Macros | Typedefs | Functions | Variables
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

struct  jvirt_barray_control
 
struct  jvirt_sarray_control
 
union  large_pool_struct
 
struct  my_memory_mgr
 
union  small_pool_struct
 

Macros

#define ALIGN_TYPE   double
 
#define AM_MEMORY_MANAGER   /* we define jvirt_Xarray_control structs */
 
#define JPEG_INTERNALS
 
#define MIN_SLOP   50 /* greater than 0 to avoid futile looping */
 

Typedefs

typedef union large_pool_struct large_pool_hdr
 
typedef union large_pool_struct FARlarge_pool_ptr
 
typedef my_memory_mgrmy_mem_ptr
 
typedef union small_pool_struct small_pool_hdr
 
typedef union small_pool_structsmall_pool_ptr
 

Functions

 access_virt_barray (j_common_ptr cinfo, jvirt_barray_ptr ptr, JDIMENSION start_row, JDIMENSION num_rows, boolean writable)
 
 access_virt_sarray (j_common_ptr cinfo, jvirt_sarray_ptr ptr, JDIMENSION start_row, JDIMENSION num_rows, boolean writable)
 
 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)
 
 alloc_small (j_common_ptr cinfo, int pool_id, size_t sizeofobject)
 
 do_barray_io (j_common_ptr cinfo, jvirt_barray_ptr ptr, boolean writing)
 
 do_sarray_io (j_common_ptr cinfo, jvirt_sarray_ptr ptr, boolean writing)
 
 free_pool (j_common_ptr cinfo, int pool_id)
 
 jinit_memory_mgr (j_common_ptr cinfo)
 
 out_of_memory (j_common_ptr cinfo, int which)
 
 realize_virt_arrays (j_common_ptr cinfo)
 
 request_virt_barray (j_common_ptr cinfo, int pool_id, boolean pre_zero, JDIMENSION blocksperrow, JDIMENSION numrows, JDIMENSION maxaccess)
 
 request_virt_sarray (j_common_ptr cinfo, int pool_id, boolean pre_zero, JDIMENSION samplesperrow, JDIMENSION numrows, JDIMENSION maxaccess)
 
 self_destruct (j_common_ptr cinfo)
 

Variables

static const size_t extra_pool_slop [JPOOL_NUMPOOLS]
 
static const size_t first_pool_slop [JPOOL_NUMPOOLS]
 

Macro Definition Documentation

◆ ALIGN_TYPE

#define ALIGN_TYPE   double

Definition at line 73 of file jmemmgr.c.

◆ AM_MEMORY_MANAGER

#define AM_MEMORY_MANAGER   /* we define jvirt_Xarray_control structs */

Definition at line 28 of file jmemmgr.c.

◆ JPEG_INTERNALS

#define JPEG_INTERNALS

Definition at line 27 of file jmemmgr.c.

◆ MIN_SLOP

#define MIN_SLOP   50 /* greater than 0 to avoid futile looping */

Definition at line 253 of file jmemmgr.c.

Typedef Documentation

◆ large_pool_hdr

◆ large_pool_ptr

Definition at line 100 of file jmemmgr.c.

◆ my_mem_ptr

Definition at line 140 of file jmemmgr.c.

◆ small_pool_hdr

◆ small_pool_ptr

Definition at line 89 of file jmemmgr.c.

Function Documentation

◆ access_virt_barray()

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.

◆ access_virt_sarray()

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.

◆ alloc_barray()

alloc_barray ( j_common_ptr  cinfo,
int  pool_id,
JDIMENSION  blocksperrow,
JDIMENSION  numrows 
)

Definition at line 443 of file jmemmgr.c.

◆ alloc_large()

alloc_large ( j_common_ptr  cinfo,
int  pool_id,
size_t  sizeofobject 
)

Definition at line 342 of file jmemmgr.c.

◆ alloc_sarray()

alloc_sarray ( j_common_ptr  cinfo,
int  pool_id,
JDIMENSION  samplesperrow,
JDIMENSION  numrows 
)

Definition at line 395 of file jmemmgr.c.

◆ alloc_small()

alloc_small ( j_common_ptr  cinfo,
int  pool_id,
size_t  sizeofobject 
)

Definition at line 257 of file jmemmgr.c.

◆ do_barray_io()

do_barray_io ( j_common_ptr  cinfo,
jvirt_barray_ptr  ptr,
boolean  writing 
)

Definition at line 723 of file jmemmgr.c.

◆ do_sarray_io()

do_sarray_io ( j_common_ptr  cinfo,
jvirt_sarray_ptr  ptr,
boolean  writing 
)

Definition at line 690 of file jmemmgr.c.

◆ free_pool()

free_pool ( j_common_ptr  cinfo,
int  pool_id 
)

Definition at line 930 of file jmemmgr.c.

◆ jinit_memory_mgr()

jinit_memory_mgr ( j_common_ptr  cinfo)

Definition at line 1028 of file jmemmgr.c.

◆ out_of_memory()

out_of_memory ( j_common_ptr  cinfo,
int  which 
)

Definition at line 217 of file jmemmgr.c.

◆ realize_virt_arrays()

realize_virt_arrays ( j_common_ptr  cinfo)

Definition at line 583 of file jmemmgr.c.

◆ request_virt_barray()

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.

◆ request_virt_sarray()

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.

◆ self_destruct()

self_destruct ( j_common_ptr  cinfo)

Definition at line 1002 of file jmemmgr.c.

Variable Documentation

◆ extra_pool_slop

const size_t extra_pool_slop[JPOOL_NUMPOOLS]
static
Initial value:
=
{
0,
5000
}

Definition at line 247 of file jmemmgr.c.

◆ first_pool_slop

const size_t first_pool_slop[JPOOL_NUMPOOLS]
static
Initial value:
=
{
1600,
16000
}

Definition at line 241 of file jmemmgr.c.



openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:05