MISC - Miscellaneous internal functions


Exported functions

double opj_clock (void)
 Difference in successive opj_clock() calls tells you the elapsed time.

Exported functions

void * memalign (size_t, size_t)
#define opj_malloc(size)   malloc(size)
 Allocate an uninitialized memory block.
#define opj_calloc(num, size)   calloc(num, size)
 Allocate a memory block with elements initialized to 0.
#define HAVE_MEMALIGN
 Allocate memory aligned to a 16 byte boundry.
#define opj_aligned_malloc(size)   malloc(size)
#define opj_aligned_malloc(size)   memalign(16, (size))
#define opj_aligned_free(m)   free(m)
#define opj_aligned_free(m)   free(m)
#define opj_realloc(m, s)   realloc(m, s)
 Reallocate memory blocks.
#define opj_free(m)   free(m)
 Deallocates or frees a memory block.

Define Documentation

#define HAVE_MEMALIGN

Allocate memory aligned to a 16 byte boundry.

Parameters:
size Bytes to allocate
Returns:
Returns a void pointer to the allocated space, or NULL if there is insufficient memory available

#define opj_aligned_free (  )     free(m)

#define opj_aligned_free (  )     free(m)

#define opj_aligned_malloc ( size   )     memalign(16, (size))

#define opj_aligned_malloc ( size   )     malloc(size)

#define opj_calloc ( num,
size   )     calloc(num, size)

Allocate a memory block with elements initialized to 0.

Parameters:
num Blocks to allocate
size Bytes per block to allocate
Returns:
Returns a void pointer to the allocated space, or NULL if there is insufficient memory available

Referenced by j2k_create_compress(), j2k_create_decompress(), j2k_read_siz(), j2k_setup_decoder(), j2k_setup_encoder(), jp2_create_decompress(), opj_create_compress(), opj_create_decompress(), opj_image_create(), opj_image_create0(), opj_jp2_check_color(), pi_create_decode(), pi_initialise_encode(), tcd_encode_tile(), tcd_init_encode(), tcd_malloc_decode(), tcd_malloc_encode(), tgt_create(), write_cidx(), write_phix(), write_ppix(), and write_thix().

#define opj_free (  )     free(m)

#define opj_malloc ( size   )     malloc(size)

#define opj_realloc ( m,
 )     realloc(m, s)

Reallocate memory blocks.

Parameters:
m Pointer to previously allocated memory block
s New size in bytes
Returns:
Returns a void pointer to the reallocated (and possibly moved) memory block

Referenced by j2k_add_marker(), j2k_add_mhmarker(), j2k_add_tlmarker(), j2k_read_ppm(), j2k_read_ppt(), j2k_read_sod(), j2k_read_sot(), mqc_init_dec(), t2_decode_packet(), and t2_init_seg().


Function Documentation

void* memalign ( size_t  ,
size_t   
)

double opj_clock ( void   ) 

Difference in successive opj_clock() calls tells you the elapsed time.

Returns:
Returns time in seconds

Referenced by jpwl_dump_marks(), tcd_decode_tile(), and tcd_encode_tile().


Generated on Mon Dec 19 12:34:13 2016 for OpenJPEG by  doxygen 1.5.6