w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

jmemansi.c File Reference
#include "jinclude.h"
#include "jpeglib.h"
#include "jmemsys.h"
Include dependency graph for jmemansi.c:

Go to the source code of this file.

Macros

#define JPEG_INTERNALS
 
#define SEEK_SET   0 /* if not, assume 0 is correct */
 
#define DEFAULT_MAX_MEM   1000000L /* default: one megabyte */
 

Functions

voidjpeg_get_small (j_common_ptr cinfo, size_t sizeofobject)
 
void jpeg_free_small (j_common_ptr cinfo, void *object, size_t sizeofobject)
 
voidjpeg_get_large (j_common_ptr cinfo, size_t sizeofobject)
 
void jpeg_free_large (j_common_ptr cinfo, void *object, size_t sizeofobject)
 
long jpeg_mem_available (j_common_ptr cinfo, long min_bytes_needed, long max_bytes_needed, long already_allocated)
 
static void read_backing_store (j_common_ptr cinfo, backing_store_ptr info, void *buffer_address, long file_offset, long byte_count)
 
static void write_backing_store (j_common_ptr cinfo, backing_store_ptr info, void *buffer_address, long file_offset, long byte_count)
 
static void close_backing_store (j_common_ptr cinfo, backing_store_ptr info)
 
void jpeg_open_backing_store (j_common_ptr cinfo, backing_store_ptr info, long total_bytes_needed)
 
long jpeg_mem_init (j_common_ptr cinfo)
 
void jpeg_mem_term (j_common_ptr cinfo)
 

Macro Definition Documentation

◆ DEFAULT_MAX_MEM

#define DEFAULT_MAX_MEM   1000000L /* default: one megabyte */

Definition at line 77 of file jmemansi.c.

◆ JPEG_INTERNALS

#define JPEG_INTERNALS

Definition at line 15 of file jmemansi.c.

◆ SEEK_SET

#define SEEK_SET   0 /* if not, assume 0 is correct */

Definition at line 26 of file jmemansi.c.

Function Documentation

◆ close_backing_store()

static void close_backing_store ( j_common_ptr  cinfo,
backing_store_ptr  info 
)
static

Definition at line 123 of file jmemansi.c.

References fclose, and info.

Referenced by jpeg_open_backing_store().

◆ jpeg_free_large()

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

Definition at line 62 of file jmemansi.c.

References free.

Referenced by free_pool().

◆ jpeg_free_small()

void jpeg_free_small ( j_common_ptr  cinfo,
void object,
size_t  sizeofobject 
)

Definition at line 42 of file jmemansi.c.

References free.

Referenced by free_pool(), and self_destruct().

◆ jpeg_get_large()

void* jpeg_get_large ( j_common_ptr  cinfo,
size_t  sizeofobject 
)

Definition at line 56 of file jmemansi.c.

References FAR, malloc, and sizeofobject.

Referenced by alloc_large().

◆ jpeg_get_small()

void* jpeg_get_small ( j_common_ptr  cinfo,
size_t  sizeofobject 
)

Definition at line 36 of file jmemansi.c.

References malloc, and sizeofobject.

Referenced by alloc_small(), and jinit_memory_mgr().

◆ jpeg_mem_available()

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

Definition at line 81 of file jmemansi.c.

References already_allocated.

Referenced by realize_virt_arrays().

◆ jpeg_mem_init()

long jpeg_mem_init ( j_common_ptr  cinfo)

Definition at line 158 of file jmemansi.c.

References DEFAULT_MAX_MEM.

Referenced by jinit_memory_mgr().

◆ jpeg_mem_term()

void jpeg_mem_term ( j_common_ptr  cinfo)

Definition at line 164 of file jmemansi.c.

Referenced by jinit_memory_mgr(), and self_destruct().

◆ jpeg_open_backing_store()

void jpeg_open_backing_store ( j_common_ptr  cinfo,
backing_store_ptr  info,
long  total_bytes_needed 
)

◆ read_backing_store()

static void read_backing_store ( j_common_ptr  cinfo,
backing_store_ptr  info,
void buffer_address,
long  file_offset,
long  byte_count 
)
static

Definition at line 97 of file jmemansi.c.

References ERREXIT, file_offset, fseek, info, JERR_TFILE_READ, JERR_TFILE_SEEK, JFREAD, and SEEK_SET.

Referenced by jpeg_open_backing_store().

◆ write_backing_store()

static void write_backing_store ( j_common_ptr  cinfo,
backing_store_ptr  info,
void buffer_address,
long  file_offset,
long  byte_count 
)
static

Definition at line 110 of file jmemansi.c.

References ERREXIT, file_offset, fseek, info, JERR_TFILE_SEEK, JERR_TFILE_WRITE, JFWRITE, and SEEK_SET.

Referenced by jpeg_open_backing_store().