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. | |
Functions | |
| JAS_EXPORT void | jas_conf_clear (void) |
| Configure the JasPer library with the default configuration settings. | |
| JAS_EXPORT void | jas_conf_set_multithread (int multithread) |
| Set the multithreading flag for the library. | |
| JAS_EXPORT void | jas_conf_set_allocator (jas_allocator_t *allocator) |
| Set the memory allocator to be used by the library. | |
| 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_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_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_vlogmsgf (jas_vlogmsgf_t *func) |
| Set the function used by the library to output error, warning, and informational messages. | |
| JAS_EXPORT int | jas_init_library (void) |
| Initialize the JasPer library with the current configuration settings. | |
| JAS_EXPORT int | jas_cleanup_library (void) |
| Perform clean up for the JasPer library. | |
| JAS_EXPORT int | jas_init_thread (void) |
| Perform per-thread initialization for the JasPer library. | |
| JAS_EXPORT int | jas_cleanup_thread (void) |
| Perform per-thread cleanup for the JasPer library. | |
| JAS_EXPORT int | jas_init (void) |
| Configure and initialize the JasPer library using the default configuration settings. | |
| JAS_EXPORT void | jas_cleanup (void) |
| Perform any clean up for the JasPer library. | |
| 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. | |
| JAS_EXPORT jas_context_t | jas_get_default_context (void) |
| Get the current context for the calling thread. | |
| JAS_EXPORT jas_context_t | jas_get_context (void) |
| Get the current context for the calling 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. | |
| static int | jas_get_debug_level (void) |
| Get 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. | |
| static size_t | jas_get_dec_default_max_samples (void) |
| Get 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. | |
| static jas_vlogmsgf_t * | jas_get_vlogmsgf (void) |
| Get the function to be used for log messages. | |
JasPer Initialization/Cleanup Code.