00001 //--------------------------------------------------------------- 00002 // Go4 Release Package v2.10-5 (build 21005) 00003 // 03-Nov-2005 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at DVEE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #include "typedefs.h" 00017 #define COMPR__PATTERN 0x0f0f0f0f 00018 typedef struct 00019 { 00020 INTU4 l_endian; /* set to 1 by creator */ 00021 INTU4 l_length; /* total size [bytes] of compressed buffer */ 00022 INTU4 l_masks; /* number of masks following this header */ 00023 INTU4 l_full_bytes; /* number of bytes needed for uncompressed buffer */ 00024 INTU4 l_comp_bytes; /* number of non zero bytes */ 00025 INTU4 l_pattern; /* COMPR__PATTERN */ 00026 } s_compress; 00027 INTS4 f_ut_compr_size(INTU1 *, INTS4); 00028 INTS4 f_ut_compr_zeros(INTU1 *, INTS4); 00029 INTS4 f_ut_compr_pack(INTU1 *, INTS4, INTU1 *, INTS4); 00030 INTS4 f_ut_compr_unpack(INTU1 *, INTU1 *, INTS4); 00031 00032 //----------------------------END OF GO4 SOURCE FILE ---------------------