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
jmemname.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 READ_BINARY   "rb"
 
#define RW_BINARY   "w+b"
 
#define TEMP_DIRECTORY   "/usr/tmp/" /* recommended setting for Unix */
 
#define TEMP_FILE_NAME   "%sJPG%dXXXXXX"
 
#define DEFAULT_MAX_MEM   1000000L /* default: one megabyte */
 

Functions

 select_file_name (char *fname)
 
 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 184 of file jmemname.c.

◆ JPEG_INTERNALS

#define JPEG_INTERNALS

Definition at line 15 of file jmemname.c.

◆ READ_BINARY

#define READ_BINARY   "rb"

Definition at line 37 of file jmemname.c.

◆ RW_BINARY

#define RW_BINARY   "w+b"

Definition at line 38 of file jmemname.c.

Referenced by jpeg_open_backing_store().

◆ SEEK_SET

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

Definition at line 26 of file jmemname.c.

Referenced by read_backing_store(), and write_backing_store().

◆ TEMP_DIRECTORY

#define TEMP_DIRECTORY   "/usr/tmp/" /* recommended setting for Unix */

Definition at line 70 of file jmemname.c.

Referenced by select_file_name().

◆ TEMP_FILE_NAME

#define TEMP_FILE_NAME   "%sJPG%dXXXXXX"

Definition at line 122 of file jmemname.c.

Referenced by select_file_name().

Function Documentation

◆ close_backing_store()

close_backing_store ( j_common_ptr  cinfo,
backing_store_ptr  info 
)

◆ jpeg_free_large()

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

Definition at line 169 of file jmemname.c.

References free().

◆ jpeg_free_small()

jpeg_free_small ( j_common_ptr  cinfo,
void object,
size_t  sizeofobject 
)

Definition at line 149 of file jmemname.c.

References FAR, free(), and GLOBAL.

◆ jpeg_get_large()

jpeg_get_large ( j_common_ptr  cinfo,
size_t  sizeofobject 
)

Definition at line 163 of file jmemname.c.

References FAR, GLOBAL, malloc(), and sizeofobject.

◆ jpeg_get_small()

jpeg_get_small ( j_common_ptr  cinfo,
size_t  sizeofobject 
)

Definition at line 143 of file jmemname.c.

References GLOBAL, and malloc().

◆ jpeg_mem_available()

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

Definition at line 188 of file jmemname.c.

References already_allocated, and METHODDEF.

◆ jpeg_mem_init()

jpeg_mem_init ( j_common_ptr  cinfo)

Definition at line 266 of file jmemname.c.

◆ jpeg_mem_term()

jpeg_mem_term ( j_common_ptr  cinfo)

Definition at line 273 of file jmemname.c.

◆ 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 204 of file jmemname.c.

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

Referenced by jpeg_open_backing_store().

◆ select_file_name()

select_file_name ( char *  fname)

Definition at line 126 of file jmemname.c.

References GLOBAL, TEMP_DIRECTORY, and TEMP_FILE_NAME.

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 217 of file jmemname.c.

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

Referenced by jpeg_open_backing_store().