ddn.lib.hdf5.hl.h5im

HDF5 High-Level Image Interface Binding

This module provides D bindings for HDF5 Image operations (H5IM API). The Image API provides functions for managing HDF5 image datasets.

License

BSD-3-Clause

Types 1

Interlace mode for 24-bit images

INTERLACE_PIXEL = 0
INTERLACE_PLANE = 1

Functions 13

fnherr_t H5IMmake_image_8bit(hid_t loc_id, const char * dset_name, hsize_t width, hsize_t height, const ubyte * buffer)Creates and writes an 8-bit indexed image
fnherr_t H5IMmake_image_24bit(hid_t loc_id, const char * dset_name, hsize_t width, hsize_t height, const char * interlace, const ubyte * buffer)Creates and writes a 24-bit true color image
fnherr_t H5IMread_image(hid_t loc_id, const char * dset_name, ubyte * buffer)Reads image data
fnherr_t H5IMget_image_info(hid_t loc_id, const char * dset_name, hsize_t * width, hsize_t * height, hsize_t * planes, char * interlace, hssize_t * npals)Gets image information
fnherr_t H5IMis_image(hid_t loc_id, const char * dset_name)Determines if a dataset is an image
fnherr_t H5IMmake_palette(hid_t loc_id, const char * pal_name, const hsize_t * pal_dims, const ubyte * pal_data)Creates and writes a palette
fnherr_t H5IMlink_palette(hid_t loc_id, const char * image_name, const char * pal_name)Links a palette to an image
fnherr_t H5IMunlink_palette(hid_t loc_id, const char * image_name, const char * pal_name)Unlinks a palette from an image
fnherr_t H5IMget_npalettes(hid_t loc_id, const char * image_name, hssize_t * npals)Gets the number of palettes associated with an image
fnherr_t H5IMget_palette_info(hid_t loc_id, const char * image_name, int pal_number, hsize_t * pal_dims)Gets palette information
fnherr_t H5IMget_palette(hid_t loc_id, const char * image_name, int pal_number, ubyte * pal_data)Reads palette data
fnherr_t H5IMis_palette(hid_t loc_id, const char * dset_name)Determines if a dataset is a palette
fnherr_t H5IM_find_palette(hid_t loc_id, const char * dset_name, const char * pal_name, int * pal_number)Finds a palette dataset by name.