cbf_compress.h

Go to the documentation of this file.
00001 
00002 #ifndef CBF_COMPRESS_H
00003 #define CBF_COMPRESS_H
00004 
00005 #ifdef __cplusplus
00006 
00007 extern "C" {
00008 
00009 #endif
00010 
00011 #include <stdio.h>
00012 
00013 #include "cbf_file.h"
00014 
00015 
00016   /* Compress an array */
00017 
00018 int cbf_compress (void         *source, 
00019                   size_t        elsize, 
00020                   int           elsign, 
00021                   size_t        nelem,
00022                   unsigned int  compression, 
00023                   cbf_file     *file, 
00024                   size_t       *compressedsize,
00025                   int          *bits, 
00026                   char         *digest);
00027 
00028 
00029   /* Get the parameters of an array (read up to the start of the table) */
00030   
00031 int cbf_decompress_parameters (int          *eltype, 
00032                                size_t       *elsize, 
00033                                int          *elsigned, 
00034                                int          *elunsigned,
00035                                size_t       *nelem, 
00036                                int          *minelem, 
00037                                int          *maxelem,
00038                                unsigned int  compression,
00039                                cbf_file     *file);
00040 
00041 
00042   /* Decompress an array (from the start of the table) */
00043 
00044 int cbf_decompress (void         *destination, 
00045                     size_t        elsize, 
00046                     int           elsign, 
00047                     size_t        nelem, 
00048                     size_t       *nelem_read,
00049                     unsigned int  compression,
00050                     int           bits, 
00051                     int           sign,
00052                     cbf_file     *file);
00053 
00054 
00055 #ifdef __cplusplus
00056 
00057 }
00058 
00059 #endif
00060 
00061 #endif /* CBF_COMPRESS_H */