JasPer Color Management.
More...
#include <jasper/jas_config.h>
#include <jasper/jas_types.h>
#include <jasper/jas_icc.h>
Go to the source code of this file.
JAS_EXPORT void jas_conf_set_allocator(jas_allocator_t *allocator)
Set the memory allocator to be used by the library.
Definition: jas_init.c:425
JAS_EXPORT int jas_stringtokenize(const char *string, const char *delim, char ***tokens_buf, size_t *max_tokens_buf, size_t *num_tokens_buf)
Split a string into tokens based on specified delimiters.
Definition: jas_string.c:135
#define JAS_OPT_HASARG
Definition: jas_getopt.h:94
int jas_optind
The current option index.
Definition: jas_getopt.c:87
JAS_EXPORT void jas_std_allocator_init(jas_std_allocator_t *allocator)
Initialize a memory allocator that uses malloc and related functions for managing memory.
Definition: jas_malloc.c:262
double jas_tmr_get(jas_tmr_t *tmr)
Get the elapsed time for a timer.
Definition: jas_tmr.c:143
JAS_EXPORT void jas_conf_set_max_mem_usage(size_t max_mem)
Set the maximum amount of memory that can be used by the library (assuming the allocator wrapper is n...
Definition: jas_init.c:445
JAS_EXPORT void jas_conf_clear()
Configure the JasPer library with the default configuration settings.
Definition: jas_init.c:397
The standard library allocator (i.e., a wrapper for malloc and friends).
Definition: jas_malloc.h:143
JAS_EXPORT int jas_cleanup_library()
Perform clean up for the JasPer library.
Definition: jas_init.c:636
JAS_EXPORT int jas_cleanup_thread()
Perform per-thread cleanup for the JasPer library.
Definition: jas_init.c:757
size_t jas_get_total_mem_size()
Get the total amount of memory available on the system.
Definition: jas_malloc.c:627
Command line option type.
Definition: jas_getopt.h:104
JAS_EXPORT void * jas_realloc(void *ptr, size_t size)
Resize a block of allocated memory.
Definition: jas_malloc.c:151
JAS_EXPORT void jas_conf_set_debug_level(int debug_level)
Set the initial debug level for the library.
Definition: jas_init.c:439
JAS_EXPORT void * jas_malloc(size_t size)
Allocate memory.
Definition: jas_malloc.c:136
void jas_tmr_start(jas_tmr_t *tmr)
Start a timer.
Definition: jas_tmr.c:135
JAS_EXPORT int jas_init_thread()
Perform per-thread initialization for the JasPer library.
Definition: jas_init.c:696
int jas_getopt(int argc, char **argv, const jas_opt_t *opts)
Get the next option.
Definition: jas_getopt.c:107
JAS_EXPORT void jas_free(void *ptr)
Free memory.
Definition: jas_malloc.c:186
#define JAS_UNUSED(x)
Indicate that a variable may be unused (in order to avoid a compiler warning).
Definition: jas_compiler.h:145
JAS_EXPORT int jas_init_library()
Initialize the JasPer library with the current configuration settings.
Definition: jas_init.c:475
const char * jas_optarg
The current option argument.
Definition: jas_getopt.c:89
void jas_tmr_stop(jas_tmr_t *tmr)
Stop a timer.
Definition: jas_tmr.c:139