JasPer  3.0.5
jas_init.h File Reference

JasPer Initialization/Cleanup Code. More...

#include <jasper/jas_config.h>
#include "jasper/jas_malloc.h"
#include "jasper/jas_image.h"
#include "jasper/jas_log.h"
#include <stdarg.h>

Go to the source code of this file.

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_tjas_get_vlogmsgf (void)
 Get the function to be used for log messages. More...
 

Detailed Description

JasPer Initialization/Cleanup Code.