Configuration, Initialization, and Shutdown. More...
Typedefs | |
typedef void * | jas_context_t |
An opaque handle type used to represent a JasPer library context. More... | |
Functions | |
JAS_EXPORT void | jas_conf_clear (void) |
Configure the JasPer library with the default configuration settings. More... | |
JAS_EXPORT void | jas_conf_set_multithread (int multithread) |
Set the multithreading flag for the library. More... | |
JAS_EXPORT void | jas_conf_set_allocator (jas_allocator_t *allocator) |
Set the memory allocator to be used by the library. More... | |
JAS_EXPORT void | jas_conf_set_debug_level (int debug_level) |
Set the initial debug level for the library. More... | |
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 not disabled). More... | |
JAS_EXPORT void | jas_conf_set_dec_default_max_samples (size_t max_samples) |
Set the default value for the maximum number of samples that is allowed in an image to be decoded. More... | |
JAS_EXPORT void | jas_conf_set_vlogmsgf (jas_vlogmsgf_t *func) |
Set the function used by the library to output error, warning, and informational messages. More... | |
JAS_EXPORT int | jas_init_library (void) |
Initialize the JasPer library with the current configuration settings. More... | |
JAS_EXPORT int | jas_cleanup_library (void) |
Perform clean up for the JasPer library. More... | |
JAS_EXPORT int | jas_init_thread (void) |
Perform per-thread initialization for the JasPer library. More... | |
JAS_EXPORT int | jas_cleanup_thread (void) |
Perform per-thread cleanup for the JasPer library. More... | |
JAS_EXPORT int | jas_init (void) |
Configure and initialize the JasPer library using the default configuration settings. More... | |
JAS_EXPORT void | jas_cleanup (void) |
Perform any clean up for the JasPer library. More... | |
JAS_EXPORT jas_context_t | jas_context_create (void) |
Create a context. More... | |
JAS_EXPORT void | jas_context_destroy (jas_context_t context) |
Destroy a context. More... | |
JAS_EXPORT jas_context_t | jas_get_default_context (void) |
Get the current context for the calling thread. More... | |
JAS_EXPORT jas_context_t | jas_get_context (void) |
Get the current context for the calling thread. More... | |
JAS_EXPORT void | jas_set_context (jas_context_t context) |
Set the current context for the calling thread. More... | |
JAS_EXPORT void | jas_set_debug_level (int debug_level) |
Set the debug level for a particular context. More... | |
static int | jas_get_debug_level (void) |
Get the debug level for a particular context. More... | |
JAS_EXPORT void | jas_set_dec_default_max_samples (size_t max_samples) |
Set the default maximum number of samples that a decoder is permitted to process. More... | |
static size_t | jas_get_dec_default_max_samples (void) |
Get the default maximum number of samples that a decoder is permitted to process. More... | |
JAS_EXPORT void | jas_set_vlogmsgf (jas_vlogmsgf_t *func) |
Set the function to be used for log messages. More... | |
static jas_vlogmsgf_t * | jas_get_vlogmsgf (void) |
Get the function to be used for log messages. More... | |
Configuration, Initialization, and Shutdown.
General information can be found here.
typedef void* jas_context_t |
An opaque handle type used to represent a JasPer library context.
JAS_EXPORT void jas_cleanup | ( | void | ) |
Perform any clean up for the JasPer library.
This function performs any clean up for the JasPer library.
JAS_EXPORT int jas_cleanup_library | ( | void | ) |
Perform clean up for the JasPer library.
At the point when this function is called, all threads that have called jas_init_thread() must have called jas_cleanup_thread().
JAS_EXPORT int jas_cleanup_thread | ( | void | ) |
Perform per-thread cleanup for the JasPer library.
JAS_EXPORT void jas_conf_clear | ( | void | ) |
Configure the JasPer library with the default configuration settings.
This function configures the JasPer library with the default configuration settings. These settings may be change via the jas_conf_*
family of function prior to invoking jas_init_library().
JAS_EXPORT void jas_conf_set_allocator | ( | jas_allocator_t * | allocator | ) |
Set the memory allocator to be used by the library.
The object referenced by allocator
must have a live at least until jas_cleanup() is invoked. How the memory in which *allocator
reside is allocated is the responsibility of the caller.
JAS_EXPORT void jas_conf_set_debug_level | ( | int | debug_level | ) |
Set the initial debug level for the library.
JAS_EXPORT void jas_conf_set_dec_default_max_samples | ( | size_t | max_samples | ) |
Set the default value for the maximum number of samples that is allowed in an image to be decoded.
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 not disabled).
JAS_EXPORT void jas_conf_set_multithread | ( | int | multithread | ) |
Set the multithreading flag for the library.
JAS_EXPORT void jas_conf_set_vlogmsgf | ( | jas_vlogmsgf_t * | func | ) |
Set the function used by the library to output error, warning, and informational messages.
JAS_EXPORT jas_context_t jas_context_create | ( | void | ) |
Create a context.
JAS_EXPORT void jas_context_destroy | ( | jas_context_t | context | ) |
Destroy a context.
The context being destroyed must not be the current context.
JAS_EXPORT jas_context_t jas_get_context | ( | void | ) |
Get the current context for the calling thread.
|
inlinestatic |
Get the debug level for a particular context.
|
inlinestatic |
Get the default maximum number of samples that a decoder is permitted to process.
JAS_EXPORT jas_context_t jas_get_default_context | ( | void | ) |
Get the current context for the calling thread.
|
inlinestatic |
Get the function to be used for log messages.
JAS_EXPORT int jas_init | ( | void | ) |
Configure and initialize the JasPer library using the default configuration settings.
The jas_init() function initializes the JasPer library. The library must be initialized before most code in the library can be used.
The jas_init() function exists only for reasons of backward compatibility with earlier versions of the library. It is recommended that this function not be used. Instead, the jas_conf_clear() and jas_init_library() functions should be used to configure and initialize the library.
JAS_EXPORT int jas_init_library | ( | void | ) |
Initialize the JasPer library with the current configuration settings.
The library must be configured by invoking the jas_conf_clear() function prior to calling jas_init_library().
JAS_EXPORT int jas_init_thread | ( | void | ) |
Perform per-thread initialization for the JasPer library.
The library must be initialized by invoking the jas_init_library() function prior to calling jas_init_thread().
JAS_EXPORT void jas_set_context | ( | jas_context_t | context | ) |
Set the current context for the calling thread.
JAS_EXPORT void jas_set_debug_level | ( | int | debug_level | ) |
Set the debug level for a particular context.
JAS_EXPORT void jas_set_dec_default_max_samples | ( | size_t | max_samples | ) |
Set the default maximum number of samples that a decoder is permitted to process.
JAS_EXPORT void jas_set_vlogmsgf | ( | jas_vlogmsgf_t * | func | ) |
Set the function to be used for log messages.