H5IMpublic.h

00001 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
00002  * Copyright by The HDF Group.                                               *
00003  * Copyright by the Board of Trustees of the University of Illinois.         *
00004  * All rights reserved.                                                      *
00005  *                                                                           *
00006  * This file is part of HDF5.  The full HDF5 copyright notice, including     *
00007  * terms governing use, modification, and redistribution, is contained in    *
00008  * the files COPYING and Copyright.html.  COPYING can be found at the root   *
00009  * of the source code distribution tree; Copyright.html can be found at the  *
00010  * root level of an installed copy of the electronic HDF5 document set and   *
00011  * is linked from the top-level documents page.  It can also be found at     *
00012  * http://hdfgroup.org/HDF5/doc/Copyright.html.  If you do not have          *
00013  * access to either file, you may request a copy from help@hdfgroup.org.     *
00014  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
00015 
00016 #ifndef _H5IMpublic_H
00017 #define _H5IMpublic_H
00018 
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00024 
00025 H5_HLDLL herr_t  H5IMmake_image_8bit( hid_t loc_id,
00026                             const char *dset_name,
00027                             hsize_t width,
00028                             hsize_t height,
00029                             const unsigned char *buffer );
00030 
00031 H5_HLDLL herr_t  H5IMmake_image_24bit( hid_t loc_id,
00032                              const char *dset_name,
00033                              hsize_t width,
00034                              hsize_t height,
00035                              const char *interlace,
00036                              const unsigned char *buffer );
00037 
00038 H5_HLDLL herr_t  H5IMget_image_info( hid_t loc_id,
00039                      const char *dset_name,
00040                      hsize_t *width,
00041                      hsize_t *height,
00042                      hsize_t *planes,
00043                      char    *interlace,
00044                      hssize_t *npals );
00045 
00046 H5_HLDLL herr_t  H5IMread_image( hid_t loc_id,
00047                        const char *dset_name,
00048                        unsigned char *buffer );
00049 
00050 H5_HLDLL herr_t  H5IMmake_palette( hid_t loc_id,
00051                          const char *pal_name,
00052                          const hsize_t *pal_dims,
00053                          const unsigned char *pal_data );
00054 
00055 H5_HLDLL herr_t  H5IMlink_palette( hid_t loc_id,
00056                         const char *image_name,
00057                         const char *pal_name );
00058 
00059 H5_HLDLL herr_t  H5IMunlink_palette( hid_t loc_id,
00060                            const char *image_name,
00061                            const char *pal_name );
00062 
00063 H5_HLDLL herr_t  H5IMget_npalettes( hid_t loc_id,
00064                           const char *image_name,
00065                           hssize_t *npals );
00066 
00067 H5_HLDLL herr_t  H5IMget_palette_info( hid_t loc_id,
00068                         const char *image_name,
00069                         int pal_number,
00070                         hsize_t *pal_dims );
00071 
00072 H5_HLDLL herr_t  H5IMget_palette( hid_t loc_id,
00073                         const char *image_name,
00074                         int pal_number,
00075                         unsigned char *pal_data );
00076 
00077 H5_HLDLL herr_t  H5IMis_image( hid_t loc_id,
00078                      const char *dset_name );
00079 
00080 H5_HLDLL herr_t  H5IMis_palette( hid_t loc_id,
00081                      const char *dset_name );
00082 
00083 #ifdef __cplusplus
00084 }
00085 #endif
00086 
00087 #endif