mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-25 17:00:45 +08:00
Code cleanup (sorta) Description: When the first versions of the HDF5 library were designed, I remembered vividly the difficulties of porting code from a 32-bit platform to a 16-bit platform and asked that people use intn & uintn instead of int & unsigned int, respectively. However, in hindsight, this was overkill and unnecessary since we weren't going to be porting the HDF5 library to 16-bit architectures. Currently, the extra uintn & intn typedefs are causing problems for users who'd like to include both the HDF5 and HDF4 header files in one source module (like Kent's h4toh5 library). Solution: Changed the uintn & intn's to unsigned and int's respectively. Platforms tested: FreeBSD 4.4 (hawkwind)
47 lines
1.4 KiB
C
47 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 1998-2001 NCSA
|
|
* All rights reserved.
|
|
*
|
|
* Programmer: Robb Matzke <matzke@llnl.gov>
|
|
* Thursday, April 16, 1998
|
|
*/
|
|
#ifndef _H5Zprivate_H
|
|
#define _H5Zprivate_H
|
|
|
|
#include "H5Zpublic.h"
|
|
#include "H5Fprivate.h"
|
|
|
|
/*
|
|
* The filter table maps filter identification numbers to structs that
|
|
* contain a pointers to the filter function and timing statistics.
|
|
*/
|
|
typedef struct H5Z_class_t {
|
|
H5Z_filter_t id; /*filter ID number */
|
|
char *name; /*comment for debugging */
|
|
H5Z_func_t func; /*the filter function */
|
|
|
|
#ifdef H5Z_DEBUG
|
|
struct {
|
|
hsize_t total; /*total number of bytes processed */
|
|
hsize_t errors; /*bytes of total attributable to errors */
|
|
H5_timer_t timer; /*execution time including errors */
|
|
} stats[2]; /*0=output, 1=input */
|
|
#endif
|
|
} H5Z_class_t;
|
|
|
|
struct H5O_pline_t; /*forward decl*/
|
|
|
|
__DLL__ herr_t H5Z_register(H5Z_filter_t id, const char *comment,
|
|
H5Z_func_t filter);
|
|
__DLL__ herr_t H5Z_append(struct H5O_pline_t *pline, H5Z_filter_t filter,
|
|
unsigned flags, size_t cd_nelmts,
|
|
const unsigned int cd_values[]);
|
|
__DLL__ herr_t H5Z_pipeline(H5F_t *f, const struct H5O_pline_t *pline,
|
|
unsigned flags, unsigned *filter_mask/*in,out*/,
|
|
size_t *nbytes/*in,out*/,
|
|
size_t *buf_size/*in,out*/, void **buf/*in,out*/);
|
|
__DLL__ H5Z_class_t *H5Z_find(H5Z_filter_t id);
|
|
|
|
|
|
#endif
|