cbf_uncompressed.h

Go to the documentation of this file.
00001 
00002 #ifndef CBF_UNCOMPRESSED_H
00003 #define CBF_UNCOMPRESSED_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   /* Copy an array without compression */
00017   
00018 int cbf_compress_none (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          *storedbits);
00026 
00027 
00028   /* Recover an array without decompression */
00029 
00030 int cbf_decompress_none (void         *destination, 
00031                          size_t        elsize, 
00032                          int           elsign, 
00033                          size_t        nelem, 
00034                          size_t       *nelem_read,
00035                          unsigned int  compression, 
00036                          int           data_bits, 
00037                          int           data_sign,
00038                          cbf_file     *file);
00039 
00040 #ifdef __cplusplus
00041 
00042 }
00043 
00044 #endif
00045 
00046 #endif /* CBF_UNCOMPRESSED_H */