Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
jmemansi.c File Reference
#include "jinclude.h"
#include "jpeglib.h"
#include "jmemsys.h"

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

 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)
 
 read_backing_store (j_common_ptr cinfo, backing_store_ptr info, void FAR *buffer_address, long file_offset, long byte_count)
 
 write_backing_store (j_common_ptr cinfo, backing_store_ptr info, void FAR *buffer_address, long file_offset, long byte_count)
 
 close_backing_store (j_common_ptr cinfo, backing_store_ptr info)
 
 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

◆ DEFAULT_MAX_MEM

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

Definition at line 77 of file jmemansi.c.

Referenced by jpeg_mem_init().

◆ 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.

Referenced by read_backing_store(), and write_backing_store().

Function Documentation

◆ close_backing_store()

close_backing_store ( j_common_ptr  cinfo,
backing_store_ptr  info 
)

Definition at line 123 of file jmemansi.c.

References GLOBAL, info, and backing_store_struct::temp_file.

Referenced by jpeg_open_backing_store().

◆ jpeg_free_large()

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

Definition at line 62 of file jmemansi.c.

References free().

Referenced by free_pool().

◆ jpeg_free_small()

jpeg_free_small ( j_common_ptr  cinfo,
void object,
size_t  sizeofobject 
)

Definition at line 42 of file jmemansi.c.

References FAR, free(), and GLOBAL.

Referenced by free_pool(), and self_destruct().

◆ jpeg_get_large()

jpeg_get_large ( j_common_ptr  cinfo,
size_t  sizeofobject 
)

Definition at line 56 of file jmemansi.c.

References FAR, GLOBAL, and malloc().

Referenced by alloc_large().

◆ jpeg_get_small()

jpeg_get_small ( j_common_ptr  cinfo,
size_t  sizeofobject 
)

Definition at line 36 of file jmemansi.c.

References GLOBAL, and malloc().

Referenced by jinit_memory_mgr().

◆ jpeg_mem_available()

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, and METHODDEF.

Referenced by realize_virt_arrays().

◆ jpeg_mem_init()

jpeg_mem_init ( j_common_ptr  cinfo)

Definition at line 158 of file jmemansi.c.

References DEFAULT_MAX_MEM, and GLOBAL.

Referenced by jinit_memory_mgr().

◆ jpeg_mem_term()

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()

jpeg_open_backing_store ( j_common_ptr  cinfo,
backing_store_ptr  info,
long  total_bytes_needed 
)

◆ read_backing_store()

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

Definition at line 97 of file jmemansi.c.

References ERREXIT, info, JFREAD, METHODDEF, SEEK_SET, and backing_store_struct::temp_file.

Referenced by jpeg_open_backing_store().

◆ write_backing_store()

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

Definition at line 110 of file jmemansi.c.

References ERREXIT, info, JFWRITE, METHODDEF, SEEK_SET, and backing_store_struct::temp_file.

Referenced by jpeg_open_backing_store().